Makefile 697 Bytes
Newer Older
1
TOP=../../..
2 3 4 5 6 7 8 9
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

SETUP=./Setup -v0

# This tests that we can build a Cabal package that uses TH with both
# profiling and dynamic linking. (#3604)

10 11 12
# omitting -rtsopts from --ghc-options avoids a warning from GHC when
# building the shared library (-rtsopts has no effect with -shared)

13
cabal04:
Simon Marlow's avatar
Simon Marlow committed
14
	$(MAKE) clean
15 16
	'$(TEST_HC)' -v0 --make Setup
	$(SETUP) clean
17
	$(SETUP) configure --with-ghc='$(TEST_HC)' --ghc-options='$(filter-out -rtsopts,$(TEST_HC_OPTS))' $(VANILLA) $(PROF) $(DYN)
Ian Lynagh's avatar
Ian Lynagh committed
18 19
	$(SETUP) build 2> err
	! grep -v "Creating library file" err
Simon Marlow's avatar
Simon Marlow committed
20 21 22 23 24
ifneq "$(CLEANUP)" ""
	$(MAKE) clean
endif

clean :
Ian Lynagh's avatar
Ian Lynagh committed
25
	$(RM) -r *.o *.hi dist Setup$(exeext) err
Simon Marlow's avatar
Simon Marlow committed
26