18 lines
365 B
Makefile
18 lines
365 B
Makefile
default: compile cleanautogen
|
|
|
|
compile:
|
|
bison Monicelli.ypp
|
|
flex Monicelli.lpp
|
|
g++ \
|
|
-Wall -Wno-deprecated-register -std=c++11 -DYYDEBUG=0 \
|
|
Parser.cpp lex.yy.cc Nodes.cpp main.cpp -o mcc
|
|
|
|
graph:
|
|
bison --graph Monicelli.y
|
|
|
|
cleanautogen:
|
|
rm -f Parser.?pp lex.* location.hh position.hh stack.hh
|
|
|
|
clean: cleanautogen
|
|
rm -f Monicelli.dot Monicelli.output
|