1 2 3 4 5 6 7 8 9 10 11 12 13 14
CS=parser.c ast.c HS=ast.h parser.h CFLAGS=-Wall -Wpedantic -std=c99 badthing: $(CS) $(HS) $(CC) $(CFLAGS) -o badthing $(CS) parser.c: grammar.peg packcc -o parser grammar.peg clean: rm badthing parser.c .PHONY: clean