mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-24 11:41:02 +00:00
f5b22f50e8
This is an imperfect revision of history.
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
## 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_DEP=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
|
|
QFCC=$(QFCC_DEP)
|
|
QCFLAGS=-qq -g -Werror
|
|
QCPPFLAGS=-I. -I$(srcdir) -I$(top_builddir)/ruamoko/include -I$(top_srcdir)/ruamoko/include
|
|
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
|
|
if HAVE_ZLIB
|
|
GZ=.gz
|
|
else
|
|
GZ=
|
|
endif
|
|
STRIP=$(shell echo `echo -n $(srcdir)/ | sed -e 's/[^/]//g' | wc -c`)
|
|
|
|
if BUILD_RUAMOKO
|
|
data=game.dat$(GZ)
|
|
else
|
|
data=
|
|
endif
|
|
|
|
noinst_DATA= $(data)
|
|
EXTRA_DATA= game.dat
|
|
|
|
game_src= Axe.r GameEntity.r World.r tempent.r
|
|
|
|
%.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$(GZ): $(game_obj) ../lib/libr.a ../lib/libqw.a
|
|
$(QFCC) $(QCFLAGS) -p $(STRIP) -o game.dat $(game_obj) ../lib/libr.a ../lib/libqw.a ../lib/libr.a
|
|
$(GZIP)
|
|
|
|
EXTRA_DIST= $(game_src) Axe.h GameEntity.h tempent.h Weapon.h World.h
|
|
CLEANFILES= *.dat *.sym *.gz *.qfo
|