X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=Makefile;h=35b825a1f917a9d0a74898471f54c2a4d2db1d54;hp=1c5ac8f19f3f13b332090040cae73ea5e3b970f8;hb=69b55ccc03b56af1f6c05eb45866ab198307487f;hpb=2a3376cb5282cdb049519ecf52240991ff478f30 diff --git a/Makefile b/Makefile index 1c5ac8f..35b825a 100644 --- a/Makefile +++ b/Makefile @@ -11,10 +11,10 @@ MINGW = $(findstring MINGW32, $(UNAME)) CC ?= clang # linker flags and optional additional libraries if required -LDFLAGS := -LIBS := -lm +LDFLAGS += +LIBS += -lm -CFLAGS += -Wall -Wextra -Werror -I. -fno-strict-aliasing -fsigned-char $(OPTIONAL) +CFLAGS += -Wall -Wextra -Werror -fno-strict-aliasing $(OPTIONAL) ifneq ($(shell git describe --always 2>/dev/null),) CFLAGS += -DGMQCC_GITINFO="\"$(shell git describe --always)\"" endif @@ -34,7 +34,7 @@ else #Tiny C Compiler doesn't know what -pedantic-errors is # and instead of ignoring .. just errors. ifneq ($(CC), tcc) - CFLAGS +=-pedantic-errors -ffunction-sections -fdata-sections -Wl,-gc-sections + CFLAGS += -pedantic-errors else CFLAGS += -Wno-pointer-sign -fno-common endif