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
11 # -------- Misc. settings -----------------------------------------------------
13 # Not necessary to set this, but useful if you have other projects checked-out
14 # in your source tree.
15 ProjectsToBuild = glafp-utils ghc libraries hslibs
17 # Which warnings we like to use
18 MyWarningOpts = -W -fno-warn-unused-matches -fwarn-unused-imports
20 # -------- 1. A Development build --------------------------------------------
22 ifeq "$(BuildFlavour)" "devel"
26 SRC_HC_OPTS = -H32m -O0 $(MyWarningOpts)
27 GhcHcOpts = -Rghc-timing -DDEBUG
28 GhcLibHcOpts = -O -dcore-lint $(MyWarningOpts) -keep-hc-files
32 GhcRtsHcOpts = -optc-DDEBUG
34 SRC_HC_OPTS += -lbfd -liberty
37 #GhcRtsCcOpts = -pg -g
39 # Optimised/profiled RTS
40 #GhcRtsCcOpts = -O2 -pg
42 #GhcRtsWithFrontPanel = YES
43 #SRC_HC_OPTS += `gtk-config --libs`
48 SRC_RUNTEST_OPTS += +RTS -H10m -RTS
53 # -------- 1. A Performance/Distribution build--------------------------------
55 ifeq "$(BuildFlavour)" "perf"
57 SRC_HC_OPTS = -H32m -O $(MyWarningOpts)
58 GhcHcOpts = -Rghc-timing
63 #GhcRtsCcOpts = -O2 -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=pentiumpro