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