]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - makefile
Add the ScaleFactor module and type, allowing us to scale (x,y,z) independently.
[spline3.git] / makefile
index 7523e3ae20e44f16ec9657a7533f9dea605a41cd..22a98a7d95d7ea1e7ff692994ca5bf6c505fa0ee 100644 (file)
--- a/makefile
+++ b/makefile
@@ -10,7 +10,14 @@ GHC_WARNINGS += -fwarn-monomorphism-restriction
 GHC_WARNINGS += -fwarn-unused-do-bind
 
 BIN := spline3
-GHC_OPTS := $(GHC_WARNINGS) -odir /tmp -hidir /tmp --make -o bin/${BIN}
+TMPDIR := /tmp
+GHC_OPTS := $(GHC_WARNINGS)  \
+            -odir $(TMPDIR)  \
+            -hidir $(TMPDIR) \
+            --make           \
+            -rtsopts         \
+            -threaded        \
+            -o bin/${BIN}
 
 
 .PHONY : test publish_doc doc src_html hlint
@@ -28,10 +35,8 @@ profile: 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/*