X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=7eb2938be29252502189ccc32f96128fdc55a465;hb=d32fe2f0a6c83ba3046a405eda40f83c794c000d;hp=8605a8920e23cb967fa940229ba8301e32623328;hpb=e47dd37f1757c8ada0c1e25f41af5fa83952c91f;p=hath.git diff --git a/makefile b/makefile index 8605a89..7eb2938 100644 --- a/makefile +++ b/makefile @@ -1,27 +1,17 @@ -GHC_WARNINGS := -Wall -GHC_WARNINGS += -fwarn-hi-shadowing -GHC_WARNINGS += -fwarn-missing-signatures -GHC_WARNINGS += -fwarn-name-shadowing -GHC_WARNINGS += -fwarn-orphans -GHC_WARNINGS += -fwarn-type-defaults - -BIN=hath - .PHONY : test -all: $(BIN) - -$(BIN): src/*.hs - ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs +hath: src/*.hs + runghc Setup.hs clean + runghc Setup.hs configure --user + runghc Setup.hs build profile: src/*.hs - ghc -O2 $(GHC_WARNINGS) -prof -auto-all --make -o bin/$(BIN) src/*.hs + runghc Setup.hs clean + runghc Setup.hs configure --user --enable-executable-profiling + runghc Setup.hs build clean: - rm -f bin/$(BIN) - rm -f src/*.hi - rm -f src/*.o - rm -f *.prof + runghc Setup.hs clean test: runghc -i"src" test/TestSuite.hs