mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-06 13:11:20 +00:00
7f69f593d3
define default include and lib paths for qfcc ruamoko: {cl_menu,game}/Makefile.am: conform to the new qfcc library linking rules lib/Makefile.am: install the libs to ${prefix}/lib/ruamoko qfcc: linker.[ch]: support path searching for -llib and make linker_add_lib search for libfoo.a for -lfoo in the paths, or just a single dir search for the libname otherwise. options.c: support -L libpath and setup the default include and lib paths also change most strdup calls to save_string qfcc.c: check for foo.a as well as -lfoo when deciding whether the file is an object file or lib file.
52 lines
1.5 KiB
Makefile
52 lines
1.5 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 -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`)
|
|
|
|
menu_data=menu.dat$(GZ)
|
|
|
|
if BUILD_RUAMOKO
|
|
data=$(menu_data)
|
|
else
|
|
data=
|
|
endif
|
|
|
|
pkgdata_DATA= $(data)
|
|
EXTRA_DATA= $(menu_data)
|
|
|
|
menu_src= \
|
|
client_menu.qc controls_o.qc \
|
|
inputline_util.qc menu.r options.qc \
|
|
options_util.qc servlist.qc string.r stringh.r
|
|
|
|
%.qfo: %.r
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $<
|
|
|
|
%.qfo: %.qc
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $<
|
|
|
|
menu_obj=$(addsuffix .qfo,$(basename $(menu_src)))
|
|
|
|
menu.dat$(GZ): $(menu_obj) $(QFCC_DEP) ../lib/libgui.a ../lib/libcsqc.a ../lib/libr.a
|
|
$(QFCC) $(QCFLAGS) -p $(STRIP) -o menu.dat $(menu_obj) ../lib/libgui.a ../lib/libcsqc.a ../lib/libr.a
|
|
$(GZIP)
|
|
|
|
EXTRA_DIST= $(menu_src) \
|
|
client_menu.h controls_o.h \
|
|
menu.h options.h \
|
|
options_util.h servlist.h string.h stringh.h
|
|
CLEANFILES= *.dat *.sym *.gz *.qfo
|