# 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
	/home/course/comp04/hw1/test.sh ./$(PROG)
