X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=75d4921ea0c2067ed9260b06d50ff7de7c69c417;hb=9b2e26a18954d213dd2846834dd3c3cef2f5ae22;hp=a7b2ac1f488ad2388e571deba22fcfd6546663f6;hpb=e328446044e71ef500ef1383cd1418490d6b621c;p=xonotic%2Fgmqcc.git diff --git a/Makefile b/Makefile index a7b2ac1..75d4921 100644 --- a/Makefile +++ b/Makefile @@ -28,13 +28,16 @@ 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 +OBJ_X = exec-standalone.o util.o #default is compiler only default: gmqcc %.o: %.c $(CC) -c $< -o $@ $(CFLAGS) +exec-standalone.o: exec.c + $(CC) -c $< -o $@ $(CFLAGS) -DQCVM_EXECUTOR=1 + # test targets test_ast: $(OBJ_A) $(OBJ) $(CC) -o $@ $^ $(CFLAGS) @@ -42,6 +45,8 @@ test_ir: $(OBJ_I) $(OBJ) $(CC) -o $@ $^ $(CFLAGS) qcvm: $(OBJ_X) $(CC) -o $@ $^ $(CFLAGS) +exec.o: execloop.h +exec-standalone.o: execloop.h test: test_ast test_ir # compiler target @@ -52,6 +57,6 @@ gmqcc: $(OBJ_C) $(OBJ) all: test gmqcc clean: - rm -f *.o gmqcc test_ast test_ir test/*.o + rm -f *.o gmqcc qcvm test_ast test_ir test/*.o