Prepare dph for a vectInfoVar type change
[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.7.*, \
6 vector == 0.9.*, \
7 random == 1.0.*, \
8 old-time == 1.1.*, \
9 containers == 0.5.*, \
10 dph-base == 0.8.*, \
11 dph-prim-par == 0.8.*, \
12 dph-lifted-vseg == 0.8.*, \
13 HUnit == 1.2.*
14
15
16 # Options for compiling DPH examples.
17 DPH_OPTIONS= \
18 -eventlog \
19 -rtsopts \
20 -threaded \
21 -fllvm \
22 -optlo-O3 \
23 -Odph \
24 -package dph-lifted-vseg \
25 -fcpr-off \
26 -fsimpl-tick-factor=1000
27
28
29 .PHONY : all
30 all : dph-examples.cabal
31 cabal configure --user
32 cabal build
33
34
35 # Make the cabal file from the tempalate by substituting in the above config.
36 dph-examples.cabal : dph-examples.template Makefile
37 @echo "* Making dph-examples.cabal"
38 @cpp -P -undef \
39 -DDPH_DEPENDS="$(DPH_DEPENDS)" \
40 -DDPH_OPTIONS="$(DPH_OPTIONS)" \
41 dph-examples.template dph-examples.cabal