# your lex file LEXFILE=hw1.lex # your executable file PROG=hw1 all: $(PROG) $(PROG): lex.yy.c gcc -Wall -o $(PROG) lex.yy.c -ll lex.yy.c: $(LEXFILE) lex $(LEXFILE) clean: rm $(PROG) lex.yy.c test: all test.sh ./$(PROG)