[project @ 2005-04-19 12:29:56 by simonmar]
[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 # -------- Misc. settings -----------------------------------------------------
14
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
18
19 # Which warnings we like to use
20 MyWarningOpts   = -W -fno-warn-unused-matches -fwarn-unused-imports
21
22 # -------- 1. A Development build --------------------------------------------
23
24 ifeq "$(BuildFlavour)" "devel"
25
26 GhcCompilerWays =
27
28 SRC_HC_OPTS   = -H32m -O0 $(MyWarningOpts)
29 GhcHcOpts     = -Rghc-timing -DDEBUG
30 GhcLibHcOpts  = -O -dcore-lint $(MyWarningOpts) -keep-hc-files 
31 GhcLibWays    =
32
33 # profiled RTS
34 #GhcRtsCcOpts =  -pg -g
35
36 # Optimised/profiled RTS
37 #GhcRtsCcOpts = -O2 -pg
38
39 #GhcRtsWithFrontPanel = YES
40 #SRC_HC_OPTS += `gtk-config --libs`
41
42 SplitObjs = NO
43
44 NoFibWays =
45 SRC_RUNTEST_OPTS += +RTS -H10m -RTS
46 STRIP=:
47
48 endif
49
50 # -------- 1. A Performance/Distribution build--------------------------------
51
52 ifeq "$(BuildFlavour)" "perf"
53
54 SRC_HC_OPTS   = -H32m -O $(MyWarningOpts)
55 GhcHcOpts     = -Rghc-timing
56 GhcLibHcOpts  =
57
58 GhcLibWays    = p
59
60 #GhcRtsCcOpts = -O2 -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=pentiumpro
61 endif