readme-thing/Makefile

21 lines
264 B
Makefile

CC=gcc
CFLAGS=-Wall -pedantic -Werror -std=c99 -g -O0
#-fsanitize=address
OBJ=main.o lexer.o token.o node.o
all: readme
run: readme
./readme
readme: ${OBJ}
${CC} ${CFLAGS} -o $@ ${OBJ}
.c.o:
${CC} ${CFLAGS} -c -o $@ $<
clean:
-rm *.o readme