2002-08-15 19:08:44 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
2020-03-03 08:24:53 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign no-exeext
|
2002-08-15 19:08:44 +00:00
|
|
|
|
2003-02-07 21:46:42 +00:00
|
|
|
QFCC_DEP=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
|
|
|
|
QFCC=$(QFCC_DEP)
|
2020-03-03 08:24:53 +00:00
|
|
|
|
2012-02-13 07:08:03 +00:00
|
|
|
GZ=@progs_gz@
|
2020-03-03 08:24:53 +00:00
|
|
|
game_libexec=game.dat
|
|
|
|
|
|
|
|
pkglibexecdir=@sharepath@/QF
|
|
|
|
|
|
|
|
# this will eventually go into pkglibexecdir, but for now...
|
|
|
|
noinst_PROGRAMS= $(game_libexec)
|
|
|
|
EXTRA_PROGRAMS= $(game_libexec)
|
|
|
|
|
|
|
|
QCFLAGS=-qq -O -g -Werror -Wall -Wno-integer-divide
|
|
|
|
QCPPFLAGS=--no-default-paths -I$(top_srcdir)/ruamoko/include
|
|
|
|
QCLINKFLAGS=--no-default-paths -L$(top_builddir)/ruamoko/lib
|
|
|
|
QCOMPILE=$(QFCC) $(QCFLAGS) $(QCPPFLAGS)
|
|
|
|
QLINK=$(QFCC) $(QCFLAGS) $(QCLINKFLAGS)
|
|
|
|
|
|
|
|
MKDIR_P = @MKDIR_P@
|
|
|
|
am__mv = mv -f
|
|
|
|
|
|
|
|
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
|
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
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
SUFFIXES=.o .r
|
|
|
|
.r.o:
|
|
|
|
$(QCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tqo -p $(STRIP) -c -o $@ $<
|
|
|
|
sed -i -e '1s@:@: $(QFCC_DEP)@' $(DEPDIR)/$*.Tqo
|
|
|
|
$(am__mv) $(DEPDIR)/$*.Tqo $(DEPDIR)/$*.Qo
|
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
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
r_depfiles_remade=
|
|
|
|
|
|
|
|
game_dat_SOURCES=$(game_src)
|
|
|
|
game_obj=$(game_src:.r=.o)
|
|
|
|
game_dep=$(addprefix ./$(DEPDIR)/,$(game_obj:.o=.Qo))
|
|
|
|
game.dat: $(game_obj) $(QFCC_DEP) ../lib/libr.a ../lib/libqw.a
|
|
|
|
$(QLINK) -p $(STRIP) -o game.dat $(game_obj) ../lib/libr.a ../lib/libqw.a ../lib/libr.a
|
|
|
|
include $(game_dep) # am--include-marker
|
|
|
|
r_depfiles_remade += $(game_dep)
|
|
|
|
|
|
|
|
game.sym: game.dat
|
|
|
|
|
|
|
|
$(r_depfiles_remade):
|
|
|
|
$(MKDIR_P) $(@D)
|
|
|
|
echo '# dummy' >$@-t && $(am__mv) $@-t $@
|
2002-08-15 19:08:44 +00:00
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
am--depfiles: $(am__depfiles_remade) $(r_depfiles_remade)
|
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
|
2020-03-03 08:24:53 +00:00
|
|
|
CLEANFILES= *.dat *.sym *.gz *.o *.qfo
|