2 CFLAGS += -Wall -I. -pedantic-errors -std=c90
14 TEST_AST = test/ast-test.o
15 TEST_IR = test/ir-test.o
17 #default is compiler only
20 $(CC) -c $< -o $@ $(CFLAGS)
23 test_ast: $(TEST_AST) $(OBJ)
24 $(CC) -o $@ $^ $(CFLAGS)
25 test_ir: $(TEST_IR) $(OBJ)
26 $(CC) -o $@ $^ $(CFLAGS)
27 test: test_ast test_ir
31 $(CC) -o $@ $^ $(CFLAGS)
33 #all target is test and all
37 rm -f *.o gmqcc test_ast test_ir test/*.o