config.mk.in 1.85 KB
Newer Older
1
2
# -*-makefile-*-
# @configure_input@
3

4
# -----------------------------------------------------------------------------
5
6
7
8
# GHC binary distribution configuration

# These settings are used by the top-level Makefile when building
# binary distributions.
sof's avatar
sof committed
9
10
11

# what to include in a binary distribution
GhcMainDir = ghc
12
GhcBinDistDirs = ghc libraries hslibs
13

sof's avatar
sof committed
14
ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
15
GhcBinDistShScripts = ghc-$(ProjectVersion) ghci-$(ProjectVersion) ghc-pkg-$(ProjectVersion) hsc2hs
sof's avatar
sof committed
16
else
17
GhcBinDistShScripts =
sof's avatar
sof committed
18
endif
19

20
GhcBinDistPrlScripts = 
21
GhcBinDistLibPrlScripts = ghc-asm ghc-split
22
GhcBinDistBins = hp2ps ghcprof runghc
23
GhcBinDistOptBins = runhaskell
24
GhcBinDistLinks = ghc ghci ghc-pkg
25
GhcBinDistLibSplicedFiles = package.conf
sof's avatar
sof committed
26

27
28
29
# -----------------------------------------------------------------------------
# GHC-specific configuration settings

30
31
32
# Set to YES if $(GHC) has the readline package installed
GhcHasReadline	= @GhcHasReadline@

33
34
# GTK+
GTK_CONFIG = @GTK_CONFIG@
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

# -----------------------------------------------------------------------------

# We can build using the stage1 compiler by setting UseStage1=YES.
# This is useful when building up a set of .hc files for
# bootstrapping, because we need the ghc/lib/compat library and the
# contents of ghc/utils compiled with the stage1 compiler.

ifeq "$(UseStage1)" "YES"
HC=$(GHC_STAGE1)
MKDEPENDHS=$(GHC_STAGE1)
endif

# Some useful GHC version predicates:

ifeq "$(UseStage1)" "YES"
ghc_ge_504 = YES
ghc_ge_601 = YES
ghc_ge_603 = YES
else
55
56
57
58
59
ifeq "$(BootingFromHc)" "YES"
ghc_ge_504 = YES
ghc_ge_601 = YES
ghc_ge_603 = YES
else
60
61
62
63
ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi)
ghc_ge_601 = $(shell if (test $(GhcCanonVersion) -ge 601); then echo YES; else echo NO; fi)
ghc_ge_603 = $(shell if (test $(GhcCanonVersion) -ge 603); then echo YES; else echo NO; fi)
endif
64
endif