]> gitweb.michael.orlitzky.com - hath.git/blobdiff - makefile
Allow apply_mask to take a Bit argument that will be used to replace the host bits.
[hath.git] / makefile
index 46c4826c8ef6e1e513aeb2330b7ee0642153c02d..8605a8920e23cb967fa940229ba8301e32623328 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,15 +1,27 @@
+GHC_WARNINGS := -Wall
+GHC_WARNINGS += -fwarn-hi-shadowing
+GHC_WARNINGS += -fwarn-missing-signatures
+GHC_WARNINGS += -fwarn-name-shadowing
+GHC_WARNINGS += -fwarn-orphans
+GHC_WARNINGS += -fwarn-type-defaults
+
 BIN=hath
 
+.PHONY : test
+
 all: $(BIN)
 
 $(BIN): src/*.hs
-       ghc -O2 -Wall --make -o bin/${BIN} src/*.hs
+       ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs
 
 profile: src/*.hs
-       ghc -O2 -Wall -prof -auto-all --make -o bin/$(BIN) src/*.hs
+       ghc -O2 $(GHC_WARNINGS) -prof -auto-all --make -o bin/$(BIN) src/*.hs
 
 clean:
        rm -f bin/$(BIN)
        rm -f src/*.hi
        rm -f src/*.o
        rm -f *.prof
+
+test:
+       runghc -i"src" test/TestSuite.hs