1
# -----------------------------------------------------------------------------
4
# Uncomment one of the following BuildFlavour settings to get the desired
5
# overall build type, and then tweak the options in the relevant section
8
# Uncomment one of these to select a build profile below:
10
# Full build with max optimisation (slow build)
13
# Fastest build (libs unoptimised):
14
#BuildFlavour = quickest
16
# Fast build with optimised libraries:
19
# Profile the stage2 compiler:
22
# A development build, working on the stage 1 compiler:
23
#BuildFlavour = devel1
25
# A development build, working on the stage 2 compiler:
26
#BuildFlavour = devel2
30
# -------- 1. A Performance/Distribution build--------------------------------
32
ifeq "$(BuildFlavour)" "perf"
34
# perf matches the default settings, repeated here for comparison:
36
SRC_HC_OPTS = -O -H64m
37
GhcStage1HcOpts = -O -fasm
38
GhcStage2HcOpts = -O2 -fasm
39
GhcHcOpts = -Rghc-timing
40
GhcLibHcOpts = -O2 -XGenerics
43
ifeq "$(PlatformSupportsSharedLibs)" "YES"
49
# -------- A Fast build ------------------------------------------------------
51
ifeq "$(BuildFlavour)" "quickest"
53
SRC_HC_OPTS = -H64m -O0 -fasm
54
GhcStage1HcOpts = -O -fasm
55
GhcStage2HcOpts = -O0 -fasm
56
GhcLibHcOpts = -O0 -fasm
59
BUILD_DOCBOOK_HTML = NO
61
BUILD_DOCBOOK_PDF = NO
65
# -------- A Fast build with optimised libs ----------------------------------
67
ifeq "$(BuildFlavour)" "quick"
69
SRC_HC_OPTS = -H64m -O0 -fasm
70
GhcStage1HcOpts = -O -fasm
71
GhcStage2HcOpts = -O0 -fasm
72
GhcLibHcOpts = -O -fasm
75
BUILD_DOCBOOK_HTML = NO
77
BUILD_DOCBOOK_PDF = NO
81
# -------- Profile the stage2 compiler ---------------------------------------
83
ifeq "$(BuildFlavour)" "prof"
85
SRC_HC_OPTS = -H64m -O0 -fasm
86
GhcStage1HcOpts = -O -fasm
87
GhcStage2HcOpts = -O -fasm
88
GhcLibHcOpts = -O -fasm
95
BUILD_DOCBOOK_HTML = NO
97
BUILD_DOCBOOK_PDF = NO
102
# -------- A Development build (stage 1) -------------------------------------
104
ifeq "$(BuildFlavour)" "devel1"
106
SRC_HC_OPTS = -H64m -O -fasm
107
GhcLibHcOpts = -O -dcore-lint
108
GhcStage1HcOpts = -Rghc-timing -O0 -DDEBUG
109
GhcStage2HcOpts = -Rghc-timing -O -fasm
112
BUILD_DOCBOOK_HTML = NO
113
BUILD_DOCBOOK_PS = NO
114
BUILD_DOCBOOK_PDF = NO
118
# -------- A Development build (stage 2) -------------------------------------
120
ifeq "$(BuildFlavour)" "devel2"
122
SRC_HC_OPTS = -H64m -O -fasm
123
GhcLibHcOpts = -O -dcore-lint
124
GhcStage1HcOpts = -Rghc-timing -O -fasm
125
GhcStage2HcOpts = -Rghc-timing -O0 -DDEBUG
128
BUILD_DOCBOOK_HTML = NO
129
BUILD_DOCBOOK_PS = NO
130
BUILD_DOCBOOK_PDF = NO
134
# -----------------------------------------------------------------------------
135
# Other settings that might be useful
138
#GhcRtsCcOpts = -pg -g
140
# Optimised/profiled RTS
141
#GhcRtsCcOpts = -O2 -pg
143
#GhcRtsWithFrontPanel = YES
144
#SRC_HC_OPTS += `gtk-config --libs`