readme-thing/Makefile

24 lines
303 B
Makefile
Raw Normal View History

2021-07-14 08:15:46 -07:00
.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