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