From bc879a89174cd7f070e9d279ee89bbbc2e408055 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 25 Jan 2017 23:14:52 +0100 Subject: Compile simple expressions --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2