]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - makefile
Add the Values module to Everything.
[spline3.git] / makefile
index 36f07cd14154904f9949690b46d5d4abf7155262..22a98a7d95d7ea1e7ff692994ca5bf6c505fa0ee 100644 (file)
--- a/makefile
+++ b/makefile
@@ -4,28 +4,39 @@ GHC_WARNINGS += -fwarn-missing-signatures
 GHC_WARNINGS += -fwarn-name-shadowing
 GHC_WARNINGS += -fwarn-orphans
 GHC_WARNINGS += -fwarn-type-defaults
+GHC_WARNINGS += -fwarn-tabs
+GHC_WARNINGS += -fwarn-incomplete-record-updates
+GHC_WARNINGS += -fwarn-monomorphism-restriction
+GHC_WARNINGS += -fwarn-unused-do-bind
 
 BIN := spline3
+TMPDIR := /tmp
+GHC_OPTS := $(GHC_WARNINGS)  \
+            -odir $(TMPDIR)  \
+            -hidir $(TMPDIR) \
+            --make           \
+            -rtsopts         \
+            -threaded        \
+            -o bin/${BIN}
+
 
 .PHONY : test publish_doc doc src_html hlint
 
 $(BIN): src/*.hs
-       ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs
+       ghc -O2 $(GHC_OPTS) src/*.hs
 
 all: $(BIN) test_src
 
 test_src: src/Tests/*.hs
-       ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs src/Tests/*.hs
+       ghc -O2 $(GHC_OPTS) src/*.hs src/Tests/*.hs
 
 profile: src/*.hs
-       ghc -O2 $(GHC_WARNINGS) -prof -auto-all --make -o bin/$(BIN) src/*.hs
+       ghc -O2 $(GHC_OPTS) -prof -auto-all src/*.hs
 
 clean:
        rm -f bin/$(BIN)
-       rm -f src/*.hi
-       rm -f src/*.o
-       rm -f src/Tests/*.hi
-       rm -f src/Tests/*.o
+       rm -f $(TMPDIR)/*.hi
+       rm -f $(TMPDIR)/*.o
        rm -f *.prof
        rm -rf doc/html/*