X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=Makefile;h=0e23a92a3b9b204ec4af272c6bbe20e1cc8f119d;hb=26d43e650f1519d6a2edbee7b71abd14a5a8a139;hp=473089ab9d4611ad1b65d94e8465ea5949695f16;hpb=a7724bffaa882fe9e62590d1f1017cd22d9ba536;p=xonotic%2Fgmqcc.git diff --git a/Makefile b/Makefile index 473089a..0e23a92 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,8 @@ CYGWIN = $(findstring CYGWIN, $(UNAME)) MINGW = $(findstring MINGW32, $(UNAME)) CC ?= clang -CFLAGS += -Wall -Wextra -I. -pedantic-errors -fno-strict-aliasing -fsigned-char +CFLAGS += -Wall -Wextra -I. -fno-strict-aliasing -fsigned-char +CFLAGS += -DGMQCC_GITINFO="`git describe`" #turn on tons of warnings if clang is present # but also turn off the STUPID ONES ifeq ($(CC), clang) @@ -22,7 +23,16 @@ ifeq ($(CC), clang) -Wno-missing-prototypes \ -Wno-float-equal \ -Wno-cast-align +else + #Tiny C Compiler doesn't know what -pedantic-errors is + # and instead of ignoring .. just errors. + ifneq ($(CC), tcc) + CFLAGS +=-pedantic-errors + else + CFLAGS += -Wno-pointer-sign -fno-common + endif endif + ifeq ($(track), no) CFLAGS += -DNOTRACK endif