Assignment-2/Makefile

14 lines
258 B
Makefile
Raw Normal View History

all: scan
2019-05-11 22:34:26 -07:00
scan: main.cpp scanner.cpp parser.cpp
2019-05-12 23:02:48 -07:00
g++ -std=c++11 main.cpp scanner.cpp parser.cpp -o scan
scanner.cpp: scanner.l
flex -o scanner.cpp scanner.l
2019-05-11 22:34:26 -07:00
parser.cpp parser.hpp: parser.y
bison -d -o parser.cpp parser.y
2019-05-11 21:19:15 -07:00
clean:
rm -f scan scanner.cpp