da6ab86f03594200800012bf433adf4869d6269b
[ghc-hetmet.git] / ghc / tests / programs / mk / target.mk
1 #################################################################################
2 #
3 #                       target.mk
4 #
5 #               ghc/tests/programs standard target rules
6 #
7 #################################################################################
8
9 # Link step
10 $(TEST_PROG) : $(OBJS)
11         $(HC) $(HC_FLAGS) $(OBJS) -o $(TEST_PROG)
12
13 # Run test
14 runtest : $(TEST_PROG)
15         $(RUNTEST) ./$< \
16           $(addprefix -i ,$(wildcard $(TEST_PROG).stdin)) \
17           $(addprefix -o1 ,$(wildcard $(TEST_PROG).stdout)) \
18           $(addprefix -o2 ,$(wildcard $(TEST_PROG).stderr)) \
19           $(RUNTEST_OPTS)
20
21 # Include standard boilerplate
22 # We do this at the end for cosmetic reasons: it means that the "normal-way"
23 # runtests will precede the "other-way" recursive invocations of make
24
25 include $(FPTOOLS_TOP)/mk/target.mk
26