quakeforge/cs-code/Makefile.am

42 lines
1.2 KiB
Text
Raw Normal View History

## 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
2002-06-13 15:36:00 +00:00
QFCC_DEP=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
QFCC=$(QFCC_DEP)
2002-05-31 07:24:54 +00:00
QCFLAGS=-qq -g -Werror
QCPPFLAGS=-I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include
2002-05-31 07:24:54 +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
if HAVE_ZLIB
GZ=.gz
else
GZ=
endif
STRIP=$(shell echo `echo -n $(srcdir)/ | sed -e 's/[^/]//g' | wc -c`)
pkgdata_DATA= menu.dat$(GZ)
menu_src= \
cbuf.r client_menu.qc cmd.r controls_o.qc cvar.r draw.r file.r \
game.r inputline.r inputline_util.qc key.r \
menu.r menu_pics.qc menu_util.qc options.qc options_util.qc \
servlist.qc string.r stringh.r object.r
2002-01-22 18:04:03 +00:00
%.qfo: %.r
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -p $(STRIP) -c -o $@ $<
%.qfo: %.qc
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -p $(STRIP) -c -o $@ $<
menu_obj=$(addsuffix .qfo,$(basename $(menu_src)))
menu.dat$(GZ): $(menu_obj) $(QFCC_DEP)
$(QFCC) $(QCFLAGS) -p $(STRIP) -o menu.dat $(menu_obj)
$(GZIP)
2002-01-22 18:04:03 +00:00
EXTRA_DIST= $(menu_src)
CLEANFILES= *.dat *.sym *.gz *.qfo