X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=82ddbdd7f223c4ed791640b5cbabf930559e7bd6;hb=4a7ea6313df073bfd41fd69552a338c7d7cd6f47;hp=74b7b952da81538bb4560f10d79b3da11192d26d;hpb=dd58892d526586bc436b88d18a54b954be032761;p=spline3.git diff --git a/makefile b/makefile index 74b7b95..82ddbdd 100644 --- 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 -fllvm $(GHC_OPTS) src/*.hs + +gcc: src/*.hs + ghc -optc-O2 -optc-march=native $(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 -fllvm $(GHC_OPTS) -prof -auto-all -caf-all src/*.hs + +profile-gcc: src/*.hs + ghc -optc-O2 -optc-march=native $(GHC_OPTS) -prof -auto-all -caf-all src/*.hs clean: rm -f bin/$(BIN)