# MakeFile for QuakeTools QTLIB = ../../lib/libqtools.a QTLIBP = ../../lib/libqtools_p.a QTLIBV = ../../lib/libqtools_v.a # # defaults # default: ../../bin/qtools ../../bin/qbsp ../../bin/light \ ../../bin/qbsp ../../bin/vis ../../bin/qcc profile: ../../bin/qtoolsP ../../bin/qbspP ../../bin/lightP \ ../../bin/qbspP ../../bin/visP ../../bin/qccP coverage: ../../bin/qtoolsV ../../bin/qbspV ../../bin/lightV \ ../../bin/qbspV ../../bin/visV ../../bin/qccV all: default profile coverage test: ../../bin/ppmdiff clean: rm -f qtools.o qbsp.o light.o vis.o qcc.o rm -f ../../bin/qtools ../../bin/qbsp \ ../../bin/light ../../bin/vis ../../bin/qcc cleanprofile: rm -f qtools.p qbsp.p light.p vis.p qcc.p rm -f ../../bin/qtoolsP ../../bin/qbspP \ ../../bin/lightP ../../bin/visP ../../bin/qccP cleancoverage: rm -f qtools.v qbsp.v light.v vis.v qcc.v rm -f ../../bin/qtoolsV ../../bin/qbspV \ ../../bin/lightV ../../bin/visV ../../bin/qccV cleanall: clean cleanprofile cleancoverage distclean: cleanall rm -f Makefile install: default cp ../../bin/qtools ../../bin/qbsp ../../bin/light \ ../../bin/qbsp ../../bin/vis ../../bin/qcc @BINDIR@ installprofile: profile cp ../../bin/qtoolsP ../../bin/qbspP ../../bin/lightP \ ../../bin/qbspP ../../bin/visP ../../bin/qccP @BINDIR@ installcoverage: coverage cp ../../bin/qtoolsV ../../bin/qbspV ../../bin/lightV \ ../../bin/qbspV ../../bin/visV ../../bin/qccV @BINDIR@ installall: install installprofile installcoberage depend: @MKD@ -m $(INCL) qtools.c qbsp.c light.c qcc.c vis.c ppmdiff.c include ../Makefile-rules # # additional tools # ../../bin/qtools: qtools.o $(QTLIB) $(CC) $(LDFLAGS) -o $@ $< @LIBS@ -lqtools ../../bin/qtoolsP: qtools.p $(QTLIBP) $(CC) $(LDPFLAGS) -o $@ $< @LIBS@ -lqtools_p ../../bin/qtoolsV: qtools.v $(QTLIBV) $(CC) $(LDVFLAGS) -o $@ $< @LIBS@ -lqtools_v ../../bin/qbsp: qbsp.o $(QTLIB) $(CC) $(LDFLAGS) -o $@ $< @LIBS@ -lqtools ../../bin/qbspP: qbsp.p $(QTLIBP) $(CC) $(LDPFLAGS) -o $@ $< @LIBS@ -lqtools_p ../../bin/qbspV: qbsp.v $(QTLIBV) $(CC) $(LDVFLAGS) -o $@ $< @LIBS@ -lqtools_v ../../bin/light: light.o $(QTLIB) $(CC) $(LDFLAGS) -o $@ $< @LIBS@ -lqtools ../../bin/lightP: light.p $(QTLIBP) $(CC) $(LDPFLAGS) -o $@ $< @LIBS@ -lqtools_p ../../bin/lightV: light.v $(QTLIBV) $(CC) $(LDVFLAGS) -o $@ $< @LIBS@ -lqtools_v ../../bin/vis: vis.o $(QTLIB) $(CC) $(LDFLAGS) -o $@ $< @LIBS@ -lqtools ../../bin/visP: vis.p $(QTLIBP) $(CC) $(LDPFLAGS) -o $@ $< @LIBS@ -lqtools_p ../../bin/visV: vis.v $(QTLIBV) $(CC) $(LDVFLAGS) -o $@ $< @LIBS@ -lqtools_v ../../bin/qcc: qcc.o $(QTLIB) $(CC) $(LDFLAGS) -o $@ $< @LIBS@ -lqtools ../../bin/qccP: qcc.p $(QTLIBP) $(CC) $(LDPFLAGS) -o $@ $< @LIBS@ -lqtools_p ../../bin/qccV: qcc.v $(QTLIBV) $(CC) $(LDVFLAGS) -o $@ $< @LIBS@ -lqtools_v ../../bin/ppmdiff: $(CC) $(CFLAGS) -o $@ ppmdiff.c # DO NOT DELETE