2002-08-15 19:08:44 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
|
|
|
#FIXME should qf data be installed somewhere other than id1 that gets
|
|
|
|
#searched after everything else?
|
|
|
|
pkgdatadir=@sharepath@/id1
|
|
|
|
|
2003-02-07 21:46:42 +00:00
|
|
|
QFCC_DEP=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
|
|
|
|
QFCC=$(QFCC_DEP)
|
2012-01-04 04:17:57 +00:00
|
|
|
QCFLAGS=-qq -g -Werror -Wall -Wno-integer-divide --no-default-paths
|
2002-08-15 19:08:44 +00:00
|
|
|
QCPPFLAGS=-I. -I$(srcdir) -I$(top_builddir)/ruamoko/include -I$(top_srcdir)/ruamoko/include
|
2003-02-07 21:46:42 +00:00
|
|
|
GZIP=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
|
2012-02-13 07:08:03 +00:00
|
|
|
GZ=@progs_gz@
|
2011-07-25 21:19:43 +00:00
|
|
|
# BSD make can't handle $(shell foo) directives, and GNU make can't handle |=
|
|
|
|
# so we have to bite the bullet and pass this to the shell every time.
|
|
|
|
STRIP=`echo -n $(srcdir)/ | sed -e 's/[^/]//g' | wc -c`
|
2002-08-15 19:08:44 +00:00
|
|
|
|
2003-02-07 21:46:42 +00:00
|
|
|
data=game.dat$(GZ)
|
2002-09-17 22:19:14 +00:00
|
|
|
|
2003-02-07 21:46:42 +00:00
|
|
|
noinst_DATA= $(data)
|
2002-09-17 22:19:14 +00:00
|
|
|
EXTRA_DATA= game.dat
|
2002-08-15 19:08:44 +00:00
|
|
|
|
2002-08-17 05:27:34 +00:00
|
|
|
game_src= Axe.r GameEntity.r World.r tempent.r
|
2002-08-15 19:08:44 +00:00
|
|
|
|
2011-07-25 21:19:43 +00:00
|
|
|
SUFFIXES=.qfo .r
|
|
|
|
.r.qfo:
|
2002-08-15 19:08:44 +00:00
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -p $(STRIP) -c -o $@ $<
|
|
|
|
|
2011-07-25 21:19:43 +00:00
|
|
|
game_obj=$(game_src:.r=.qfo)
|
2004-02-03 06:00:16 +00:00
|
|
|
game.dat$(GZ): $(game_obj) ../lib/libr.a ../lib/libqw.a
|
2004-11-12 11:23:00 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -p $(STRIP) -o game.dat $(game_obj) ../lib/libr.a ../lib/libqw.a ../lib/libr.a
|
2003-02-07 21:46:42 +00:00
|
|
|
$(GZIP)
|
2002-08-15 19:08:44 +00:00
|
|
|
|
2002-08-19 03:58:55 +00:00
|
|
|
EXTRA_DIST= $(game_src) Axe.h GameEntity.h tempent.h Weapon.h World.h
|
2002-08-15 19:08:44 +00:00
|
|
|
CLEANFILES= *.dat *.sym *.gz *.qfo
|