X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=Makefile;h=eaa10a0f114ec07aca89531469ef47b55873d72d;hb=ae639c8ba52d4753d5d1d1be23b77f1e9c10c110;hp=4ff71b44687ba2f7236078e0b68594073a4ac9e3;hpb=2929eb39a844063975ccb1df8497f4730ada9c6f;p=xonotic%2Fgmqcc.git diff --git a/Makefile b/Makefile index 4ff71b4..eaa10a0 100644 --- a/Makefile +++ b/Makefile @@ -3,17 +3,16 @@ CFLAGS += -Wall -I. -pedantic-errors -std=c90 #turn on tons of warnings if clang is present ifeq ($(CC), clang) - CFLAGS += \ - -Weverything \ - -Wno-missing-prototypes \ - -Wno-unused-parameter \ - -Wno-sign-compare \ - -Wno-implicit-fallthrough \ - -Wno-sign-conversion \ - -Wno-conversion \ + 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-undef \ + -Wno-padded \ -Wno-format-nonliteral endif @@ -29,6 +28,7 @@ OBJ = lex.o \ OBJ_A = test/ast-test.o OBJ_I = test/ir-test.o OBJ_C = main.o +OBJ_X = exec.o util.o #default is compiler only default: gmqcc @@ -40,6 +40,9 @@ test_ast: $(OBJ_A) $(OBJ) $(CC) -o $@ $^ $(CFLAGS) test_ir: $(OBJ_I) $(OBJ) $(CC) -o $@ $^ $(CFLAGS) +qcvm: $(OBJ_X) + $(CC) -o $@ $^ $(CFLAGS) +exec.o: qcvm_execprogram.h test: test_ast test_ir # compiler target