2002-01-22 05:48:03 +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?
|
2002-01-22 06:22:52 +00:00
|
|
|
pkgdatadir=@sharepath@/id1
|
2002-01-22 05:48:03 +00:00
|
|
|
|
|
|
|
QFCC=$(top_builddir)/tools/qfcc/source/qfcc
|
2002-05-31 07:24:54 +00:00
|
|
|
QCFLAGS=-qq -g -Werror
|
2002-01-22 05:48:03 +00:00
|
|
|
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
|
2002-04-10 19:11:19 +00:00
|
|
|
if HAVE_ZLIB
|
|
|
|
GZ=.gz
|
|
|
|
else
|
|
|
|
GZ=
|
|
|
|
endif
|
2002-04-10 19:52:48 +00:00
|
|
|
STRIP=$(shell echo -n $(srcdir)/ | sed -e 's/[^/]//g' | wc -c)
|
2002-01-22 05:48:03 +00:00
|
|
|
|
2002-04-10 19:11:19 +00:00
|
|
|
pkgdata_DATA= menu.dat$(GZ)
|
2002-01-22 05:48:03 +00:00
|
|
|
|
2002-04-10 19:11:19 +00:00
|
|
|
menu_src= \
|
2002-04-12 17:19:49 +00:00
|
|
|
cbuf_def.qc cmd_def.qc controls_o.qc cvar_def.qc draw_def.qc file_def.qc \
|
2002-04-10 19:11:19 +00:00
|
|
|
game_def.qc inputline_def.qc inputline_util.qc key_defs.qc menu.qc \
|
|
|
|
menu_def.qc menu_pics.qc menu_util.qc options.qc options_util.qc \
|
2002-05-22 17:32:44 +00:00
|
|
|
servlist.qc string_def.qc stringh_def.qc object.r
|
2002-01-22 18:04:03 +00:00
|
|
|
|
2002-04-10 19:11:19 +00:00
|
|
|
menu.dat$(GZ): menu.src $(menu_src)
|
2002-04-10 19:52:48 +00:00
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -p $(STRIP) -P $<
|
2002-04-10 19:11:19 +00:00
|
|
|
$(GZIP)
|
2002-01-22 05:48:03 +00:00
|
|
|
|
2002-01-22 18:04:03 +00:00
|
|
|
EXTRA_DIST= $(menu_src)
|
2002-04-10 19:11:19 +00:00
|
|
|
CLEANFILES= *.dat *.sym *.gz
|