1## Process this file with automake to produce Makefile.in 2AUTOMAKE_OPTIONS= foreign 3 4#FIXME should qf data be installed somewhere other than id1 that gets 5#searched after everything else? 6pkgdatadir=@sharepath@/id1 7 8QFCC_DEP=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT) 9QFCC=$(QFCC_DEP) 10QCFLAGS=-qq -O -g -Werror -Wall -Wno-integer-divide --no-default-paths 11QCPPFLAGS=-I. -I$(srcdir) -I$(top_builddir)/ruamoko/include -I$(top_srcdir)/ruamoko/include 12GZIP=if echo $@ | grep -q .gz; then gzip -f `basename $@ .gz`; if test -f `basename $@ .dat.gz`.sym; then gzip -f `basename $@ .dat.gz`.sym; fi; fi 13GZ=@progs_gz@ 14# BSD make can't handle $(shell foo) directives, and GNU make can't handle |= 15# so we have to bite the bullet and pass this to the shell every time. 16STRIP=`echo -n $(srcdir)/ | sed -e 's/[^/]//g' | wc -c` 17 18data=game.dat$(GZ) 19 20noinst_DATA= $(data) 21EXTRA_DATA= game.dat 22 23game_src= Axe.r GameEntity.r World.r tempent.r 24 25SUFFIXES=.qfo .r 26.r.qfo: 27 $(QFCC) $(QCFLAGS) $(QCPPFLAGS) -p $(STRIP) -c -o $@ $< 28 29game_obj=$(game_src:.r=.qfo) 30game.dat$(GZ): $(game_obj) ../lib/libr.a ../lib/libqw.a 31 $(QFCC) $(QCFLAGS) -p $(STRIP) -o game.dat $(game_obj) ../lib/libr.a ../lib/libqw.a ../lib/libr.a 32 $(GZIP) 33 34EXTRA_DIST= $(game_src) Axe.h GameEntity.h tempent.h Weapon.h World.h 35CLEANFILES= *.dat *.sym *.gz *.qfo 36