woody/Makefile
matt d418404918 Fix segfault in tokenizevarkw
Also added debug flags to CFLAGS and added little testing thing in main.c.
2022-04-02 12:33:43 +08:00

19 lines
246 B
Makefile

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