2002-08-15 19:08:44 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
QFCC_DEP=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
|
|
|
|
QFCC=$(QFCC_DEP)
|
|
|
|
|
|
|
|
ruamoko_libs=libr.a libqw.a libnq.a libcsqc.a
|
|
|
|
libs=$(ruamoko_libs)
|
|
|
|
|
2012-05-05 10:34:35 +00:00
|
|
|
pkglibdir=$(datarootdir)/qfcc/lib
|
2002-11-01 18:05:12 +00:00
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
pkglib_LIBRARIES= $(libs)
|
|
|
|
EXTRA_LIBRARIES= $(ruamoko_libs)
|
|
|
|
|
|
|
|
noinst_HEADERS= \
|
|
|
|
Array+Private.h
|
|
|
|
|
|
|
|
QCFLAGS=-qq -O -g -Wall -Wno-integer-divide -Werror
|
2020-03-03 06:24:41 +00:00
|
|
|
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)
|
2010-12-12 01:25:09 +00:00
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
MKDIR_P = @MKDIR_P@
|
|
|
|
am__mv = mv -f
|
2002-09-17 22:19:14 +00:00
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
PAK=$(top_builddir)/tools/pak/pak$(EXEEXT)
|
|
|
|
RANLIB=touch
|
2002-08-15 19:08:44 +00:00
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
SUFFIXES= .o .r
|
2011-07-25 21:19:43 +00:00
|
|
|
.r.o:
|
2020-03-03 08:24:53 +00:00
|
|
|
$(QCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tqo -p $(STRIP) -c -o $@ $<
|
|
|
|
sed -i -e '1s@:@: $(QFCC_DEP)@' $(DEPDIR)/$*.Tqo
|
|
|
|
$(am__mv) $(DEPDIR)/$*.Tqo $(DEPDIR)/$*.Qo
|
|
|
|
|
|
|
|
r_depfiles_remade=
|
2002-08-15 19:08:44 +00:00
|
|
|
|
|
|
|
libr_a_SOURCES=\
|
2020-02-26 04:45:14 +00:00
|
|
|
cbuf.r cmd.r cvar.r hash.r msgbuf.r plist.r qfile.r qfs.r script.r \
|
2020-02-19 01:46:16 +00:00
|
|
|
sound.r string.r math.r types.r \
|
2020-03-09 10:09:08 +00:00
|
|
|
obj_forward.r \
|
2011-06-14 17:28:51 +00:00
|
|
|
Object.r Protocol.r \
|
2012-12-16 04:48:36 +00:00
|
|
|
AutoreleasePool.r Array.r Array+Private.r Entity.r PropertyList.r Set.r
|
2020-03-03 08:24:53 +00:00
|
|
|
libr_a_obj=$(libr_a_SOURCES:.r=.o)
|
|
|
|
libr_a_dep=$(addprefix ./$(DEPDIR)/,$(libr_a_obj:.o=.Qo))
|
2002-08-15 19:08:44 +00:00
|
|
|
libr_a_AR=$(PAK) -cf
|
2020-03-03 08:24:53 +00:00
|
|
|
include $(libr_a_dep) # am--include-marker
|
|
|
|
r_depfiles_remade += $(libr_a_dep)
|
|
|
|
|
2020-03-24 15:04:20 +00:00
|
|
|
common_src=debug.r system.r legacy_string.r
|
2020-03-03 08:24:53 +00:00
|
|
|
server_src= \
|
|
|
|
crudefile.r entities.r infokey.r message.r \
|
|
|
|
physics.r server.r sv_sound.r
|
|
|
|
libqw_a_src= \
|
|
|
|
qw_message.r qw_physics.r qw_sys.r
|
|
|
|
libnq_a_src= \
|
|
|
|
nq_message.r
|
|
|
|
libcsqc_a_src= draw.r gib.r key.r
|
|
|
|
|
|
|
|
common_obj=$(common_src:.r=.o)
|
|
|
|
common_dep=$(addprefix ./$(DEPDIR)/,$(common_obj:.o=.Qo))
|
|
|
|
include $(common_dep) # am--include-marker
|
|
|
|
r_depfiles_remade += $(common_dep)
|
2002-08-15 19:08:44 +00:00
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
server_obj=$(server_src:.r=.o)
|
|
|
|
server_dep=$(addprefix ./$(DEPDIR)/,$(server_obj:.o=.Qo))
|
|
|
|
include $(server_dep) # am--include-marker
|
|
|
|
r_depfiles_remade += $(server_dep)
|
|
|
|
|
|
|
|
libqw_a_SOURCES=$(libqw_a_src) $(common_src) $(server_src) math.r
|
|
|
|
libqw_a_obj=$(libqw_a_src:.r=.o)
|
|
|
|
libqw_a_dep=$(addprefix ./$(DEPDIR)/,$(libqw_a_obj:.o=.Qo))
|
2004-02-03 06:00:16 +00:00
|
|
|
libqw_a_AR=$(PAK) -cf
|
2020-03-03 08:24:53 +00:00
|
|
|
include $(libqw_a_dep) # am--include-marker
|
|
|
|
r_depfiles_remade += $(libqw_a_dep)
|
2004-02-03 06:00:16 +00:00
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
libnq_a_SOURCES=$(libnq_a_src) $(common_src) $(server_src) math.r
|
|
|
|
libnq_a_obj=$(libnq_a_src:.r=.o)
|
|
|
|
libnq_a_dep=$(addprefix ./$(DEPDIR)/,$(libnq_a_obj:.o=.Qo))
|
2004-02-03 06:00:16 +00:00
|
|
|
libnq_a_AR=$(PAK) -cf
|
2020-03-03 08:24:53 +00:00
|
|
|
include $(libnq_a_dep) # am--include-marker
|
|
|
|
r_depfiles_remade += $(libnq_a_dep)
|
2002-08-15 21:00:51 +00:00
|
|
|
|
2020-03-03 08:24:53 +00:00
|
|
|
libcsqc_a_SOURCES=$(libcsqc_a_src) $(common_src)
|
|
|
|
libcsqc_a_obj=$(libcsqc_a_src:.r=.o)
|
|
|
|
libcsqc_a_dep=$(addprefix ./$(DEPDIR)/,$(libcsqc_a_obj:.o=.Qo))
|
2002-08-17 05:27:34 +00:00
|
|
|
libcsqc_a_AR= $(PAK) -cf
|
2020-03-03 08:24:53 +00:00
|
|
|
include $(libcsqc_a_dep) # am--include-marker
|
|
|
|
r_depfiles_remade += $(libcsqc_a_dep)
|
|
|
|
|
|
|
|
$(r_depfiles_remade):
|
|
|
|
$(MKDIR_P) $(@D)
|
|
|
|
echo '# dummy' >$@-t && $(am__mv) $@-t $@
|
|
|
|
|
|
|
|
am--depfiles: $(am__depfiles_remade) $(r_depfiles_remade)
|
2002-08-16 20:15:10 +00:00
|
|
|
|
2002-09-17 22:19:14 +00:00
|
|
|
CLEANFILES= *.qfo *.o
|