X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=ba3a04909a71747d4cc93464c97d63d6b7c05756;hb=004832f6ec167eedf346886942466a014dfe873b;hp=fea33566c7340c90010e19ca4e7ffc0dbaf68e13;hpb=f892b323351eb110dc97b8cf4e15d03dddc6fb78;p=xonotic%2Fgmqcc.git diff --git a/Makefile b/Makefile index fea3356..ba3a049 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,8 @@ ifeq ($(CC), clang) -Wno-conversion \ -Wno-missing-prototypes \ -Wno-float-equal \ - -Wno-unknown-warning-option + -Wno-unknown-warning-option \ + -Wstrict-prototypes else #Tiny C Compiler doesn't know what -pedantic-errors is # and instead of ignoring .. just errors. @@ -38,17 +39,22 @@ else else CFLAGS += -Wno-pointer-sign -fno-common endif + + #-Wstrict-prototypes is not valid in g++ + ifneq ($(CC), g++) + CFLAGS += -Wstrict-prototypes + endif endif ifeq ($(track), no) CFLAGS += -DNOTRACK endif -OBJ_D = util.o code.o ast.o ir.o conout.o ftepp.o opts.o fs.o utf8.o correct.o -OBJ_P = util.o fs.o conout.o opts.o pak.o -OBJ_T = test.o util.o conout.o fs.o -OBJ_C = main.o lexer.o parser.o fs.o -OBJ_X = exec-standalone.o util.o conout.o fs.o +OBJ_D = util.o code.o ast.o ir.o conout.o ftepp.o opts.o fs.o utf8.o correct.o stat.o +OBJ_P = util.o fs.o conout.o opts.o pak.o stat.o +OBJ_T = test.o util.o conout.o fs.o stat.o +OBJ_C = main.o lexer.o parser.o fs.o stat.o +OBJ_X = exec-standalone.o util.o conout.o fs.o stat.o #we have duplicate object files when dealing with creating a simple list #for dependinces. To combat this we use some clever recrusive-make to @@ -244,6 +250,7 @@ opts.o: gmqcc.h opts.def fs.o: gmqcc.h opts.def utf8.o: gmqcc.h opts.def correct.o: gmqcc.h opts.def +stat.o: gmqcc.h opts.def pak.o: gmqcc.h opts.def test.o: gmqcc.h opts.def main.o: gmqcc.h opts.def lexer.h