summaryrefslogtreecommitdiffstats
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 62e95b5..9c072c7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,13 @@
PREFIX ?= /usr/local
BINDIR ?= /bin
-CFLAGS = -std=c99 -Wunused-variable -Wunused-function -Wconversion -O2
+CFLAGS = -std=c99 -Wunused-variable -Wunused-function -Wconversion
+
+ifeq ($(DEBUG), 1)
+CFLAGS += -Og -g
+else
+CFLAGS += -O2
+endif
all: pipeln