X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=21106112f130c0d2cc2177706d8e5ac3b37a34ab;hb=1cd0b90dae4b2a0ea35447427e7962b6fe053308;hp=c230b4bdeea355d0a0e80e82af23cc78a411afa1;hpb=c3d4eba6aa5ada928b351e9ec7c12c3077808ba7;p=spline3.git diff --git a/makefile b/makefile index c230b4b..2110611 100644 --- a/makefile +++ b/makefile @@ -29,10 +29,10 @@ GHC_OPTS := $(OPTIMIZATIONS) \ .PHONY : test publish_doc doc src_html hlint $(BIN): src/*.hs - ghc -fllvm $(GHC_OPTS) src/*.hs + ghc -optc-O3 -optc-march=native $(GHC_OPTS) src/*.hs -gcc: src/*.hs - ghc -optc-O2 -optc-march=native $(GHC_OPTS) src/*.hs +llvm: src/*.hs + ghc -fllvm $(GHC_OPTS) src/*.hs all: $(BIN) test_src @@ -40,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)