From 694ec05bcad01fd27606aace73b49cdade16945e Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 19 Aug 2017 11:05:43 +0200 Subject: Initial --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3ce6d7e --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +RUNFLAGS = +GHCFLAGS = -Wall -Widentities -odir obj -hidir obj +ifneq ($(PROFILE),) + RUNFLAGS += +RTS -xc + GHCFLAGS += -prof -fprof-auto +else + GHCFLAGS += -O3 +endif + +TARGET = main + +.PHONY: all clean run + +all: $(TARGET) + +clean: + rm -f $(TARGET) + rm -rf obj + +run: $(TARGET) + ./$(TARGET) $(RUNFLAGS) + + +$(TARGET): $(wildcard *.hs) + @mkdir -p obj + ghc $(GHCFLAGS) Main.hs -o $@ -- cgit v1.2.3-70-g09d2