]> gitweb.michael.orlitzky.com - hath.git/blob - makefile
Add some additional GHC warnings to the makefile.
[hath.git] / makefile
1 GHC_WARNINGS := -Wall
2 GHC_WARNINGS += -fwarn-hi-shadowing
3 GHC_WARNINGS += -fwarn-missing-signatures
4 GHC_WARNINGS += -fwarn-name-shadowing
5 GHC_WARNINGS += -fwarn-orphans
6 GHC_WARNINGS += -fwarn-type-defaults
7
8 BIN=hath
9
10 .PHONY : test
11
12 all: $(BIN)
13
14 $(BIN): src/*.hs
15 ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs
16
17 profile: src/*.hs
18 ghc -O2 $(GHC_WARNINGS) -prof -auto-all --make -o bin/$(BIN) src/*.hs
19
20 clean:
21 rm -f bin/$(BIN)
22 rm -f src/*.hi
23 rm -f src/*.o
24 rm -f *.prof
25
26 test:
27 runghc -i"src" test/TestSuite.hs