OPTIM param + don't rely on sdl to set -D_GNU_SOURCE=1
This commit is contained in:
parent
05faaf6f1a
commit
0375cada77
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue