mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-05-01 17:24:34 +00:00
Estimated hours taken: 0.25 tests/hard_coded: Add a test for possible string literal alignment problems.
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
#-----------------------------------------------------------------------------#
|
|
|
|
main_target: check
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
PROGS= qual_basic_test qual_basic_test2 qual_is_test qual_adv_test \
|
|
pragma_c_code pragma_inline higher_order_func_test \
|
|
free_free_mode func_test string_alignment
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
%.out: %
|
|
{ [ -f $*.inp ] && cat $*.inp; } | ./$< > $@ 2>&1;
|
|
|
|
%.res: %.out %.exp
|
|
-rm -f $@
|
|
diff $*.exp $*.out > $@
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
DEPS=$(PROGS:%=%.dep)
|
|
DEPENDS=$(PROGS:%=%.depend)
|
|
OUTS= $(PROGS:%=%.out)
|
|
RESS= $(PROGS:%=%.res)
|
|
MODS= $(PROGS:%=%.mod)
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
dep: $(DEPS)
|
|
|
|
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
|
|
|
|
|
|
#-----------------------------------------------------------------------------#
|