summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-01-25 23:14:52 +0100
committertomsmeding <tom.smeding@gmail.com>2017-01-25 23:14:52 +0100
commitbc879a89174cd7f070e9d279ee89bbbc2e408055 (patch)
tree7738a00396d377ea06a4cc4afeafcf049f1e9f8f /Makefile
parent42e484fd8552d480becafcfecbaeac826466b88c (diff)
Compile simple expressions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 499a974..cb0067e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,11 @@
GHC = ghc
-GHCFLAGS = -Wall -Wno-type-defaults -O3
+GHCFLAGS = -Wall -Wno-type-defaults
+ifneq ($(DEBUG),)
+ GHCFLAGS += -prof -fprof-auto -fprof-cafs
+endif
+ifneq ($(OPT),)
+ GHCFLAGS += -O3
+endif
TARGET = main