2002-08-15 19:08:44 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
2010-12-24 10:39:12 +00:00
|
|
|
pkglibdir=$(libdir)/qfcc/lib
|
2002-11-01 18:05:12 +00:00
|
|
|
|
2002-08-15 19:08:44 +00:00
|
|
|
QFCC=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
|
2011-03-02 13:13:16 +00:00
|
|
|
QCFLAGS=-qq -g -Wall -Wno-integer-divide -Werror
|
2002-08-15 19:08:44 +00:00
|
|
|
QCPPFLAGS=$(INCLUDES)
|
|
|
|
PAK=$(top_builddir)/tools/pak/pak$(EXEEXT)
|
|
|
|
RANLIB=touch
|
|
|
|
|
2002-08-18 00:30:07 +00:00
|
|
|
INCLUDES= -I$(top_srcdir)/ruamoko/include -I$(top_srcdir)/include
|
2002-08-15 19:08:44 +00:00
|
|
|
|
2010-12-12 01:25:09 +00:00
|
|
|
noinst_HEADERS= \
|
|
|
|
Array+Private.h
|
|
|
|
|
2004-02-03 06:00:16 +00:00
|
|
|
ruamoko_libs=libr.a libqw.a libnq.a libcsqc.a
|
2002-09-17 22:19:14 +00:00
|
|
|
if BUILD_RUAMOKO
|
|
|
|
libs=$(ruamoko_libs)
|
|
|
|
else
|
|
|
|
libs=
|
|
|
|
endif
|
|
|
|
|
2004-02-18 06:28:37 +00:00
|
|
|
pkglib_LIBRARIES= $(libs)
|
2002-09-17 22:19:14 +00:00
|
|
|
EXTRA_LIBRARIES= $(ruamoko_libs)
|
2002-08-15 19:08:44 +00:00
|
|
|
|
|
|
|
%.qfo: %.r
|
2002-08-21 22:57:43 +00:00
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $<
|
2002-08-15 19:08:44 +00:00
|
|
|
|
|
|
|
%.o: %.r
|
2002-08-21 22:57:43 +00:00
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $<
|
2002-08-15 19:08:44 +00:00
|
|
|
|
|
|
|
libr_a_SOURCES=\
|
2007-05-07 12:17:12 +00:00
|
|
|
cbuf.r cmd.r cvar.r file.r hash.r plist.r qfile.r qfs.r script.r sound.r \
|
|
|
|
string.r \
|
2010-12-12 01:25:09 +00:00
|
|
|
AutoreleasePool.r Array.r Array+Private.r Entity.r List.r ListNode.r Object.r \
|
2004-11-13 01:55:00 +00:00
|
|
|
PropertyList.r Protocol.r Stack.r
|
2002-08-15 19:08:44 +00:00
|
|
|
libr_a_AR=$(PAK) -cf
|
|
|
|
|
2004-02-03 06:00:16 +00:00
|
|
|
libqw_a_SOURCES=\
|
2004-02-25 02:38:15 +00:00
|
|
|
crudefile.r debug.r entities.r infokey.r math.r message.r \
|
|
|
|
physics.r qw_message.r qw_physics.r qw_sys.r \
|
2007-05-07 12:17:12 +00:00
|
|
|
server.r sv_sound.r system.r
|
2004-02-03 06:00:16 +00:00
|
|
|
libqw_a_AR=$(PAK) -cf
|
|
|
|
|
|
|
|
libnq_a_SOURCES=\
|
2004-02-25 02:38:15 +00:00
|
|
|
crudefile.r debug.r entities.r infokey.r math.r message.r \
|
2007-05-07 12:17:12 +00:00
|
|
|
nq_message.r physics.r server.r sv_sound.r system.r
|
2004-02-03 06:00:16 +00:00
|
|
|
libnq_a_AR=$(PAK) -cf
|
2002-08-15 21:00:51 +00:00
|
|
|
|
2002-08-17 05:27:34 +00:00
|
|
|
libcsqc_a_SOURCES= \
|
2004-02-03 08:31:26 +00:00
|
|
|
draw.r gib.r key.r system.r
|
2002-08-17 05:27:34 +00:00
|
|
|
libcsqc_a_AR= $(PAK) -cf
|
2002-08-16 20:15:10 +00:00
|
|
|
|
2002-09-17 22:19:14 +00:00
|
|
|
CLEANFILES= *.qfo *.o
|