fix install-docs for non-html docs
[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 # Uncomment one of these to select a build profile below:
9
10 # Full build with max optimisation (slow build)
11 #BuildFlavour = perf
12
13 # Fastest build (libs unoptimised):
14 #BuildFlavour = quickest
15
16 # Fast build with optimised libraries:
17 #BuildFlavour = quick
18
19 # A development build, working on the stage 1 compiler:
20 #BuildFlavour = devel1
21
22 # A development build, working on the stage 2 compiler:
23 #BuildFlavour = devel2
24
25 # Which warnings we like to use
26 MyWarningOpts   = -W -fno-warn-unused-matches -fwarn-unused-imports
27
28 # -------- 1. A Performance/Distribution build--------------------------------
29
30 ifeq "$(BuildFlavour)" "perf"
31
32 SRC_HC_OPTS   = -H32m -O2
33 GhcHcOpts     = -Rghc-timing
34 GhcLibHcOpts  =
35 GhcLibWays    = p
36
37 endif
38
39 # -------- A Fast build ------------------------------------------------------
40
41 ifeq "$(BuildFlavour)" "quickest"
42
43 SRC_HC_OPTS     = -H64m -Onot -fasm
44 GhcStage1HcOpts = -O -fasm
45 GhcStage2HcOpts = -Onot -fasm
46 GhcLibHcOpts    = -Onot -fasm
47 GhcLibWays      =
48 SplitObjs       = NO
49
50 endif
51
52 # -------- A Fast build with optimised libs ----------------------------------
53
54 ifeq "$(BuildFlavour)" "quick"
55
56 SRC_HC_OPTS     = -H64m -Onot -fasm
57 GhcStage1HcOpts = -O -fasm
58 GhcStage2HcOpts = -Onot -fasm
59 GhcLibHcOpts    = -O -fasm
60 GhcLibWays      =
61 SplitObjs       = NO
62
63 endif
64
65 # -------- A Development build (stage 1) -------------------------------------
66
67 ifeq "$(BuildFlavour)" "devel1"
68
69 SRC_HC_OPTS     = -H64m -O -fasm $(MyWarningOpts)
70 GhcLibHcOpts    = -O -dcore-lint $(MyWarningOpts)
71 GhcLibWays      =
72 GhcStage1HcOpts = -Rghc-timing -O0 -DDEBUG
73 GhcStage2HcOpts = -Rghc-timing -O -fasm
74 SplitObjs = NO
75
76 endif
77
78 # -------- A Development build (stage 2) -------------------------------------
79
80 ifeq "$(BuildFlavour)" "devel2"
81
82 SRC_HC_OPTS     = -H64m -O -fasm $(MyWarningOpts)
83 GhcLibHcOpts    = -O -dcore-lint $(MyWarningOpts)
84 GhcLibWays      =
85 GhcStage1HcOpts = -Rghc-timing -O -fasm
86 GhcStage2HcOpts = -Rghc-timing -O0 -DDEBUG
87 SplitObjs = NO
88
89 endif
90
91 # -----------------------------------------------------------------------------
92 # Other settings that might be useful
93
94 # profiled RTS
95 #GhcRtsCcOpts =  -pg -g
96
97 # Optimised/profiled RTS
98 #GhcRtsCcOpts = -O2 -pg
99
100 #GhcRtsWithFrontPanel = YES
101 #SRC_HC_OPTS += `gtk-config --libs`
102
103 # NoFib settings
104 NoFibWays =
105 STRIP=: