Makefile 820 Bytes
#!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 $@