Files
mercury/tests/hard_coded/Mmake
David Jeffery afebed3f93 Made the testing of the C interface a little more robust, and added tests of
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.
1995-11-20 09:27:28 +00:00

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
#-----------------------------------------------------------------------------#