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