readme-thing/Makefile

20 lines
225 B
Makefile

CC=gcc
CFLAGS=-Wall -pedantic -Werror -std=c99
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