mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 15:51:36 +00:00
0da92e33f6
This is much nicer (even though things aren't quite right yet)
135 lines
3.8 KiB
Makefile
135 lines
3.8 KiB
Makefile
AUTOMAKE_OPTIONS= foreign subdir-objects
|
|
|
|
QWAQ_LIBS=@QWAQ_LIBS@
|
|
QWAQ_DEPS=@QWAQ_DEPS@
|
|
QWAQ_INCS=@QWAQ_INCS@
|
|
|
|
AM_CPPFLAGS= -I$(srcdir) -I$(top_srcdir)/include $(QWAQ_INCS) $(PTHREAD_CFLAGS)
|
|
|
|
noinst_PROGRAMS=@QWAQ_TARGETS@ qwaq-app.dat$(EXEEXT) gcd.dat$(EXEEXT)
|
|
|
|
QFCC_DEP=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
|
|
QFCC=$(top_builddir)/tools/qfcc/source/qfcc
|
|
|
|
QCSYSTEM=--no-default-paths -I$(top_srcdir)/ruamoko/include -I$(top_srcdir)/include
|
|
QWAQ_INC=-I$(srcdir) -I$(srcdir)/builtins -I$(srcdir)/debugger -I$(srcdir)/editor -I$(srcdir)/ui
|
|
QCFLAGS=-qq -O -g -Werror
|
|
QCPPFLAGS=$(QCSYSTEM) -I$(srcdir)
|
|
QCLINKFLAGS=--no-default-paths -L$(top_builddir)/ruamoko/lib
|
|
QCOMPILE=$(QFCC) $(QCFLAGS) $(QCPPFLAGS)
|
|
QLINK=$(QFCC) $(QCFLAGS) $(QCLINKFLAGS)
|
|
|
|
SUFFIXES=.o .r
|
|
.r.o:
|
|
$(QCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tqo -c -o $@ $<
|
|
@sed -i -e '1s@:@: $(QFCC_DEP)@' $(DEPDIR)/$*.Tqo
|
|
@$(am__mv) $(DEPDIR)/$*.Tqo $(DEPDIR)/$*.Qo
|
|
|
|
qwaq_app_dat_src= \
|
|
qwaq-app.r \
|
|
debugger/defview.r \
|
|
debugger/nameview.r \
|
|
debugger/basicview.r \
|
|
debugger/doubleview.r \
|
|
debugger/entityview.r \
|
|
debugger/fieldview.r \
|
|
debugger/floatview.r \
|
|
debugger/funcview.r \
|
|
debugger/intview.r \
|
|
debugger/pointerview.r \
|
|
debugger/quatview.r \
|
|
debugger/stringview.r \
|
|
debugger/uintview.r \
|
|
debugger/vectorview.r \
|
|
debugger/voidview.r \
|
|
debugger/debug.r \
|
|
debugger/debugger.r \
|
|
debugger/localsdata.r \
|
|
debugger/typeencodings.r \
|
|
editor/editbuffer.r \
|
|
editor/editor.r \
|
|
ui/button.r \
|
|
ui/draw.r \
|
|
ui/garray.r \
|
|
ui/group.r \
|
|
ui/listener.r \
|
|
ui/proxyview.r \
|
|
ui/rect.r \
|
|
ui/scrollbar.r \
|
|
ui/tableview.r \
|
|
ui/textcontext.r \
|
|
ui/titlebar.r \
|
|
ui/view.r \
|
|
ui/window.r \
|
|
$e
|
|
|
|
#FIXME this coupling is horrible
|
|
qwaq_curses_libs= \
|
|
$(top_builddir)/libs/video/targets/libvid_common.la \
|
|
$(top_builddir)/libs/console/libQFconsole.la \
|
|
$(top_builddir)/libs/gib/libQFgib.la
|
|
|
|
qwaq_curses_SOURCES= \
|
|
builtins/main.c \
|
|
builtins/curses.c \
|
|
builtins/debug.c \
|
|
builtins/editbuffer.c \
|
|
builtins/input.c \
|
|
$e
|
|
|
|
qwaq_curses_LDADD= $(qwaq_curses_libs) $(QWAQ_LIBS) \
|
|
$(PANEL_LIBS) $(CURSES_LIBS) $(PTHREAD_LDFLAGS) $(DL_LIBS)
|
|
qwaq_curses_LDFLAGS=
|
|
qwaq_curses_DEPENDENCIES= $(qwaq_curses_libs) $(QWAQ_DEPS)
|
|
|
|
cl_plugin_libs= \
|
|
@client_static_plugin_libs@
|
|
|
|
client_libs= \
|
|
$(top_builddir)/libs/console/libQFconsole.la \
|
|
$(top_builddir)/libs/video/targets/libQFjs.la \
|
|
$(top_builddir)/libs/audio/libQFcd.la \
|
|
$(top_builddir)/libs/audio/libQFsound.la \
|
|
$(top_builddir)/libs/image/libQFimage.la
|
|
|
|
qwaq_x11_libs= \
|
|
$(cl_plugin_libs) \
|
|
$(top_builddir)/libs/video/renderer/libQFrenderer.la \
|
|
$(top_builddir)/libs/models/libQFmodels.la \
|
|
$(top_builddir)/libs/video/targets/libQFx11.la \
|
|
$(client_libs) \
|
|
$(top_builddir)/libs/gib/libQFgib.la
|
|
qwaq_x11_SOURCES=builtins/qwaq.c builtins/qwaq-bi.c
|
|
qwaq_x11_LDADD= $(qwaq_x11_libs) $(QWAQ_LIBS) \
|
|
$(VIDMODE_LIBS) $(DGA_LIBS) $(X_LIBS) -lX11 \
|
|
$(X_EXTRA_LIBS) $(X_SHM_LIB) $(DL_LIBS)
|
|
qwaq_x11_LDFLAGS=
|
|
qwaq_x11_DEPENDENCIES= $(qwaq_x11_libs) $(QWAQ_DEPS)
|
|
|
|
r_depfiles_remade=
|
|
|
|
qwaq_app_dat_SOURCES=$(qwaq_app_dat_src)
|
|
qwaq_app_obj=$(qwaq_app_dat_SOURCES:.r=.o)
|
|
qwaq_app_dep=$(addprefix ./$(DEPDIR)/,$(qwaq_app_obj:.o=.Qo))
|
|
qwaq-app.dat$(EXEEXT): $(qwaq_app_obj) $(QFCC_DEP) ../lib/libcsqc.a ../lib/libr.a
|
|
$(QLINK) -o $@ $(qwaq_app_obj) -lcsqc -lr
|
|
include $(qwaq_app_dep) # am--include-marker
|
|
r_depfiles_remade += $(qwaq_app_dep)
|
|
|
|
gcd_dat_SOURCES=gcd.r
|
|
gcd_obj=$(gcd_dat_SOURCES:.r=.o)
|
|
gcd_dep=$(addprefix ./$(DEPDIR)/,$(gcd_obj:.o=.Qo))
|
|
gcd.dat$(EXEEXT): $(gcd_obj) $(QFCC_DEP) ../lib/libcsqc.a ../lib/libr.a
|
|
$(QLINK) -o $@ $(gcd_obj) -lcsqc -lr
|
|
include $(gcd_dep) # am--include-marker
|
|
r_depfiles_remade += $(gcd_dep)
|
|
|
|
$(r_depfiles_remade):
|
|
@$(MKDIR_P) $(@D)
|
|
@echo '# dummy' >$@-t && $(am__mv) $@-t $@
|
|
|
|
am--depfiles: $(am__depfiles_remade) $(r_depfiles_remade)
|
|
|
|
EXTRA_PROGRAMS=qwaq-curses qwaq-x11
|
|
EXTRA_DIST=$(qwaq_dat_src) qwaq.h
|
|
CLEANFILES= *.dat *.sym qwaq-curses.log
|