]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - Makefile
Merge pull request #75 from matthiaskrgr/master
[xonotic/gmqcc.git] / Makefile
index 38e760b3ed3260c2ea3302fac06463ef5f13f087..d35726d89526aa37a5a1c7ded0973a6cc1efeb6c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ CYGWIN  = $(findstring CYGWIN,  $(UNAME))
 MINGW   = $(findstring MINGW32, $(UNAME))
 
 CC     ?= clang
-CFLAGS += -Wall -Wextra -I. -pedantic-errors
+CFLAGS += -Wall -Wextra -I. -pedantic-errors -fno-strict-aliasing
 #turn on tons of warnings if clang is present
 # but also turn off the STUPID ONES
 ifeq ($(CC), clang)
@@ -19,16 +19,18 @@ ifeq ($(CC), clang)
                -Wno-format-nonliteral        \
                -Wno-disabled-macro-expansion \
                -Wno-conversion               \
-               -Wno-missing-prototypes
+               -Wno-missing-prototypes       \
+               -Wno-float-equal              \
+               -Wno-cast-align
 endif
 ifeq ($(track), no)
     CFLAGS += -DNOTRACK
 endif
 
-OBJ_D = util.o code.o ast.o ir.o conout.o ftepp.o opts.o
-OBJ_T = test.o util.o conout.o
-OBJ_C = main.o lexer.o parser.o
-OBJ_X = exec-standalone.o util.o conout.o
+OBJ_D = util.o code.o ast.o ir.o conout.o ftepp.o opts.o file.o utf8.o
+OBJ_T = test.o util.o conout.o file.o
+OBJ_C = main.o lexer.o parser.o file.o
+OBJ_X = exec-standalone.o util.o conout.o file.o
 
 ifneq ("$(CYGWIN)", "")
        #nullify the common variables that
@@ -84,9 +86,10 @@ clean:
        rm -f *.o $(GMQCC) $(QCVM) $(TESTSUITE) *.dat
 
 # deps
-$(OBJ) $(OBJ_C) $(OBJ_X): gmqcc.h opts.def
+$(OBJ_D) $(OBJ_C) $(OBJ_X): gmqcc.h opts.def
 main.o:   lexer.h
 parser.o: ast.h lexer.h
+lexer.o:  lexer.h
 ast.o:    ast.h ir.h
 ir.o:     ir.h