target.mk 753 Bytes
Newer Older
sof's avatar
sof committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#################################################################################
#
#			target.mk
#
#		ghc/tests standard target rules
#
#################################################################################


# Link step
$(TEST_PROG) : $(OBJS)
	$(HC) $(HC_FLAGS) $(OBJS) -o $(TEST_PROG)

# Run test
runtest : $(TEST_PROG)
	$(RUNTEST) ./$< \
	  $(addprefix -i ,$(wildcard $(TEST_PROG).stdin)) \
	  $(addprefix -o1 ,$(wildcard $(TEST_PROG).stdout)) \
	  $(addprefix -o2 ,$(wildcard $(TEST_PROG).stderr)) \
	  $(RUNTEST_OPTS)


# Include standard boilerplate
# We do this at the end for cosmetic reasons: it means that the "normal-way"
# runtests will precede the "other-way" recursive invocations of make

include $(FPTOOLS_TOP)/mk/target.mk