Assignment-1/Makefile

14 lines
167 B
Makefile

prog: lex.yy.o
gcc lex.yy.o -o prog
lex.yy.o: lex.yy.c
gcc -c -o lex.yy.o lex.yy.c
lex.yy.c:
flex python.flx
.PHONY: clean
clean:
rm -f prog lex.yy.o lex.yy.c