portmkfile 791 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. </$objtype/mkfile
  2. BIN=/$objtype/bin
  3. TARG=cwfs$FS
  4. OFILES=\
  5. 9p1.$O\
  6. 9p1lib.$O\
  7. 9p2.$O\
  8. auth.$O\
  9. chk.$O\
  10. con.$O\
  11. config.$O\
  12. console.$O\
  13. cw.$O\
  14. data.$O\
  15. dentry.$O\
  16. fworm.$O\
  17. iobuf.$O\
  18. juke.$O\
  19. main.$O\
  20. malloc.$O\
  21. mworm.$O\
  22. net.$O\
  23. pc.$O\
  24. scsi.$O\
  25. sub.$O\
  26. time.$O\
  27. uidgid.$O\
  28. wren.$O\
  29. HFILES=\
  30. ../32bit.h\
  31. ../64bit.h\
  32. ../9p1.h\
  33. ../all.h\
  34. dat.h\
  35. ../io.h\
  36. ../portdat.h\
  37. ../portfns.h\
  38. # SRC=${OBJ:%.$O=../%.c}
  39. CFLAGS=$CFLAGS -I..
  40. default:V: $O.cwfs$FS
  41. </sys/src/cmd/mkmany
  42. %.$O: ../%.c
  43. $CC $CFLAGS ../$stem.c
  44. %.$O: ../%.s
  45. $AS $AFLAGS ../$stem.s
  46. acid: ${OFILES:%.acid=../%.c}
  47. $O.cwfs$FS: conf.c $OFILES
  48. $CC $CFLAGS -DDATE'='`{date -n} conf.c
  49. $LD -o $target $OFILES conf.$O
  50. size $target
  51. test:V: 8.cwfs$FS
  52. cputype=debug $prereq -a 'tcp!*!1234' </dev/null