X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=c230b4bdeea355d0a0e80e82af23cc78a411afa1;hb=c3d4eba6aa5ada928b351e9ec7c12c3077808ba7;hp=74b7b952da81538bb4560f10d79b3da11192d26d;hpb=1f20ae355d28b53fc2e1e31c4bd131e9ede00a87;p=spline3.git diff --git a/makefile b/makefile index 74b7b95..c230b4b 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