gmqcc/Makefile

19 lines
280 B
Makefile
Raw Normal View History

2012-04-09 10:42:06 +00:00
CC = gcc
CFLAGS = -O3 -Wall
2012-04-10 01:32:24 +00:00
OBJ = main.o \
lex.o \
error.o \
parse.o \
2012-04-10 03:12:42 +00:00
typedef.o \
util.o \
code.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