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