Makefile
820 Bytes
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
#!smake
PRDEPTH=..
include $(PRDEPTH)/PRdefs
CVERSION = -cckr
OPTIMIZER = -g
LCDEFS = -DVU_SIM
LCINCS = -I.
LDIRT = qmesh qball qtorus
CFILES = graphic.c matrix.c transform.c clip.c setup.c \
line.c \
filter.c \
zbuffer.c \
divide.c \
edge_walk.c cz_step.c texture.c modulate.c \
coverage.c blend.c mem_span.c \
gl_dev.c light.c \
finput.c vu.c
OBJECTS =$(CFILES:.c=.o)
LLDLIBS = -lgl -limage -lm
TARGETS = gr qball.i qmesh.i qtorus.i tpoly2as
default install:
@$(MAKE) ${TARGETS}
include $(COMMONRULES)
gr: ${OBJECTS}
$(CC) -o gr $(OBJECTS) $(LDFLAGS)
qmesh.i: qmesh
qmesh -x 10 -y 10 > qmesh.i
qball.i: qball
qball -x 40 -y 40 > qball.i
qtorus.i: qtorus
qtorus -x 8 -y 8 > qtorus.i
fractal.i: fractal
fractal -i -f 1 > fractal.i
tpoly2as: tpoly2as.c
$(CCF) tpoly2as.c $(LDFLAGS) -o $@