chibicc/Makefile

17 lines
227 B
Makefile
Raw Normal View History

CFLAGS=-std=c11 -g -fno-common
2020-10-07 14:11:16 +03:00
SRCS=$(wildcard *.c)
OBJS=$(SRCS:.c=.o)
2020-10-07 14:11:16 +03:00
chibicc: $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
$(OBJS): chibicc.h
test: chibicc
./test.sh
clean:
rm -f chibicc *.o *~ tmp*
.PHONY: test clean