chibicc/Makefile
2020-10-07 20:11:16 +09:00

17 lines
227 B
Makefile

CFLAGS=-std=c11 -g -fno-common
SRCS=$(wildcard *.c)
OBJS=$(SRCS:.c=.o)
chibicc: $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
$(OBJS): chibicc.h
test: chibicc
./test.sh
clean:
rm -f chibicc *.o *~ tmp*
.PHONY: test clean