2002-08-16 21:54:21 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
2003-02-07 20:18:59 +00:00
|
|
|
pkgdatadir=@sharepath@/QF
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
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 -I$(top_builddir)/include -I$(top_srcdir)/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`)
|
|
|
|
|
2004-11-18 05:08:00 +00:00
|
|
|
menu_data=menu.dat$(GZ) menu.plist
|
2002-09-17 22:19:14 +00:00
|
|
|
|
|
|
|
if BUILD_RUAMOKO
|
|
|
|
data=$(menu_data)
|
|
|
|
else
|
|
|
|
data=
|
|
|
|
endif
|
|
|
|
|
|
|
|
pkgdata_DATA= $(data)
|
|
|
|
EXTRA_DATA= $(menu_data)
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
menu_src= \
|
2004-02-14 05:02:25 +00:00
|
|
|
client_menu.qc controls_o.qc options.qc options_util.qc servlist.qc \
|
2010-11-24 05:43:16 +00:00
|
|
|
Frame.r menu.r HUD.r plistmenu.r ../lib/debug.r \
|
|
|
|
\
|
|
|
|
CrosshairCvar.r CrosshairView.r CvarColor.r CvarColorView.r \
|
|
|
|
CvarObject.r CvarRange.r CvarRangeView.r CvarToggle.r CvarToggleView.r \
|
|
|
|
MenuGroup.r MouseToggle.r ProxyView.r RunToggle.r
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
%.qfo: %.r
|
2002-08-20 06:11:10 +00:00
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $<
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
%.qfo: %.qc
|
2002-08-20 06:11:10 +00:00
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $<
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
menu_obj=$(addsuffix .qfo,$(basename $(menu_src)))
|
|
|
|
|
2004-02-03 08:31:26 +00:00
|
|
|
menu.dat$(GZ): $(menu_obj) $(QFCC_DEP) ../lib/libcsqc.a ../lib/libr.a ../gui/libgui.a
|
|
|
|
$(QFCC) $(QCFLAGS) -p $(STRIP) -o menu.dat $(menu_obj) ../gui/libgui.a ../lib/libcsqc.a ../lib/libr.a
|
2002-08-16 21:54:21 +00:00
|
|
|
$(GZIP)
|
|
|
|
|
|
|
|
EXTRA_DIST= $(menu_src) \
|
2010-12-06 12:24:49 +00:00
|
|
|
CrosshairCvar.h CrosshairView.h CvarColor.h CvarColorView.h CvarObject.h \
|
|
|
|
CvarRange.h CvarRangeView.h CvarToggle.h CvarToggleView.h Frame.h HUD.h \
|
|
|
|
MenuGroup.h MouseToggle.h ProxyView.h RunToggle.h client_menu.h \
|
|
|
|
controls_o.h menu.h options.h options_util.h plistmenu.h servlist.h \
|
2004-11-18 05:08:00 +00:00
|
|
|
menu.plist
|
2002-08-16 21:54:21 +00:00
|
|
|
CLEANFILES= *.dat *.sym *.gz *.qfo
|