2021-07-14 08:15:46 -07:00
|
|
|
|
|
|
|
CC=gcc
|
2023-10-22 13:53:51 -07:00
|
|
|
CFLAGS= -Wall -pedantic -Werror -std=c99 -g -O0
|
|
|
|
#CFLAGS+= -fsanitize=address
|
2021-07-14 08:15:46 -07:00
|
|
|
OBJ=main.o lexer.o token.o node.o
|
|
|
|
|
|
|
|
all: readme
|
|
|
|
|
|
|
|
run: readme
|
|
|
|
./readme
|
|
|
|
|
|
|
|
readme: ${OBJ}
|
2021-07-14 08:32:46 -07:00
|
|
|
${CC} ${CFLAGS} -o $@ ${OBJ}
|
2021-07-14 08:15:46 -07:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
${CC} ${CFLAGS} -c -o $@ $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm *.o readme
|