Assignment-2/Makefile

14 lines
204 B
Makefile

all: scan
scan: main.cpp scanner.cpp
g++ main.cpp scanner.cpp -o scan
scanner.cpp: scanner.l
flex -o scanner.cpp scanner.l
parser.tab.cpp: parser.y
bison -d parser.y
clean:
rm -f scan scanner.cpp