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 # A development build, working on the stage 1 compiler:
20 #BuildFlavour = devel1
22 # A development build, working on the stage 2 compiler:
23 #BuildFlavour = devel2
27 # -------- 1. A Performance/Distribution build--------------------------------
29 ifeq "$(BuildFlavour)" "perf"
31 # perf matches the default settings, repeated here for comparison:
33 SRC_HC_OPTS = -O -H64m
34 GhcStage1HcOpts = -O -fasm
35 GhcStage2HcOpts = -O2 -fasm
36 GhcHcOpts = -Rghc-timing
37 GhcLibHcOpts = -O2 -XGenerics
42 # -------- A Fast build ------------------------------------------------------
44 ifeq "$(BuildFlavour)" "quickest"
46 SRC_HC_OPTS = -H64m -O0 -fasm
47 GhcStage1HcOpts = -O -fasm
48 GhcStage2HcOpts = -O0 -fasm
49 GhcLibHcOpts = -O0 -fasm
52 BUILD_DOCBOOK_HTML = NO
54 BUILD_DOCBOOK_PDF = NO
58 # -------- A Fast build with optimised libs ----------------------------------
60 ifeq "$(BuildFlavour)" "quick"
62 SRC_HC_OPTS = -H64m -O0 -fasm
63 GhcStage1HcOpts = -O -fasm
64 GhcStage2HcOpts = -O0 -fasm
65 GhcLibHcOpts = -O -fasm
68 BUILD_DOCBOOK_HTML = NO
70 BUILD_DOCBOOK_PDF = NO
74 # -------- A Development build (stage 1) -------------------------------------
76 ifeq "$(BuildFlavour)" "devel1"
78 SRC_HC_OPTS = -H64m -O -fasm
79 GhcLibHcOpts = -O -dcore-lint
80 GhcStage1HcOpts = -Rghc-timing -O0 -DDEBUG
81 GhcStage2HcOpts = -Rghc-timing -O -fasm
84 BUILD_DOCBOOK_HTML = NO
86 BUILD_DOCBOOK_PDF = NO
90 # -------- A Development build (stage 2) -------------------------------------
92 ifeq "$(BuildFlavour)" "devel2"
94 SRC_HC_OPTS = -H64m -O -fasm
95 GhcLibHcOpts = -O -dcore-lint
96 GhcStage1HcOpts = -Rghc-timing -O -fasm
97 GhcStage2HcOpts = -Rghc-timing -O0 -DDEBUG
100 BUILD_DOCBOOK_HTML = NO
101 BUILD_DOCBOOK_PS = NO
102 BUILD_DOCBOOK_PDF = NO
106 # -----------------------------------------------------------------------------
107 # Other settings that might be useful
110 #GhcRtsCcOpts = -pg -g
112 # Optimised/profiled RTS
113 #GhcRtsCcOpts = -O2 -pg
115 #GhcRtsWithFrontPanel = YES
116 #SRC_HC_OPTS += `gtk-config --libs`