2020-02-26 16:18:38 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
2002-05-31 19:24:56 +00:00
|
|
|
QWAQ_LIBS=@QWAQ_LIBS@
|
|
|
|
QWAQ_DEPS=@QWAQ_DEPS@
|
|
|
|
QWAQ_INCS=@QWAQ_INCS@
|
|
|
|
|
2020-02-26 13:10:59 +00:00
|
|
|
AM_CPPFLAGS= -I$(top_srcdir)/include $(QWAQ_INCS) $(PTHREAD_CFLAGS)
|
2002-05-31 19:24:56 +00:00
|
|
|
|
2020-02-26 16:18:38 +00:00
|
|
|
noinst_PROGRAMS=@QWAQ_TARGETS@ qwaq-app.dat$(EXEEXT)
|
|
|
|
|
2003-08-06 18:20:48 +00:00
|
|
|
QFCC_DEP=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
|
2002-05-31 06:55:35 +00:00
|
|
|
QFCC=$(top_builddir)/tools/qfcc/source/qfcc
|
|
|
|
|
2020-02-26 16:18:38 +00:00
|
|
|
QCFLAGS=-qq -O -g -Werror
|
|
|
|
QCPPFLAGS=--no-default-paths -I$(top_srcdir)/ruamoko/include
|
2020-03-03 00:30:20 +00:00
|
|
|
QCLINKFLAGS=--no-default-paths -L$(top_builddir)/ruamoko/lib
|
2020-02-26 16:18:38 +00:00
|
|
|
QCOMPILE=$(QFCC) $(QCFLAGS) $(QCPPFLAGS)
|
2020-03-03 00:30:20 +00:00
|
|
|
QLINK=$(QFCC) $(QCFLAGS) $(QCLINKFLAGS)
|
2020-02-26 16:18:38 +00:00
|
|
|
|
|
|
|
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
|
2002-05-31 06:55:35 +00:00
|
|
|
|
2020-03-05 06:44:53 +00:00
|
|
|
qwaq_app_dat_src= \
|
2020-03-06 04:54:46 +00:00
|
|
|
qwaq-app.r \
|
|
|
|
qwaq-group.r \
|
|
|
|
qwaq-screen.r \
|
|
|
|
qwaq-textcontext.r \
|
|
|
|
qwaq-view.r \
|
|
|
|
qwaq-window.r
|
2002-05-31 06:55:35 +00:00
|
|
|
|
2020-02-26 13:10:59 +00:00
|
|
|
qwaq_curses_libs=
|
|
|
|
qwaq_curses_SOURCES=main.c qwaq-curses.c
|
|
|
|
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)
|
2002-05-31 06:55:35 +00:00
|
|
|
|
2012-07-14 00:06:04 +00:00
|
|
|
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=qwaq.c qwaq-bi.c
|
|
|
|
qwaq_x11_LDADD= $(qwaq_x11_libs) $(QWAQ_LIBS) \
|
|
|
|
$(VIDMODE_LIBS) $(DGA_LIBS) $(X_LIBS) -lX11 \
|
2013-02-14 00:54:36 +00:00
|
|
|
$(X_EXTRA_LIBS) $(X_SHM_LIB) $(DL_LIBS)
|
2012-07-14 00:06:04 +00:00
|
|
|
qwaq_x11_LDFLAGS=
|
|
|
|
qwaq_x11_DEPENDENCIES= $(qwaq_x11_libs) $(QWAQ_DEPS)
|
|
|
|
|
2020-02-26 16:18:38 +00:00
|
|
|
r_depfiles_remade=
|
|
|
|
|
2020-03-05 06:44:53 +00:00
|
|
|
qwaq_app_dat_SOURCES=$(qwaq_app_dat_src)
|
2020-02-26 16:18:38 +00:00
|
|
|
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)
|
2020-03-03 00:30:20 +00:00
|
|
|
$(QLINK) -o $@ $(qwaq_app_obj) -lr
|
2020-02-26 16:18:38 +00:00
|
|
|
include $(qwaq_app_dep) # am--include-marker
|
|
|
|
r_depfiles_remade += $(qwaq_app_dep)
|
|
|
|
|
|
|
|
$(r_depfiles_remade):
|
|
|
|
@$(MKDIR_P) $(@D)
|
|
|
|
@echo '# dummy' >$@-t && $(am__mv) $@-t $@
|
|
|
|
|
|
|
|
am--depfiles: $(am__depfiles_remade) $(r_depfiles_remade)
|
2002-05-31 06:55:35 +00:00
|
|
|
|
2020-02-26 13:10:59 +00:00
|
|
|
EXTRA_PROGRAMS=qwaq-curses qwaq-x11
|
2003-01-08 16:07:45 +00:00
|
|
|
EXTRA_DIST=$(qwaq_dat_src) qwaq.h
|
2020-03-06 11:43:38 +00:00
|
|
|
CLEANFILES= *.dat *.sym qwaq-curses.log
|