Assignment-3/Makefile

17 lines
367 B
Makefile
Raw Normal View History

all: parse
parser.cpp parser.hpp: parser.y
bison -d -o parser.cpp parser.y
2019-05-20 13:28:33 -07:00
tree.o: tree.cpp
2019-05-27 21:51:39 -07:00
g++ -std=c++11 -g -c -o tree.o tree.cpp
2019-05-20 13:28:33 -07:00
scanner.cpp: scanner.l
flex -o scanner.cpp scanner.l
2019-05-20 13:28:33 -07:00
parse: main.cpp parser.cpp scanner.cpp tree.o
2019-05-27 21:51:39 -07:00
g++ -std=c++11 -g main.cpp parser.cpp scanner.cpp tree.o -o parse
clean:
2019-05-20 13:28:33 -07:00
rm -f parse scanner.cpp parser.cpp parser.hpp tree.o