]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - Makefile
lex_ctx of a return will be at the return keyword now
[xonotic/gmqcc.git] / Makefile
index aa5ef11f11b60b2f9955c596c60b522e78c4dde4..84334157040d4bf900c8018964ac04bba6d0a62b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,20 +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-compare             \
-               -Wno-implicit-fallthrough     \
-               -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)
@@ -49,16 +45,16 @@ qcvm: $(OBJ_X)
 gmqcc: $(OBJ_C) $(OBJ)
        $(CC) -o $@ $^ $(CFLAGS)
 
-test: $(OBJ_T)
+testsuite: $(OBJ_T)
        $(CC) -o $@ $^ $(CFLAGS)
-       
-runtests:
-       ./test
 
-all: gmqcc qcvm test
+all: gmqcc qcvm testsuite
+
+check: all
+       ./testsuite
 
 clean:
-       rm -f *.o gmqcc qcvm test *.dat
+       rm -f *.o gmqcc qcvm testsuite *.dat
 
 
 $(OBJ) $(OBJ_C) $(OBJ_X): gmqcc.h