PROG = parser CC = gcc YACC = yacc CFLAGS = -Wall $(PROG): y.tab.c $(CC) $(CFLAGS) -o $@ $^ y.tab.c: primer.y $(YACC) $< .PHONY: clean clean: -rm *~ $(PROG) y.tab.c