aboutsummaryrefslogtreecommitdiff
path: root/src/libdraw/mkfile
blob: da115f31a1f1796c3df08277743aaa58afd44882 (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<$PLAN9/src/mkhdr

LIB=libdraw.a

OFILES=\
	alloc.$O\
	allocimagemix.$O\
	arith.$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\
	font.$O\
	freesubfont.$O\
	getdefont.$O\
	getrect.$O\
	getsubfont.$O\
	icossin.$O\
	icossin2.$O\
	init.$O\
	line.$O\
	latin1.$O\
	loadimage.$O\
	menuhit.$O\
	mkfont.$O\
	openfont.$O\
	poly.$O\
	readimage.$O\
	readsubfont.$O\
	rectclip.$O\
	replclipr.$O\
	rgb.$O\
	scroll.$O\
	string.$O\
	stringbg.$O\
	stringsubfont.$O\
	stringwidth.$O\
	subfont.$O\
	subfontcache.$O\
	subfontname.$O\
	unloadimage.$O\
	window.$O\
	writeimage.$O\
	writesubfont.$O\
	md-alloc.$O\
	md-arc.$O\
	md-cload.$O\
	md-cmap.$O\
	md-cread.$O\
	md-defont.$O\
	md-draw.$O\
	md-ellipse.$O\
	md-fillpoly.$O\
	md-hwdraw.$O\
	md-iprint.$O\
	md-line.$O\
	md-load.$O\
	md-openmemsubfont.$O\
	md-poly.$O\
	md-read.$O\
	md-string.$O\
	md-subfont.$O\
	md-unload.$O\
	md-write.$O\
	ml-draw.$O\
	ml-lalloc.$O\
	ml-layerop.$O\
	ml-ldelete.$O\
	ml-lhide.$O\
	ml-line.$O\
	ml-load.$O\
	ml-lorigin.$O\
	ml-lsetrefresh.$O\
	ml-ltofront.$O\
	ml-ltorear.$O\
	ml-unload.$O\
	devdraw.$O\
	unix.$O\

HFILES=\
	$PLAN9/include/draw.h\
	$PLAN9/include/memdraw.h\
	$PLAN9/include/memlayer.h\
	$PLAN9/include/event.h\
	$PLAN9/include/cursor.h\
	$PLAN9/include/mouse.h\
	$PLAN9/include/keyboard.h\

# some of these should move to wsysofiles

XHFILES=\
	x11-inc.h\
	x11-memdraw.h\

<|sh ./mkwsysrules.sh

WSYSOFILES=\
	$WSYSTYPE-alloc.$O\
	$WSYSTYPE-cload.$O\
	$WSYSTYPE-draw.$O\
	$WSYSTYPE-event.$O\
	$WSYSTYPE-fill.$O\
	$WSYSTYPE-get.$O\
	$WSYSTYPE-init.$O\
	$WSYSTYPE-itrans.$O\
	$WSYSTYPE-keyboard.$O\
	$WSYSTYPE-keysym2ucs.$O\
	$WSYSTYPE-load.$O\
	$WSYSTYPE-mouse.$O\
	$WSYSTYPE-pixelbits.$O\
	$WSYSTYPE-unload.$O\
	$WSYSTYPE-wsys.$O\

OFILES=$OFILES $WSYSOFILES

<$PLAN9/src/mksyslib

test: test.o $PLAN9/lib/$LIB
	gcc -o test test.o -L$PLAN9/lib -ldraw -l9 -lfmt -lutf -L$X11/lib -lX11 -lm