CC=gcc CFLAGS= -g all : arith arith : arith.tab.o arith.yy.o $(CC) -g $^ -o $@ %.o : %.c $(CC) $(CFLAGS) -c $^ -o $@ arith.tab.c arith.tab.h : arith.y bison -t -d arith.y arith.yy.c : arith.l flex -o $@ $^ clean : rm -f arith.{yy,tab}.[ch] rm -f *.o rm -f arith