mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-27 23:34:52 +00:00
Estimated hours taken: 1 Made the testing of the C interface a little more robust, and added tests of the pragma(inline, ...) declaration. pragma_c_code.m: Made the tests a little more rigorous. pragma_c_code.exp: Changed the expected results to reflect changes to the .m file. pragma_inline.m: Simple test of inlining: pragma_inline.exp: Expected results for the inlining test.
48 lines
1020 B
Plaintext
48 lines
1020 B
Plaintext
#-----------------------------------------------------------------------------#
|
|
|
|
main_target: check
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
PROGS= qual_basic_test qual_basic_test2 qual_is_test qual_adv_test \
|
|
pragma_c_code pragma_inline
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
%.out: %
|
|
{ [ -f $*.inp ] && cat $*.inp; } | ./$< > $@ 2>&1;
|
|
|
|
%.res: %.out %.exp
|
|
-rm -f $@
|
|
diff $*.exp $*.out > $@
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
DEPENDS=$(PROGS:%=%.depend)
|
|
OUTS= $(PROGS:%=%.out)
|
|
RESS= $(PROGS:%=%.res)
|
|
MODS= $(PROGS:%=%.mod)
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
depend: $(DEPENDS)
|
|
|
|
check: $(OUTS) $(RESS)
|
|
|
|
mods: $(MODS)
|
|
|
|
all: $(PROGS)
|
|
|
|
clean: clean_out clean_res
|
|
|
|
clean_mc: clean_c clean_o clean_out clean_res
|
|
|
|
clean_out:
|
|
rm -f *.out
|
|
|
|
clean_res:
|
|
rm -f *.res
|
|
|
|
|
|
#-----------------------------------------------------------------------------#
|