gmqcc/Makefile

22 lines
395 B
Makefile
Raw Normal View History

2012-04-25 14:20:38 +00:00
CC ?= clang
2012-04-28 22:56:09 +00:00
CFLAGS += -Wall -pedantic-errors -std=c90
OBJ = main.o \
lex.o \
error.o \
parse.o \
typedef.o \
util.o \
code.o \
asm.o \
ast.o \
ir.o
2012-04-09 10:42:06 +00:00
%.o: %.c
2012-04-10 01:32:24 +00:00
$(CC) -c $< -o $@ $(CFLAGS)
2012-04-09 10:42:06 +00:00
gmqcc: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)
clean:
2012-04-09 23:47:20 +00:00
rm -f *.o gmqcc