1 # Local GHC-build-tree customization for Cabal makefiles. We want to build
2 # libraries using flags that the user has put in build.mk/validate.mk and
3 # appropriate flags for Mac OS X deployment targets.
5 # Careful here: including boilerplate.mk breaks things, because paths.mk and
6 # opts.mk overrides some of the variable settings in the Cabal Makefile, so
7 # we just include config.mk and custom-settings.mk.
12 include $(TOP)/mk/config.mk
13 include $(TOP)/mk/custom-settings.mk
18 # Now add flags from the GHC build system to the Cabal build:
19 GHC_CC_OPTS += $(addprefix -optc, $(MACOSX_DEPLOYMENT_CC_OPTS))
20 GHC_OPTS += $(SRC_HC_OPTS)
21 GHC_OPTS += $(GhcLibHcOpts)
22 GHC_OPTS += $(addprefix -optc, $(MACOSX_DEPLOYMENT_CC_OPTS))
23 LIB_LD_OPTS += $(addprefix -optl, $(MACOSX_DEPLOYMENT_LD_OPTS))