[project @ 2003-03-20 12:32:22 by simonmar]
[ghc-hetmet.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 # Debugging RTS
32 GhcRtsHcOpts = -optc-DDEBUG
33 GhcRtsCcOpts = -g
34 SRC_HC_OPTS  += -lbfd -liberty
35
36 # profiled RTS
37 #GhcRtsCcOpts =  -pg -g
38
39 # Optimised/profiled RTS
40 #GhcRtsCcOpts = -O2 -pg
41
42 #GhcRtsWithFrontPanel = YES
43 #SRC_HC_OPTS += `gtk-config --libs`
44
45 SplitObjs = NO
46
47 NoFibWays =
48 SRC_RUNTEST_OPTS += +RTS -H10m -RTS
49 STRIP=:
50
51 endif
52
53 # -------- 1. A Performance/Distribution build--------------------------------
54
55 ifeq "$(BuildFlavour)" "perf"
56
57 SRC_HC_OPTS   = -H32m -O $(MyWarningOpts)
58 GhcHcOpts     = -Rghc-timing
59 GhcLibHcOpts  =
60
61 GhcLibWays    = p
62
63 #GhcRtsCcOpts = -O2 -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=pentiumpro
64 endif