2012-11-22 06:40:16 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign
|
2018-09-09 13:37:09 +00:00
|
|
|
|
|
|
|
QFCC_LIBS=@QFCC_LIBS@
|
|
|
|
QFCC_DEPS=@QFCC_DEPS@
|
|
|
|
QFCC_INCS=@QFCC_INCS@
|
|
|
|
|
2013-11-24 04:11:50 +00:00
|
|
|
AM_CPPFLAGS= -I$(top_srcdir)/include $(QFCC_INCS)
|
2012-11-22 06:40:16 +00:00
|
|
|
|
|
|
|
QFCC_DEP=$(builddir)/../source/qfcc$(EXEEXT)
|
|
|
|
QFCC=$(QFCC_DEP)
|
|
|
|
|
2012-12-10 12:09:53 +00:00
|
|
|
QCFLAGS=-qq -O -g --no-default-paths -Werror
|
2012-11-22 06:40:16 +00:00
|
|
|
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@
|
|
|
|
|
2018-09-09 13:37:09 +00:00
|
|
|
test_bins=\
|
|
|
|
test-defspace
|
|
|
|
|
|
|
|
fail_bins=
|
|
|
|
|
2012-11-26 12:42:37 +00:00
|
|
|
test_progs_dat=\
|
|
|
|
chewed-alias.dat \
|
2012-11-30 11:47:36 +00:00
|
|
|
chewed-return.dat \
|
2013-09-27 09:21:15 +00:00
|
|
|
func-expr.dat \
|
2012-12-03 07:27:31 +00:00
|
|
|
func-static.dat \
|
2012-11-26 12:42:37 +00:00
|
|
|
deadbool.dat \
|
|
|
|
infloop.dat \
|
|
|
|
modulo.dat \
|
2012-12-26 02:49:39 +00:00
|
|
|
paramret.dat \
|
2012-12-20 12:01:46 +00:00
|
|
|
return-ivar.dat \
|
2012-12-22 05:05:12 +00:00
|
|
|
sendv.dat \
|
2013-06-24 02:36:52 +00:00
|
|
|
state.dat \
|
2012-12-13 04:44:25 +00:00
|
|
|
structlive.dat \
|
2012-11-26 12:42:37 +00:00
|
|
|
structptr.dat \
|
2018-08-21 07:27:22 +00:00
|
|
|
swap.dat \
|
|
|
|
triangle.dat \
|
2012-12-10 12:09:53 +00:00
|
|
|
vecinit.dat \
|
2012-12-21 11:03:28 +00:00
|
|
|
while.dat \
|
|
|
|
voidfor.dat
|
2012-11-22 06:40:16 +00:00
|
|
|
|
2018-09-09 13:36:20 +00:00
|
|
|
fail_progs_dat=
|
2012-12-03 07:27:31 +00:00
|
|
|
|
2018-09-09 13:37:09 +00:00
|
|
|
test_defspace_src=\
|
|
|
|
tw-defspace.c tw-diagnostic.c tw-strpool.c
|
|
|
|
|
|
|
|
TESTS=$(test_bins) $(test_progs_dat:.dat=.run)
|
|
|
|
XFAIL_TESTS=$(fail_bins) $(fail_progs_dat:.dat=.run)
|
|
|
|
|
|
|
|
check_PROGRAMS=test-harness $(test_progs_dat) $(test_bins)
|
2012-11-22 06:40:16 +00:00
|
|
|
|
2018-09-09 13:37:09 +00:00
|
|
|
test_defspace_SOURCES= test-defspace.c $(test_defspace_src)
|
|
|
|
test_defspace_LDADD= $(QFCC_LIBS)
|
|
|
|
test_defspace_DEPENDENCIES= $(QFCC_DEPS)
|
2012-11-22 06:40:16 +00:00
|
|
|
|
|
|
|
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)
|
2013-11-24 04:26:12 +00:00
|
|
|
chewed-alias.dat$(EXEEXT): $(chewed_alias_obj) $(QFCC_DEP)
|
2012-11-26 12:42:37 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(chewed_alias_obj)
|
|
|
|
chewed-alias.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/chewed-alias.Qo
|
2012-11-26 12:42:37 +00:00
|
|
|
|
2012-11-30 11:47:36 +00:00
|
|
|
chewed_return_dat_SOURCES=chewed-return.r
|
|
|
|
chewed_return_obj=$(chewed_return_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
chewed-return.dat$(EXEEXT): $(chewed_return_obj) $(QFCC_DEP)
|
2012-11-30 11:47:36 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(chewed_return_obj)
|
|
|
|
chewed-return.run: Makefile build-run
|
|
|
|
TEST_HARNESS_OPTS=--float $(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/chewed-return.Qo
|
2012-11-30 11:47:36 +00:00
|
|
|
|
2013-09-27 09:21:15 +00:00
|
|
|
func_expr_dat_SOURCES=func-expr.r
|
|
|
|
func_expr_obj=$(func_expr_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
func-expr.dat$(EXEEXT): $(func_expr_obj) $(QFCC_DEP)
|
2013-09-27 09:21:15 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(func_expr_obj)
|
|
|
|
func-expr.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/func-expr.Qo
|
2013-09-27 09:21:15 +00:00
|
|
|
|
2012-12-03 07:27:31 +00:00
|
|
|
func_static_dat_SOURCES=func-static.r
|
|
|
|
func_static_obj=$(func_static_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
func-static.dat$(EXEEXT): $(func_static_obj) $(QFCC_DEP)
|
2012-12-03 07:27:31 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(func_static_obj)
|
|
|
|
func-static.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/func-static.Qo
|
2012-12-03 07:27:31 +00:00
|
|
|
|
2012-11-26 12:05:24 +00:00
|
|
|
deadbool_dat_SOURCES=deadbool.r
|
|
|
|
deadbool_obj=$(deadbool_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
deadbool.dat$(EXEEXT): $(deadbool_obj) $(QFCC_DEP)
|
2012-11-26 12:05:24 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(deadbool_obj)
|
|
|
|
deadbool.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/deadbool.Qo
|
2012-11-26 12:05:24 +00:00
|
|
|
|
2012-11-24 05:53:45 +00:00
|
|
|
infloop_dat_SOURCES=infloop.r
|
|
|
|
infloop_obj=$(infloop_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
infloop.dat$(EXEEXT): $(infloop_obj) $(QFCC_DEP)
|
2012-11-24 05:53:45 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(infloop_obj)
|
|
|
|
infloop.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/infloop.Qo
|
2012-11-24 05:53:45 +00:00
|
|
|
|
2012-11-22 11:49:12 +00:00
|
|
|
modulo_dat_SOURCES=modulo.r
|
|
|
|
modulo_obj=$(modulo_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
modulo.dat$(EXEEXT): $(modulo_obj) $(QFCC_DEP)
|
2012-11-22 11:49:12 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(modulo_obj)
|
|
|
|
modulo.run: Makefile build-run
|
|
|
|
TEST_HARNESS_OPTS=--float $(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/modulo.Qo
|
2012-11-22 11:49:12 +00:00
|
|
|
|
2012-12-26 02:49:39 +00:00
|
|
|
paramret_dat_SOURCES=paramret.r
|
|
|
|
paramret_obj=$(paramret_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
paramret.dat$(EXEEXT): $(paramret_obj) $(QFCC_DEP)
|
2012-12-26 02:49:39 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(paramret_obj)
|
|
|
|
paramret.run: Makefile build-run
|
|
|
|
TEST_HARNESS_OPTS=--float $(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/paramret.Qo
|
2012-12-26 02:49:39 +00:00
|
|
|
|
2012-12-20 12:01:46 +00:00
|
|
|
return_ivar_dat_SOURCES=return-ivar.r
|
|
|
|
return_ivar_obj=$(return_ivar_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
return-ivar.dat$(EXEEXT): $(return_ivar_obj) $(QFCC_DEP)
|
2012-12-20 12:01:46 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(return_ivar_obj)
|
|
|
|
return-ivar.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/return-ivar.Qo
|
2012-12-20 12:01:46 +00:00
|
|
|
|
2012-12-22 05:05:12 +00:00
|
|
|
sendv_dat_SOURCES=sendv.r
|
|
|
|
sendv_obj=$(sendv_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
sendv.dat$(EXEEXT): $(sendv_obj) $(QFCC_DEP)
|
2012-12-22 05:05:12 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(sendv_obj)
|
|
|
|
sendv.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/sendv.Qo
|
2012-12-22 05:05:12 +00:00
|
|
|
|
2013-06-24 02:36:52 +00:00
|
|
|
state_dat_SOURCES=state.r
|
|
|
|
state_obj=$(state_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
state.dat$(EXEEXT): $(state_obj) $(QFCC_DEP)
|
2013-06-24 02:36:52 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(state_obj)
|
|
|
|
state.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/state.Qo
|
2013-06-24 02:36:52 +00:00
|
|
|
|
2012-12-13 04:44:25 +00:00
|
|
|
structlive_dat_SOURCES=structlive.r
|
|
|
|
structlive_obj=$(structlive_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
structlive.dat$(EXEEXT): $(structlive_obj) $(QFCC_DEP)
|
2012-12-13 04:44:25 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(structlive_obj)
|
|
|
|
structlive.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/structlive.Qo
|
2012-12-13 04:44:25 +00:00
|
|
|
|
2012-11-22 06:47:28 +00:00
|
|
|
structptr_dat_SOURCES=structptr.r
|
|
|
|
structptr_obj=$(structptr_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
structptr.dat$(EXEEXT): $(structptr_obj) $(QFCC_DEP)
|
2012-11-22 06:40:16 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(structptr_obj)
|
|
|
|
structptr.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/structptr.Qo
|
2012-11-22 06:40:16 +00:00
|
|
|
|
2018-08-21 07:27:22 +00:00
|
|
|
swap_dat_SOURCES=swap.r
|
|
|
|
swap_obj=$(swap_dat_SOURCES:.r=.qfo)
|
|
|
|
swap.dat$(EXEEXT): $(swap_obj) $(QFCC_DEP)
|
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(swap_obj)
|
|
|
|
swap.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/swap.Qo
|
2018-08-21 07:27:22 +00:00
|
|
|
|
|
|
|
triangle_dat_SOURCES=triangle.r
|
|
|
|
triangle_obj=$(triangle_dat_SOURCES:.r=.qfo)
|
|
|
|
triangle.dat$(EXEEXT): $(triangle_obj) $(QFCC_DEP)
|
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(triangle_obj)
|
|
|
|
triangle.run: Makefile build-run
|
2018-08-23 11:50:06 +00:00
|
|
|
$(srcdir)/build-run $@ 100000 100000 1.00005 50002.4961
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/triangle.Qo
|
2018-08-21 07:27:22 +00:00
|
|
|
|
2012-12-10 12:09:53 +00:00
|
|
|
vecinit_dat_SOURCES=vecinit.r
|
|
|
|
vecinit_obj=$(vecinit_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
vecinit.dat$(EXEEXT): $(vecinit_obj) $(QFCC_DEP)
|
2012-12-10 12:09:53 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(vecinit_obj)
|
|
|
|
vecinit.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/vecinit.Qo
|
2012-12-10 12:09:53 +00:00
|
|
|
|
2012-11-22 06:47:28 +00:00
|
|
|
while_dat_SOURCES=while.r
|
|
|
|
while_obj=$(while_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
while.dat$(EXEEXT): $(while_obj) $(QFCC_DEP)
|
2012-11-22 06:40:16 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(while_obj)
|
|
|
|
while.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/while.Qo
|
2012-11-22 06:40:16 +00:00
|
|
|
|
2012-12-21 11:03:28 +00:00
|
|
|
voidfor_dat_SOURCES=voidfor.r
|
|
|
|
voidfor_obj=$(voidfor_dat_SOURCES:.r=.qfo)
|
2013-11-24 04:26:12 +00:00
|
|
|
voidfor.dat$(EXEEXT): $(voidfor_obj) $(QFCC_DEP)
|
2012-12-21 11:03:28 +00:00
|
|
|
$(QFCC) $(QCFLAGS) -o $@ $(voidfor_obj)
|
|
|
|
voidfor.run: Makefile build-run
|
|
|
|
$(srcdir)/build-run $@
|
2018-09-09 13:36:20 +00:00
|
|
|
include ./$(DEPDIR)/voidfor.Qo
|
2012-12-21 11:03:28 +00:00
|
|
|
|
2012-11-22 08:11:21 +00:00
|
|
|
|
2012-11-22 06:47:28 +00:00
|
|
|
EXTRA_DIST= test-bi.h build-run
|
2018-08-21 07:27:22 +00:00
|
|
|
CLEANFILES= *.dat *.sym *.qfo *.run *.frame
|