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
|
|
|
|
|
|
|
|
QFCC=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
|
|
|
|
QCFLAGS=-qq -g -Werror
|
|
|
|
QCPPFLAGS=-I. -I$(srcdir) -I$(top_builddir)/ruamoko/include -I$(top_srcdir)/ruamoko/include
|
|
|
|
STRIP=$(shell echo `echo -n $(srcdir)/ | sed -e 's/[^/]//g' | wc -c`)
|
|
|
|
|
2002-09-17 22:19:14 +00:00
|
|
|
if BUILD_RUAMOKO
|
|
|
|
data=game.dat
|
|
|
|
else
|
|
|
|
data=
|
|
|
|
endif
|
|
|
|
|
|
|
|
pkgdata_DATA= $(data)
|
|
|
|
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
|
|
|
|
|
|
|
%.qfo: %.r
|
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -p $(STRIP) -c -o $@ $<
|
|
|
|
|
|
|
|
%.qfo: %.qc
|
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -p $(STRIP) -c -o $@ $<
|
|
|
|
|
|
|
|
game_obj=$(addsuffix .qfo,$(basename $(game_src)))
|
|
|
|
|
|
|
|
game.dat: $(game_obj) ../lib/libr.a
|
2002-11-01 18:05:12 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -p $(STRIP) -o game.dat $(game_obj) ../lib/libr.a
|
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
|