mkfile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. APE=/sys/src/ape
  2. <$APE/config
  3. LIB=/$objtype/lib/ape/libdraw.a
  4. OFILES=\
  5. alloc.$O\
  6. allocimagemix.$O\
  7. arith.$O\
  8. bezier.$O\
  9. border.$O\
  10. buildfont.$O\
  11. bytesperline.$O\
  12. chan.$O\
  13. cloadimage.$O\
  14. computil.$O\
  15. creadimage.$O\
  16. debug.$O\
  17. defont.$O\
  18. draw.$O\
  19. drawrepl.$O\
  20. egetrect.$O\
  21. ellipse.$O\
  22. emenuhit.$O\
  23. event.$O\
  24. fmt.$O\
  25. font.$O\
  26. freesubfont.$O\
  27. getdefont.$O\
  28. getsubfont.$O\
  29. icossin.$O\
  30. icossin2.$O\
  31. init.$O\
  32. line.$O\
  33. mkfont.$O\
  34. newwindow.$O\
  35. openfont.$O\
  36. poly.$O\
  37. loadimage.$O\
  38. readimage.$O\
  39. readsubfont.$O\
  40. rectclip.$O\
  41. replclipr.$O\
  42. rgb.$O\
  43. string.$O\
  44. stringbg.$O\
  45. stringsubfont.$O\
  46. stringwidth.$O\
  47. subfont.$O\
  48. subfontcache.$O\
  49. subfontname.$O\
  50. unloadimage.$O\
  51. window.$O\
  52. writecolmap.$O\
  53. writeimage.$O\
  54. writesubfont.$O\
  55. HFILES=\
  56. /sys/include/ape/draw.h\
  57. /sys/include/ape/event.h\
  58. /sys/include/ape/mouse.h\
  59. /sys/include/ape/keyboard.h\
  60. UPDATE=\
  61. mkfile\
  62. $HFILES\
  63. ${OFILES:%.$O=%.c}\
  64. ${LIB:/$objtype/%=/386/%}\
  65. </sys/src/cmd/mksyslib
  66. CFLAGS=-c $CFLAGS -D_POSIX_SOURCE -D_PLAN9_SOURCE -D_RESEARCH_SOURCE -I.
  67. %.$O: /sys/src/libdraw/%.c
  68. $CC $CFLAGS /sys/src/libdraw/$stem.c
  69. $O.colors: colors.$O
  70. $LD -o $target colors.$O