Merge pull request #33 from thomie/master
[packages/random.git] / Benchmark / Makefile
1
2
3 OPTS= -O2 -Wall -XCPP
4
5 all: lib bench
6
7 lib:
8 (cd .. && ghc $(OPTS) --make System/Random.hs)
9
10 bench:
11 ghc $(OPTS) -i.. --make SimpleRNGBench.hs
12
13 # When benchmarking against other packages installed via cabal it is
14 # necessary to IGNORE the System/Random.hs files in the current directory.
15 # (Otherwise instances of RandomGen are confused.)
16 bench2:
17 ghc $(OPTS) -DTEST_COMPETITORS --make SimpleRNGBench.hs
18
19 clean:
20 rm -f *.o *.hi SimpleRNGBench
21 # cabal clean
22 # (cd Benchmark/ && rm -f *.o *.hi SimpleRNGBench)
23 # (cd System/ && rm -f *.o *.hi SimpleRNGBench)