Add USER_CFLAGS to allow specifying additional defines; see #53

This commit is contained in:
Dominic Szablewski 2023-08-28 16:48:47 +02:00
parent 108cfac9dc
commit 78f452decf

View file

@ -5,9 +5,10 @@ UNAME_O := $(shell uname -o)
RENDERER ?= GL
USE_GLX ?= false
DEBUG ?= false
USER_CFLAGS ?=
L_FLAGS ?= -lm
C_FLAGS ?= -std=gnu99 -Wall -Wno-unused-variable
C_FLAGS ?= -std=gnu99 -Wall -Wno-unused-variable $(USER_CFLAGS)
ifeq ($(DEBUG), true)
C_FLAGS := $(C_FLAGS) -g