]> de.git.xonotic.org Git - xonotic/gmqcc.git/blob - Makefile
Merge branch 'master' into blub/ast-and-ir-merging
[xonotic/gmqcc.git] / Makefile
1 CC     ?= clang
2 CFLAGS += -Wall
3 OBJ     = main.o      \
4           lex.o       \
5           error.o     \
6           parse.o     \
7           typedef.o   \
8           util.o      \
9           code.o      \
10           asm.c       \
11           ast.c       \
12           ir.c
13
14 %.o: %.c
15         $(CC) -c $< -o $@ $(CFLAGS)
16
17 gmqcc: $(OBJ)
18         $(CC) -o $@ $^ $(CFLAGS)
19         
20 clean:
21         rm -f *.o gmqcc