xref: /inferno-os/libinterp/mkfile (revision a7053ac4b096681d5ae89a863c1b81811e7716a4)
1<../mkconfig
2
3LIB=libinterp.a
4
5OFILES=\
6	alt.$O\
7	comp-$OBJTYPE.$O\
8	conv.$O\
9	crypt.$O\
10	dec.$O\
11	dlm-$TARGMODEL.$O\
12	draw.$O\
13	freetype.$O\
14	gc.$O\
15	geom.$O\
16	heap.$O\
17	heapaudit.$O\
18	ipint.$O\
19	link.$O\
20	load.$O\
21	loader.$O\
22	math.$O\
23#	prefab.$O\
24	raise.$O\
25	readmod.$O\
26	runt.$O\
27	sign.$O\
28	stack.$O\
29	tk.$O\
30	validstk.$O\
31	xec.$O\
32	das-$OBJTYPE.$O\
33	keyring.$O\
34	string.$O\
35
36HFILES=\
37	$ROOT/include/interp.h\
38	$ROOT/include/isa.h\
39	runt.h\
40	tab.h\
41
42MODULES=\
43	../module/runt.m\
44	../module/sys.m\
45	../module/draw.m\
46	../module/prefab.m\
47	../module/math.m\
48	../module/tk.m\
49	../module/keyring.m\
50	../module/loader.m\
51	../module/freetype.m\
52	../module/ipints.m\
53	../module/crypt.m\
54	keyringif.m\
55
56<$ROOT/mkfiles/mksyslib-$SHELLTYPE
57
58runt.h:D: $MODULES
59	rm -f $target && limbo -a -I../module ../module/runt.m > $target
60
61sysmod.h:D: $MODULES
62	rm -f $target && limbo -t Sys -I../module ../module/runt.m > $target
63
64keyring.h:D: $MODULES
65	rm -f $target && limbo -t Keyring -I../module keyringif.m > $target
66
67drawmod.h:D: $MODULES
68	rm -f $target && limbo -t Draw -I../module ../module/runt.m > $target
69
70prefabmod.h:D: $MODULES
71	rm -f $target && limbo -t Prefab -I../module ../module/runt.m > $target
72
73tkmod.h:D: $MODULES
74	rm -f $target && limbo -t Tk -I../module ../module/runt.m > $target
75
76mathmod.h:D: $MODULES
77	rm -f $target && limbo -t Math -I../module ../module/runt.m > $target
78
79loadermod.h:D: $MODULES
80	rm -f $target && limbo -t Loader -I../module ../module/runt.m > $target
81
82freetypemod.h:D: $MODULES
83	rm -f $target && limbo -t Freetype -I../module ../module/runt.m > $target
84
85ipintsmod.h:D:	$MODULES
86	rm -f $target && limbo -t IPints -I../module ../module/ipints.m > $target
87
88benchmod.h:D: ../module/bench.m
89	rm -f $target && limbo -t Bench -I../module ../module/bench.m > $target
90
91cryptmod.h:D:	$MODULES
92	rm -f $target && limbo -t Crypt -I../module ../module/runt.m > $target
93
94keyringif.h:D:	$MODULES keyringif.m
95	rm -f $target && limbo -a -I../module keyringif.m > $target
96
97
98bench.h:D:../module/bench.m
99	rm -f $target && limbo -a -I../module ../module/bench.m > $target
100
101xec.$O:		optab.h  $ROOT/include/pool.h
102tk.$O:		$ROOT/include/tk.h  $ROOT/include/pool.h
103draw.$O: 	$ROOT/include/draw.h $ROOT/include/drawif.h
104prefab.$O: 	$ROOT/include/draw.h\
105		$ROOT/include/prefab.h
106
107runt.$O:	sysmod.h
108prefab.$O:	prefabmod.h
109draw.$O:	drawmod.h
110tk.$O:		$ROOT/include/draw.h tkmod.h
111math.$O:	mathmod.h
112keyring.$O:	keyring.h ipint.h keyringif.h
113crypt.$O:	ipint.h runt.h cryptmod.h
114ipint.$O:	ipint.h ipintsmod.h
115loader.$O:	loadermod.h
116freetype.$O:	freetypemod.h $ROOT/include/freetype.h
117math.$O:	$ROOT/include/mathi.h
118
119das-spim.c:N:	das-mips.c
120comp-spim.c:N:	comp-mips.c
121
122# optab.h:	$ROOT/include/isa.h mkoptab
123#	$SHELLNAME mkoptab > $target
124
125#	Do not remove optab.h, because the script that builds
126#	it works only on UNIX and Plan 9.
127
128nuke:EV:	nuke-std
129	rm -f runt.h sysmod.h drawmod.h prefabmod.h tkmod.h mathmod.h keyring.h readimagemod.h loadermod.h freetypemod.h cryptmod.h keyringif.h ipintsmod.h
130