summaryrefslogtreecommitdiff
path: root/Maakbestand
diff options
context:
space:
mode:
Diffstat (limited to 'Maakbestand')
-rw-r--r--Maakbestand7
1 files changed, 6 insertions, 1 deletions
diff --git a/Maakbestand b/Maakbestand
index c70332d..cf87dd4 100644
--- a/Maakbestand
+++ b/Maakbestand
@@ -3,7 +3,12 @@ VERSION := $(shell ./versie.sh)
PREFIX ?= /usr
CC := gcc
-CFLAGS := -Wall -Wextra -std=c2x -O2
+CFLAGS := -Wall -Wextra -std=c2x
+ifeq ($(DEBUG),)
+ CFLAGS += -O2
+else
+ CFLAGS += -Og -g
+endif
CFLAGS += -D_GNU_SOURCE -DDRUKKEDOOS_VERSIE=\"$(VERSION)\"
CFLAGS += -Isrc -I.
LDFLAGS :=