Added Debug and Release mode to Makefile

This commit is contained in:
Stephan Rehfeld 2025-11-03 17:34:09 +01:00
parent c75ed48cc6
commit 179152cf5b

View File

@ -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)