mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
allow to add debug parameter
This commit is contained in:
8
makefile
8
makefile
@@ -4,9 +4,15 @@ NAME = sdl_template
|
||||
CC := clang
|
||||
STD := c17
|
||||
LANG = c
|
||||
CFLAGS := $(shell pkg-config --cflags sdl2) -O3 -g -Wall -Wall -Wextra -Wpedantic -Wno-pointer-arith
|
||||
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
|
||||
|
||||
# dirs
|
||||
DIR_BIN := bin
|
||||
DIR_OBJ := obj
|
||||
|
||||
Reference in New Issue
Block a user