chibicc/Makefile
2020-10-08 16:23:53 +09:00

18 lines
245 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
./test-driver.sh
clean:
rm -f chibicc *.o *~ tmp*
.PHONY: test clean