2 CFLAGS += -Wall -I. -pedantic-errors -std=c90
12 OBJ_A = test/ast-test.o
13 OBJ_I = test/ir-test.o
16 #default is compiler only
19 $(CC) -c $< -o $@ $(CFLAGS)
22 test_ast: $(OBJ_A) $(OBJ)
23 $(CC) -o $@ $^ $(CFLAGS)
24 test_ir: $(OBJ_I) $(OBJ)
25 $(CC) -o $@ $^ $(CFLAGS)
26 test: test_ast test_ir
29 gmqcc: $(OBJ_C) $(OBJ)
30 $(CC) -o $@ $^ $(CFLAGS)
32 #all target is test and all
36 rm -f *.o gmqcc test_ast test_ir test/*.o