From 62e0c149cc077f8867138b8ceb24245278c8a94a Mon Sep 17 00:00:00 2001 From: Quinn Date: Sun, 13 Apr 2025 23:57:17 +0200 Subject: [PATCH] flip the DEBUG condition to check for non-`0`, rather than `1`. this way debug can be set to `true` or anything other than `0`, to enable it, which makes more semantic sense. --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 5d471c0..4ecd9a8 100644 --- a/makefile +++ b/makefile @@ -13,7 +13,7 @@ CSTD := c17 CFLAGS := -Wall -Wextra -Wpedantic -Wno-pointer-arith -static LDFLAGS := -ifeq ($(DEBUG),1) +ifneq ($(DEBUG),0) CFLAGS += -g -Og PROF := dbg else