Remove ilxGen; part of trac #2243
[ghc-hetmet.git] / libraries / Makefile.local
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.
4
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.
8 TOP=../..
9 SAVE_GHC := $(GHC)
10 SAVE_AR  := $(AR)
11 SAVE_LD  := $(LD)
12 include $(TOP)/mk/config.mk
13 include $(TOP)/mk/custom-settings.mk
14 GHC := $(SAVE_GHC)
15 AR  := $(SAVE_AR)
16 LD  := $(SAVE_LD)
17
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))