summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-09-08 18:23:58 +0200
committerTom Smeding <tom@tomsmeding.com>2024-09-08 18:26:03 +0200
commitac5cad753c7dbac31756a2fffd85625b1431eaa5 (patch)
tree5ec06af25616d719f3c8a1c9b89db95377254961
parent141766b1a46b87555c0cd4375f15ee117e14bb0b (diff)
Maakbestand: ontinsectmodus
-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 :=