Added Debug and Release mode to Makefile
This commit is contained in:
parent
c75ed48cc6
commit
179152cf5b
7
Makefile
7
Makefile
@ -1,6 +1,13 @@
|
|||||||
PROJECT = example
|
PROJECT = example
|
||||||
|
|
||||||
CFLAGS += -Wall -Wextra -pedantic -Werror -std=c23
|
CFLAGS += -Wall -Wextra -pedantic -Werror -std=c23
|
||||||
|
|
||||||
|
# For Debug Build
|
||||||
|
CFLAGS += -g -O0
|
||||||
|
|
||||||
|
# For Release Build
|
||||||
|
#CFLAGS += -O3 -DNDEBUG
|
||||||
|
|
||||||
SOURCES = $(wildcard *.c)
|
SOURCES = $(wildcard *.c)
|
||||||
OBJECTS = $(SOURCES:.c=.o)
|
OBJECTS = $(SOURCES:.c=.o)
|
||||||
DEPENDS = $(SOURCES:.c=.d)
|
DEPENDS = $(SOURCES:.c=.d)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user