X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=Makefile;h=29d91c42ec80cefe1eb9d0ff844c4d16ea44b32d;hb=41881823b728fa73edac9df45f2239c83f5fa9ca;hp=727f68cc07eb9c85eefcebe201bd809e834f7712;hpb=baf69f3725f8eef6a7a34ef4c94264f7daecb9f5;p=xonotic%2Fgmqcc.git diff --git a/Makefile b/Makefile index 727f68c..29d91c4 100644 --- a/Makefile +++ b/Makefile @@ -3,18 +3,16 @@ PREFIX := /usr/local BINDIR := $(PREFIX)/bin CC ?= clang -CFLAGS += -Wall -I. -fomit-frame-pointer -fno-stack-protector -fno-common +CFLAGS += -Wall -Wextra -I. -pedantic-errors #turn on tons of warnings if clang is present ifeq ($(CC), clang) - CFLAGS += \ + CFLAGS += \ -Weverything \ - -Wno-missing-prototypes \ - -Wno-unused-parameter \ - -Wno-sign-conversion \ - -Wno-conversion \ - -Wno-disabled-macro-expansion \ -Wno-padded \ - -Wno-format-nonliteral + -Wno-format-nonliteral \ + -Wno-disabled-macro-expansion \ + -Wno-conversion \ + -Wno-missing-prototypes endif ifeq ($(track), no) @@ -59,7 +57,7 @@ clean: rm -f *.o gmqcc qcvm testsuite *.dat -$(OBJ) $(OBJ_C) $(OBJ_X): gmqcc.h +$(OBJ) $(OBJ_C) $(OBJ_X): gmqcc.h opts.def main.o: lexer.h parser.o: ast.h lexer.h ast.o: ast.h ir.h