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