mirror of
https://github.com/rui314/chibicc
synced 2024-11-29 09:23:16 +03:00
17 lines
227 B
Makefile
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
|