summaryrefslogtreecommitdiff
path: root/mkfile
blob: 7e1d2542298c07384016687e6739ae2ca428d7bd (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
</$objtype/mkfile

BIN=$home/$objtype/bin
TARG=3d
OFILES=\
	main.$O\

HFILES=libgeometry/geometry.h\
	libgraphics/graphics.h\
	libobj/obj.h\
	dat.h\
	fns.h\

LIB=\
	libobj/libobj.a$O\
	libgraphics/libgraphics.a$O\
	libgeometry/libgeometry.a$O\

CFLAGS=$CFLAGS -I. -Ilibgeometry -Ilibgraphics -Ilibobj

</sys/src/cmd/mkone

libgeometry/libgeometry.a$O:
	cd libgeometry
	mk install

libgraphics/libgraphics.a$O:
	cd libgraphics
	mk install

libobj/libobj.a$O:
	cd libobj
	mk install

clean nuke:V:
	rm -f *.[$OS] [$OS].out $TARG
	@{cd libgeometry; mk $target}
	@{cd libgraphics; mk $target}
	@{cd libobj; mk $target}