Assignment-2/Makefile

14 lines
247 B
Makefile

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