Cabal file wibbles
[packages/dph.git] / dph-examples / Makefile
1 # Makes the dph-examples.cabal file from its template.
2
3 # Package dependencies for DPH examples.
4 DPH_DEPENDS = \
5 base == 4.6.*, \
6 vector == 0.9.*, \
7 random == 1.0.*, \
8 old-time == 1.0.*, \
9 containers == 0.5.*, \
10 dph-base == 0.6.*, \
11 dph-prim-par == 0.6.*, \
12 dph-lifted-vseg == 0.6.*, \
13 HUnit == 1.2.*
14
15
16 # Options for compiling DPH examples.
17 DPH_OPTIONS= \
18 -rtsopts \
19 -threaded \
20 -fllvm \
21 -Odph \
22 -package dph-lifted-vseg \
23 -fcpr-off \
24 -fno-liberate-case \
25 -fsimpl-tick-factor=1000
26
27
28 .PHONY : all
29 all : dph-examples.cabal
30 cabal configure --user
31 cabal build
32
33
34 # Make the cabal file from the tempalate by substituting in the above config.
35 dph-examples.cabal : dph-examples.template Makefile
36 @echo "* Making dph-examples.cabal"
37 @cpp -P -undef \
38 -DDPH_DEPENDS="$(DPH_DEPENDS)" \
39 -DDPH_OPTIONS="$(DPH_OPTIONS)" \
40 dph-examples.template dph-examples.cabal
41