]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - Makefile
Add whitespace to ternary-fte template so it matches (expected behaviour)
[xonotic/gmqcc.git] / Makefile
index 727f68cc07eb9c85eefcebe201bd809e834f7712..29d91c42ec80cefe1eb9d0ff844c4d16ea44b32d 100644 (file)
--- 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