3 space=$(nothing) $(nothing)
5 LIBRARIES_ABS = $(FPTOOLS_TOP_ABS)/libraries
6 CABAL = $(LIBRARIES_ABS)/cabal-bin $(GHC) $(LIBRARIES_ABS)/bootstrapping.conf
8 # We rely on all the CONFIGURE_ARGS being quoted with '...', and there
9 # being no 's inside the values.
10 FLAGGED_CONFIGURE_ARGS = $(subst $(space)',\
11 $(space)--configure-option=',\
12 $(space)$(CONFIGURE_ARGS))
14 COMMON_CONFIGURE_FLAGS = \
15 --libsubdir='$$pkgid' \
17 $(addprefix --hsc2hs-option=,$(SRC_HSC2HS_OPTS))
19 ifneq "$(HSCOLOUR)" ""
20 COMMON_CONFIGURE_FLAGS += --with-hscolour=$(HSCOLOUR)
24 COMMON_CONFIGURE_FLAGS += --with-alex=$(ALEX)
28 COMMON_CONFIGURE_FLAGS += --with-haddock=$(HADDOCK)
32 COMMON_CONFIGURE_FLAGS += --with-happy=$(HAPPY)
35 COMMON_CONFIGURE_FLAGS += $(FLAGGED_CONFIGURE_ARGS) \
36 --configure-option=--with-cc=$(CC)
38 ifeq "$(Windows)" "YES"
39 NONEXISTENT=c:/NONEXISTENT
41 NONEXISTENT=/NONEXISTENT
44 # We put non-existant paths in when configuring things that we plan to
45 # install, as we require that builds don't depend on these paths when
47 INSTALL_CONFIGURE_FLAGS = \
48 --prefix=$(NONEXISTENT) \
49 --bindir=$(NONEXISTENT) \
50 --libdir=$(NONEXISTENT) \
51 --libexecdir=$(NONEXISTENT) \
52 --datadir=$(NONEXISTENT) \
53 --docdir=$(NONEXISTENT) \
54 --haddockdir=$(NONEXISTENT) \
55 --htmldir=$(NONEXISTENT) \
56 --with-compiler=$(FPTOOLS_TOP_ABS)/compiler/stage1/ghc-inplace \
57 --with-hc-pkg=$(FPTOOLS_TOP_ABS)/utils/ghc-pkg/ghc-pkg-inplace \
58 --with-hsc2hs=$(HSC2HS_INPLACE) \
59 $(COMMON_CONFIGURE_FLAGS)
61 INPLACE_CONFIGURE_FLAGS = \
62 --prefix=`$(TOP)/utils/pwd/pwd forwardslash`/install-inplace \
63 --with-compiler=$(GHC) \
64 --with-hc-pkg=$(GHC_PKG) \
65 --package-db $(FPTOOLS_TOP_ABS)/libraries/bootstrapping.conf \
66 $(COMMON_CONFIGURE_FLAGS)
69 # --bindir='$$prefix/bin' \
70 # --libdir='$$prefix/lib' \
71 # --libexecdir='$$prefix/libexec' \
72 # --datadir='$$prefix/data' \
73 # --docdir='$$prefix/doc' \
74 # --haddockdir='$$prefix/haddock' \
75 # --htmldir='$$prefix/html' \
77 BUILD_FLAGS = $(addprefix --ghc-option=,$(SRC_HC_OPTS))