2002-08-16 21:54:21 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
2020-03-03 08:24:53 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign no-exeext
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
QFCC_DEP=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
|
|
|
|
QFCC=$(QFCC_DEP)
|
2020-03-03 08:24:53 +00:00
|
|
|
|
2012-02-13 07:08:03 +00:00
|
|
|
GZ=@progs_gz@
|
2020-03-03 08:24:53 +00:00
|
|
|
menu_libexec=menu.dat
|
|
|
|
menu_data=menu.plist menu.sym
|
|
|
|
|
|
|
|
pkglibexecdir=@sharepath@/QF
|
|
|
|
pkgdatadir=@sharepath@/QF
|
|
|
|
|
|
|
|
pkgdata_DATA= $(menu_data)
|
|
|
|
pkglibexec_PROGRAMS= $(menu_libexec)
|
|
|
|
EXTRA_PROGRAMS= $(menu_libexec)
|
|
|
|
|
|
|
|
QCFLAGS=-qq -O -g -Wall -Werror -Wno-integer-divide
|
|
|
|
QCPPFLAGS=--no-default-paths -I$(top_srcdir)/ruamoko/include -I$(top_srcdir)/include
|
|
|
|
QCLINKFLAGS=--no-default-paths -L$(top_builddir)/ruamoko/lib
|
|
|
|
QCOMPILE=$(QFCC) $(QCFLAGS) $(QCPPFLAGS)
|
|
|
|
QLINK=$(QFCC) $(QCFLAGS) $(QCLINKFLAGS)
|
|
|
|
|
|
|
|
MKDIR_P = @MKDIR_P@
|
|
|
|
am__mv = mv -f
|
|
|
|
|
|
|
|
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
|
2011-07-25 21:19:43 +00:00
|
|
|
# BSD make can't handle $(shell foo) directives, and GNU make can't handle |=
|
|
|
|
# so we have to bite the bullet and pass this to the shell every time.
|
|
|
|
STRIP=`echo -n $(srcdir)/ | sed -e 's/[^/]//g' | wc -c`
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
SUFFIXES=.o .r
|
|
|
|
.r.o:
|
|
|
|
$(QCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tqo -p $(STRIP) -c -o $@ $<
|
2020-03-26 07:53:53 +00:00
|
|
|
@sed -i -e '1s@:@: $(QFCC_DEP)@' $(DEPDIR)/$*.Tqo
|
|
|
|
@$(am__mv) $(DEPDIR)/$*.Tqo $(DEPDIR)/$*.Qo
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
menu_src= \
|
2011-07-25 21:19:43 +00:00
|
|
|
client_menu.r controls_o.r options.r options_util.r servlist.r \
|
2020-03-03 08:24:53 +00:00
|
|
|
Frame.r HUD.r menu.r plistmenu.r \
|
2010-11-24 05:43:16 +00:00
|
|
|
\
|
|
|
|
CrosshairCvar.r CrosshairView.r CvarColor.r CvarColorView.r \
|
2011-03-25 09:26:10 +00:00
|
|
|
CvarObject.r CvarRange.r CvarRangeView.r CvarString.r CvarStringView.r \
|
|
|
|
CvarToggle.r CvarToggleView.r \
|
2011-07-10 09:58:50 +00:00
|
|
|
MenuGroup.r MouseToggle.r ProxyView.r RunToggle.r SubMenu.r
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
r_depfiles_remade=
|
|
|
|
|
|
|
|
menu_dat_SOURCES=$(menu_src)
|
|
|
|
menu_obj=$(menu_src:.r=.o)
|
|
|
|
menu_dep=$(addprefix ./$(DEPDIR)/,$(menu_obj:.o=.Qo))
|
|
|
|
menu.dat: $(menu_obj) $(QFCC_DEP) ../lib/libcsqc.a ../lib/libr.a ../gui/libgui.a
|
|
|
|
$(QLINK) -p $(STRIP) -o menu.dat $(menu_obj) ../gui/libgui.a ../lib/libcsqc.a ../lib/libr.a
|
|
|
|
include $(menu_dep) # am--include-marker
|
|
|
|
r_depfiles_remade += $(menu_dep)
|
|
|
|
|
|
|
|
menu.sym: menu.dat
|
|
|
|
|
|
|
|
$(r_depfiles_remade):
|
|
|
|
$(MKDIR_P) $(@D)
|
|
|
|
echo '# dummy' >$@-t && $(am__mv) $@-t $@
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
am--depfiles: $(am__depfiles_remade) $(r_depfiles_remade)
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
EXTRA_DIST= $(menu_src) \
|
2010-12-06 12:24:49 +00:00
|
|
|
CrosshairCvar.h CrosshairView.h CvarColor.h CvarColorView.h CvarObject.h \
|
2011-03-25 09:26:10 +00:00
|
|
|
CvarRange.h CvarRangeView.h CvarString.h CvarStringView.h \
|
|
|
|
CvarToggle.h CvarToggleView.h Frame.h HUD.h \
|
2011-07-10 09:58:50 +00:00
|
|
|
MenuGroup.h MouseToggle.h ProxyView.h RunToggle.h SubMenu.h client_menu.h \
|
2010-12-06 12:24:49 +00:00
|
|
|
controls_o.h menu.h options.h options_util.h plistmenu.h servlist.h \
|
2004-11-18 05:08:00 +00:00
|
|
|
menu.plist
|
2020-03-03 08:24:53 +00:00
|
|
|
CLEANFILES= *.dat *.sym *.gz *.qfo *.o
|