Makefile 615 Bytes
Newer Older
chak's avatar
chak committed
1
2
3
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
simonpj's avatar
simonpj committed
4
5
6
7

# Trac 2386 requires batch-compile not --make
# Very important: without -O 
T2386:
8
9
	'$(TEST_HC)' $(TEST_HC_OPTS) -v0 -c T2386_Lib.hs -fforce-recomp
	'$(TEST_HC)' $(TEST_HC_OPTS) -v0 -c T2386.hs -fforce-recomp
simonpj's avatar
simonpj committed
10

Simon Marlow's avatar
Simon Marlow committed
11
12
13
14

HC_OPTS = -XTemplateHaskell -package template-haskell

TH_spliceE5_prof::
Ian Lynagh's avatar
Ian Lynagh committed
15
	$(RM) TH_spliceE5_prof*.o TH_spliceE5_prof*.hi TH_spliceE5_prof*.p_o 
16
17
	'$(TEST_HC)' $(TEST_HC_OPTS) $(HC_OPTS) --make -v0 TH_spliceE5_prof.hs -c
	'$(TEST_HC)' $(TEST_HC_OPTS) $(HC_OPTS) --make -v0 TH_spliceE5_prof.hs -prof -auto-all -osuf p_o -o $@
Ian Lynagh's avatar
Ian Lynagh committed
18
	./$@
Simon Marlow's avatar
Simon Marlow committed
19