20 lines
287 B
Makefile
20 lines
287 B
Makefile
.POSIX:
|
|
|
|
CC = tcc
|
|
CFLAGS = -Wall -Wunsupported -Wwrite-strings -b -g
|
|
OBJ = main.o token.o parse.o
|
|
|
|
all: woody
|
|
|
|
woody: $(OBJ)
|
|
$(CC) $(CFLAGS) -o woody $(OBJ)
|
|
|
|
main.o: main.c token.o
|
|
token.o: token.c token.h
|
|
parse.o: parse.c parse.h token.o
|
|
|
|
clean:
|
|
rm -f woody $(OBJ)
|
|
|
|
.PHONY: all clean
|