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