X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=Makefile;h=bec603e5daf95db1d913fff4810e3883ec3980ae;hp=97f16c99dd61e3e8c22c608926a4175a341286a0;hb=edb38ce70e86acde9530af5861cfcf8f396b5e75;hpb=4d4851e17903a5e8b66a2eef027354594e391559 diff --git a/Makefile b/Makefile index 97f16c9..bec603e 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ include include.mk UNAME ?= $(shell uname) -CYGWIN = $(findstring CYGWIN, $(UNAME)) -MINGW = $(findstring MINGW32, $(UNAME)) +CYGWIN = $(findstring CYGWIN, $(UNAME)) +MINGW = $(findstring MINGW, $(UNAME)) -CFLAGS += -Wall -Wextra -Werror -Wstrict-aliasing +CFLAGS += -Wall -Wextra -Werror -Wstrict-aliasing -Wno-attributes #turn on tons of warnings if clang is present # but also turn off the STUPID ONES ifeq ($(CC), clang) @@ -17,6 +17,7 @@ ifeq ($(CC), clang) -Wno-float-equal \ -Wno-unknown-warning-option \ -Wno-cast-align \ + -Wno-assign-enum \ -pedantic-errors else ifneq ($(CC), g++) @@ -40,7 +41,8 @@ endif # do this last otherwise there is whitespace in the command output and # it makes my OCD act up -CFLAGS += $(OPTIONAL) +CFLAGS += $(OPTIONAL_CFLAGS) +LDFLAGS += $(OPTIONAL_LDFLAGS) #we have duplicate object files when dealing with creating a simple list #for dependinces. To combat this we use some clever recrusive-make to