2012-11-22 06:40:16 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
INCLUDES= -I$(top_srcdir)/include $(QFCC_INCS)
|
|
|
|
|
|
|
|
QFCC_DEP=$(builddir)/../source/qfcc$(EXEEXT)
|
|
|
|
QFCC=$(QFCC_DEP)
|
|
|
|
|
|
|
|
QCFLAGS=-qq -g --no-default-paths
|
|
|
|
QCPPFLAGS=
|
2012-11-22 08:11:21 +00:00
|
|
|
QCOMPILE=$(QFCC) $(QCFLAGS) $(QCPPFLAGS)
|
2012-11-22 06:40:16 +00:00
|
|
|
|
|
|
|
SUFFIXES=.qfo .r
|
|
|
|
.r.qfo:
|
2012-11-22 08:11:21 +00:00
|
|
|
$(QCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tqo -c -o $@ $<
|
|
|
|
sed -i -e '1s@:@: $(QFCC_DEP)@' $(DEPDIR)/$*.Tqo
|
|
|
|
$(am__mv) $(DEPDIR)/$*.Tqo $(DEPDIR)/$*.Qo
|
2012-11-22 06:40:16 +00:00
|
|
|
|
|
|
|
QFCC_TEST_LIBS=@QFCC_TEST_LIBS@
|
|
|
|
QFCC_TEST_DEPS=@QFCC_TEST_DEPS@
|
|
|
|
QFCC_TEST_INCS=@QFCC_TEST_INCS@
|
|
|
|
|
2012-11-26 12:42:37 +00:00
|
|
|
test_progs_dat=\
|
|
|
|
chewed-alias.dat \
|
|
|
|
deadbool.dat \
|
|
|
|
infloop.dat \
|
|
|
|
modulo.dat \
|
|
|
|
structptr.dat \
|
|
|
|
while.dat
|
2012-11-22 06:40:16 +00:00
|
|
|
|
|
|
|
TESTS=$(test_progs_dat:.dat=.run)
|
|
|
|
|
|
|
|
check_PROGRAMS=test-harness $(test_progs_dat)
|
|
|
|
|
|
|
|
test_harness_SOURCES= test-bi.c test-harness.c
|
|
|
|
test_harness_LDADD= $(QFCC_TEST_LIBS)
|
|
|
|
test_harness_DEPENDENCIES= $(QFCC_TEST_DEPS)
|
|
|
|
|
2012-11-26 12:42:37 +00:00
|
|
|
chewed_alias_dat_SOURCES=chewed-alias.r
|
|
|
|
chewed_alias_obj=$(chewed_alias_dat_SOURCES:.r=.qfo)
|
|
|
|
chewed-alias.dat: $(chewed_alias_obj) $(QFCC_DEP)
|
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(chewed_alias_obj)
|
|
|
|
chewed-alias.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
|
|
|
|
2012-11-26 12:05:24 +00:00
|
|
|
deadbool_dat_SOURCES=deadbool.r
|
|
|
|
deadbool_obj=$(deadbool_dat_SOURCES:.r=.qfo)
|
|
|
|
deadbool.dat: $(deadbool_obj) $(QFCC_DEP)
|
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(deadbool_obj)
|
|
|
|
deadbool.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
|
|
|
|
2012-11-24 05:53:45 +00:00
|
|
|
infloop_dat_SOURCES=infloop.r
|
|
|
|
infloop_obj=$(infloop_dat_SOURCES:.r=.qfo)
|
|
|
|
infloop.dat: $(infloop_obj) $(QFCC_DEP)
|
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(infloop_obj)
|
|
|
|
infloop.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
|
|
|
|
2012-11-22 11:49:12 +00:00
|
|
|
modulo_dat_SOURCES=modulo.r
|
|
|
|
modulo_obj=$(modulo_dat_SOURCES:.r=.qfo)
|
|
|
|
modulo.dat: $(modulo_obj) $(QFCC_DEP)
|
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(modulo_obj)
|
|
|
|
modulo.run: Makefile build-run
|
|
|
|
TEST_HARNESS_OPTS=--float $(srcdir)/build-run $@
|
|
|
|
|
2012-11-22 06:47:28 +00:00
|
|
|
structptr_dat_SOURCES=structptr.r
|
|
|
|
structptr_obj=$(structptr_dat_SOURCES:.r=.qfo)
|
2012-11-22 06:40:16 +00:00
|
|
|
structptr.dat: $(structptr_obj) $(QFCC_DEP)
|
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(structptr_obj)
|
|
|
|
structptr.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
|
|
|
|
2012-11-22 06:47:28 +00:00
|
|
|
while_dat_SOURCES=while.r
|
|
|
|
while_obj=$(while_dat_SOURCES:.r=.qfo)
|
2012-11-22 06:40:16 +00:00
|
|
|
while.dat: $(while_obj) $(QFCC_DEP)
|
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(while_obj)
|
|
|
|
while.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
|
|
|
|
2012-11-22 08:11:21 +00:00
|
|
|
include ./$(DEPDIR)/*.Qo
|
|
|
|
|
2012-11-22 06:47:28 +00:00
|
|
|
EXTRA_DIST= test-bi.h build-run
|
2012-11-22 06:40:16 +00:00
|
|
|
CLEANFILES= *.dat *.sym *.qfo *.run
|