some updates
[ghc.git] / mk / build.mk.sample
1 # -----------------------------------------------------------------------------
2 # A Sample build.mk
3 #
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
6 # below.
7
8 # Uncomment one of these to select a build profile below:
9
10 #BuildFlavour = devel
11 #BuildFlavour = perf
12
13 # Which warnings we like to use
14 MyWarningOpts   = -W -fno-warn-unused-matches -fwarn-unused-imports
15
16 # -------- 1. A Development build --------------------------------------------
17
18 ifeq "$(BuildFlavour)" "devel"
19
20 GhcCompilerWays =
21
22 SRC_HC_OPTS     = -H32m -O -fasm $(MyWarningOpts)
23 GhcLibHcOpts    = -O -dcore-lint $(MyWarningOpts)
24 GhcLibWays      =
25
26 # If you're working on the stage1 compiler, build stage1 with debugging:
27 GhcStage1HcOpts = -Rghc-timing -O0 -DDEBUG
28
29 # alternatively, to work on the stage 2 compiler:
30 # GhcStage2HcOpts = -Rghc-timing -O0 -DDEBUG
31
32 # profiled RTS
33 #GhcRtsCcOpts =  -pg -g
34
35 # Optimised/profiled RTS
36 #GhcRtsCcOpts = -O2 -pg
37
38 #GhcRtsWithFrontPanel = YES
39 #SRC_HC_OPTS += `gtk-config --libs`
40
41 SplitObjs = NO
42
43 NoFibWays =
44 SRC_RUNTEST_OPTS += +RTS -H10m -RTS
45 STRIP=:
46
47 endif
48
49 # -------- 1. A Performance/Distribution build--------------------------------
50
51 ifeq "$(BuildFlavour)" "perf"
52
53 SRC_HC_OPTS   = -H32m -O $(MyWarningOpts)
54 GhcHcOpts     = -Rghc-timing
55 GhcLibHcOpts  =
56
57 GhcLibWays    = p
58
59 #GhcRtsCcOpts = -O2 -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=pentiumpro
60 endif