[project @ 2002-04-02 10:34: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 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 FptoolsHcOpts = -H32m $(MyWarningOpts)
27 GhcHcOpts     = -Rghc-timing -DDEBUG
28 GhcLibHcOpts  = -dcore-lint -O -H32m  $(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 FptoolsHcOpts = -H32m -O $(MyWarningOpts)
58 GhcHcOpts     = -Rghc-timing
59 GhcLibHcOpts  = -H32m -O $(MyWarningOpts)
60
61 GhcLibWays    = p
62
63 #GhcRtsCcOpts = -O2 -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=pentiumpro
64 endif