#!/bin/tcsh

\mkdir .deps
#echo ">>>> mkdir <.deps> Done"

flex -oCalculator.l.cpp -PCalculator_ -i Calculator.l
echo ">>>> flex Done"

bison -p Calculator_ -ra -vd Calculator.y -o Calculator.y.cpp
echo ">>>> bison Done"

g++ -Wall -DHAVE_CONFIG_H -g -c -o Calculator.l.o Calculator.l.cpp
#g++ -Wall -DHAVE_CONFIG_H -I. -g -O2 -MT Calculator.l.o -MD -MP -MF ".deps/Calculator.l.Tpo" -c -o Calculator.l.o Calculator.l.cpp
echo ">>>> g++ Calculator.l.cpp Done"

g++ -Wall -DHAVE_CONFIG_H -g -c -o Calculator.o Calculator.cpp
#g++ -Wall -DHAVE_CONFIG_H -I. -g -O2 -MT Calculator.o -MD -MP -MF ".deps/Calculator.Tpo" -c -o Calculator.o `test -f './Calculator.cpp' || echo './'`./Calculator.cpp
echo ">>>> g++ Calculator.cpp Done"

g++ -Wall -DHAVE_CONFIG_H -g -c -o Calculator_driver.o Calculator_driver.cpp
#g++ -Wall -DHAVE_CONFIG_H -I. -g -O2 -MT Calculator_driver.o -MD -MP -MF ".deps/Calculator_driver.Tpo" -c -o Calculator_driver.o `test -f './Calculator_driver.cpp' || echo './'`./Calculator_driver.cpp
echo ">>>> g++ Calculator_driver.cpp Done"

g++ -Wall -DHAVE_CONFIG_H -g -c -o Calculator.y.o Calculator.y.cpp
#g++ -Wall -DHAVE_CONFIG_H -I. -g -O2 -MT Calculator.y.o -MD -MP -MF ".deps/Calculator.y.Tpo" -c -o Calculator.y.o `test -f './Calculator.y.cpp' || echo './'`./Calculator.y.cpp
echo ">>>> g++ Calculator.y.cpp Done"

g++ -Wall -DHAVE_CONFIG_H -g -o Calculator Calculator.l.o Calculator.o Calculator_driver.o Calculator.y.o -lstdc++
#g++ -Wall -g -O2 -o Calculator Calculator.l.o Calculator.o Calculator_driver.o Calculator.y.o
echo ">>>> Linking Done"

#\rm -rf .deps
#echo ">>>> rm -rf <.deps> Done"

#\rm -f *.o *.y.* *.l.*
