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 #GhcRtsCcOpts = -pg -g
34 # Optimised/profiled RTS
35 #GhcRtsCcOpts = -O2 -pg
37 #GhcRtsWithFrontPanel = YES
38 #SRC_HC_OPTS += `gtk-config --libs`
43 SRC_RUNTEST_OPTS += +RTS -H10m -RTS
48 # -------- 1. A Performance/Distribution build--------------------------------
50 ifeq "$(BuildFlavour)" "perf"
52 SRC_HC_OPTS = -H32m -O $(MyWarningOpts)
53 GhcHcOpts = -Rghc-timing
58 #GhcRtsCcOpts = -O2 -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=pentiumpro