2002-08-15 19:08:44 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
2002-11-01 18:05:12 +00:00
|
|
|
libdir=$(prefix)/lib/ruamoko
|
|
|
|
|
2002-08-15 19:08:44 +00:00
|
|
|
QFCC=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
|
|
|
|
QCFLAGS=-qq -g -Werror
|
|
|
|
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
|
|
|
|
2002-09-17 22:19:14 +00:00
|
|
|
ruamoko_libs=libr.a libgui.a libcsqc.a
|
|
|
|
if BUILD_RUAMOKO
|
|
|
|
libs=$(ruamoko_libs)
|
|
|
|
else
|
|
|
|
libs=
|
|
|
|
endif
|
|
|
|
|
2002-11-01 18:05:12 +00:00
|
|
|
lib_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=\
|
2003-04-07 16:38:34 +00:00
|
|
|
crudefile.r debug.r hash.r entities.r infokey.r math.r message.r \
|
2003-04-07 20:02:06 +00:00
|
|
|
nq_message.r physics.r plist.r qfile.r qw_message.r qw_physics.r qw_sys.r \
|
|
|
|
sound.r \
|
2003-04-07 16:38:34 +00:00
|
|
|
string.r system.r Object.r Array.r Entity.r Point.r Size.r Rect.r
|
2002-08-15 19:08:44 +00:00
|
|
|
libr_a_AR=$(PAK) -cf
|
|
|
|
|
2002-08-15 21:00:51 +00:00
|
|
|
libgui_a_SOURCES=\
|
2002-08-17 06:47:03 +00:00
|
|
|
draw.r InputLine.r key.r
|
2002-08-15 21:00:51 +00:00
|
|
|
libgui_a_AR=$(PAK) -cf
|
|
|
|
|
2002-08-17 05:27:34 +00:00
|
|
|
libcsqc_a_SOURCES= \
|
2003-04-13 20:43:52 +00:00
|
|
|
cbuf.r cmd.r cvar.r file.r gib.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
|