[project @ 2005-01-27 13:00:14 by simonmar]
[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 = 
21 GhcBinDistLibPrlScripts = ghc-asm ghc-split
22 GhcBinDistBins = hp2ps ghcprof
23 GhcBinDistLinks = ghc ghci ghc-pkg
24 GhcBinDistLibSplicedFiles = package.conf
25
26 # -----------------------------------------------------------------------------
27 # GHC-specific configuration settings
28
29 # Set to YES if $(GHC) has the readline package installed
30 GhcHasReadline  = @GhcHasReadline@
31
32 # GTK+
33 GTK_CONFIG = @GTK_CONFIG@
34
35 # -----------------------------------------------------------------------------
36
37 # We can build using the stage1 compiler by setting UseStage1=YES.
38 # This is useful when building up a set of .hc files for
39 # bootstrapping, because we need the ghc/lib/compat library and the
40 # contents of ghc/utils compiled with the stage1 compiler.
41
42 ifeq "$(UseStage1)" "YES"
43 HC=$(GHC_STAGE1)
44 MKDEPENDHS=$(GHC_STAGE1)
45 endif
46
47 # Some useful GHC version predicates:
48
49 ifeq "$(UseStage1)" "YES"
50 ghc_ge_504 = YES
51 ghc_ge_601 = YES
52 ghc_ge_603 = YES
53 else
54 ifeq "$(BootingFromHc)" "YES"
55 ghc_ge_504 = YES
56 ghc_ge_601 = YES
57 ghc_ge_603 = YES
58 else
59 ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi)
60 ghc_ge_601 = $(shell if (test $(GhcCanonVersion) -ge 601); then echo YES; else echo NO; fi)
61 ghc_ge_603 = $(shell if (test $(GhcCanonVersion) -ge 603); then echo YES; else echo NO; fi)
62 endif
63 endif