sync makefile with template to add more advanced debugging options

This commit is contained in:
2025-01-26 11:50:32 +01:00
parent 1c90857a3d
commit cd9ee68c85
2 changed files with 12 additions and 1 deletions

View File

@@ -4,9 +4,15 @@ NAME = sdl_template
CC := clang
STD := c17
LANG = c
CFLAGS := $(shell pkg-config --cflags sdl2) -Wall -g -pedantic
CFLAGS := $(shell pkg-config --cflags sdl2) -Wall -Wall -Wextra -Wpedantic -Wno-pointer-arith
LDFLAGS := $(shell pkg-config --libs sdl2) -lm
ifeq ($(DEBUG),1)
CFLAGS += -Og -g
else
REL_FLAGS += -O3
endif
# file locations
DIR_BIN := bin
DIR_OBJ := obj