From 179152cf5bc6eac369fa98276cfac7720f5783d7 Mon Sep 17 00:00:00 2001 From: Stephan Rehfeld Date: Mon, 3 Nov 2025 17:34:09 +0100 Subject: [PATCH] Added Debug and Release mode to Makefile --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 1ee9395..ed6d8f3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,13 @@ PROJECT = example CFLAGS += -Wall -Wextra -pedantic -Werror -std=c23 + +# For Debug Build +CFLAGS += -g -O0 + +# For Release Build +#CFLAGS += -O3 -DNDEBUG + SOURCES = $(wildcard *.c) OBJECTS = $(SOURCES:.c=.o) DEPENDS = $(SOURCES:.c=.d)