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.
4 # Careful here: including boilerplate.mk breaks things, because paths.mk and
5 # opts.mk overrides some of the variable settings in the Cabal Makefile, so
6 # we just include config.mk and custom-settings.mk.
11 include $(TOP)/mk/config.mk
12 include $(TOP)/mk/custom-settings.mk
17 # Now add flags from the GHC build system to the Cabal build:
18 GHC_OPTS += $(SRC_HC_OPTS)
19 GHC_OPTS += $(GhcLibHcOpts)