]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - makefile
Move the Tetrahedron tests into the Tetrehedron module.
[spline3.git] / makefile
index 74b7b952da81538bb4560f10d79b3da11192d26d..21106112f130c0d2cc2177706d8e5ac3b37a34ab 100644 (file)
--- a/makefile
+++ b/makefile
@@ -15,8 +15,6 @@ GHC_WARNINGS += -fwarn-unused-do-bind
 OPTIMIZATIONS := -O2
 OPTIMIZATIONS += -fexcess-precision
 OPTIMIZATIONS += -fno-spec-constr-count
-OPTIMIZATIONS += -optc-O2
-OPTIMIZATIONS += -optc-march=native
 
 GHC_OPTS := $(OPTIMIZATIONS) \
            $(GHC_WARNINGS)  \
@@ -31,7 +29,10 @@ GHC_OPTS := $(OPTIMIZATIONS) \
 .PHONY : test publish_doc doc src_html hlint
 
 $(BIN): src/*.hs
-       ghc $(GHC_OPTS) src/*.hs
+       ghc -optc-O3 -optc-march=native $(GHC_OPTS) src/*.hs
+
+llvm: src/*.hs
+       ghc -fllvm $(GHC_OPTS) src/*.hs
 
 all: $(BIN) test_src
 
@@ -39,7 +40,10 @@ test_src: src/Tests/*.hs
        ghc $(GHC_OPTS) src/*.hs src/Tests/*.hs
 
 profile: src/*.hs
-       ghc $(GHC_OPTS) -prof -auto-all src/*.hs
+       ghc  -optc-O3 -optc-march=native $(GHC_OPTS) -prof -auto-all -caf-all src/*.hs
+
+profile-llvm: src/*.hs
+       ghc -fllvm $(GHC_OPTS) -prof -auto-all -caf-all src/*.hs
 
 clean:
        rm -f bin/$(BIN)