readme-thing/Makefile

24 lines
303 B
Makefile

.PHONY: run test run clean
CC=gcc
CFLAGS=-Wall -Wpedantic -Werror -std=c99
OBJ=main.o lexer.o token.o node.o
all: readme
run: readme
./readme
readme: ${OBJ}
${CC} ${CFLAGS} -o $@ $^
#token.o: token.h token.c
# ${CC} ${CFLAGS} -o $@ $<
.c.o:
${CC} ${CFLAGS} -c -o $@ $<
clean:
-rm *.o readme