Source

qutils / makefile

Full commit
include config.mk

EXES = qbsp light vis bspinfo entmap visx

all: $(EXES)

clean:
	rm */*.o bin/$(EXES)

qbsp : qbsp/region.o qbsp/brush.o common/cmdlib.o qbsp/csg4.c qbsp/surfaces.o \
	common/mathlib.o qbsp/merge.o qbsp/outside.o qbsp/portals.o qbsp/qbsp.o \
	qbsp/solidbsp.o qbsp/tjunc.o qbsp/writebsp.o common/bspfile.o qbsp/nodraw.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o bin/qbsp qbsp/region.o qbsp/brush.o common/cmdlib.o \
	qbsp/csg4.c qbsp/surfaces.o common/mathlib.o qbsp/merge.o common/bspfile.o \
	qbsp/nodraw.o qbsp/tjunc.o qbsp/writebsp.o common/bspfile.o qbsp/nodraw.o

light : common/threads.o bspfile.o cmdlib.o light.o ltface.o mathlib.o trace.o entities.o
	$(CC) $(CFLAGS) -o light threads.o bspfile.o cmdlib.o light.o ltface.o mathlib.o trace.o entities.o
	
vis : vis.o flow.o cmdlib.o mathlib.o bspfile.o soundpvs.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o vis vis.o flow.o cmdlib.o mathlib.o bspfile.o soundpvs.o

visx : visx.o flowx.o cmdlib.o mathlib.o bspfile.o soundpvs.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o visx visx.o flowx.o cmdlib.o mathlib.o bspfile.o soundpvs.o

bspinfo : bspinfo.o bspfile.o cmdlib.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o bspinfo bspinfo.o bspfile.o cmdlib.o

entmap : entmap.o cmdlib.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o entmap entmap.o cmdlib.o

cmdlib.o : ../cmdlib.c
	$(CC) $(CFLAGS) -c -o cmdlib.o ../cmdlib.c
mathlib.o : ../mathlib.c
	$(CC) $(CFLAGS) -c -o mathlib.o ../mathlib.c