e3060ec20ce7261b6808d62047a8a7420b8c5ce8
[ghc-hetmet.git] / ghc / mk / config.mk.in
1 # -*-makefile-*-
2 # @configure_input@
3
4 # -----------------------------------------------------------------------------
5 # GHC binary distribution configuration
6
7 # These settings are used by the top-level Makefile when building
8 # binary distributions.
9
10 # what to include in a binary distribution
11 GhcMainDir = ghc
12 GhcBinDistDirs = ghc libraries hslibs
13
14 ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
15 GhcBinDistShScripts = ghc-$(ProjectVersion) ghci-$(ProjectVersion) ghc-pkg-$(ProjectVersion) hsc2hs
16 else
17 GhcBinDistShScripts =
18 endif
19
20 GhcBinDistPrlScripts = ghcprof
21 GhcBinDistLibPrlScripts = ghc-asm ghc-split
22 GhcBinDistBins = hp2ps runghc
23 GhcBinDistOptBins = runhaskell
24 GhcBinDistLinks = ghc ghci ghc-pkg
25 GhcBinDistLibSplicedFiles = package.conf
26
27 # -----------------------------------------------------------------------------
28 # GHC-specific configuration settings
29
30 # Set to YES if $(GHC) has the readline package installed
31 GhcHasReadline  = @GhcHasReadline@
32
33 # GTK+
34 GTK_CONFIG = @GTK_CONFIG@
35
36 # -----------------------------------------------------------------------------
37
38 # We can build using the stage1 compiler by setting UseStage1=YES.
39 # This is useful when building up a set of .hc files for
40 # bootstrapping, because we need the ghc/lib/compat library and the
41 # contents of ghc/utils compiled with the stage1 compiler.
42
43 ifeq "$(UseStage1)" "YES"
44 HC=$(GHC_STAGE1)
45 MKDEPENDHS=$(GHC_STAGE1)
46 endif
47
48 # Some useful GHC version predicates:
49
50 ifeq "$(UseStage1)" "YES"
51 ghc_ge_504 = YES
52 ghc_ge_601 = YES
53 ghc_ge_602 = YES
54 ghc_ge_603 = YES
55 else
56 ifeq "$(BootingFromHc)" "YES"
57 ghc_ge_504 = YES
58 ghc_ge_601 = YES
59 ghc_ge_602 = YES
60 ghc_ge_603 = YES
61 else
62 ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi)
63 ghc_ge_601 = $(shell if (test $(GhcCanonVersion) -ge 601); then echo YES; else echo NO; fi)
64 ghc_ge_602 = $(shell if (test $(GhcCanonVersion) -ge 602); then echo YES; else echo NO; fi)
65 ghc_ge_603 = $(shell if (test $(GhcCanonVersion) -ge 603); then echo YES; else echo NO; fi)
66 endif
67 endif