OPTIM param + don't rely on sdl to set -D_GNU_SOURCE=1

This commit is contained in:
Gwenhael Le Moine 2023-09-13 16:27:59 +02:00
parent 05faaf6f1a
commit 0375cada77
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -8,7 +8,9 @@ MAKEFLAGS +=-j$(NUM_CORES) -l$(NUM_CORES)
CC = gcc
CFLAGS = -g -O2 -I./src/ -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DPATCHLEVEL=$(PATCHLEVEL)
OPTIM ?= 2
CFLAGS = -g -O$(OPTIM) -I./src/ -D_GNU_SOURCE=1 -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DPATCHLEVEL=$(PATCHLEVEL)
LIBS = -lm
CFLAGS += $(shell pkg-config --cflags SDL_gfx sdl12_compat)