summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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