Subversion Repositories wimsdev

Rev

Rev 12963 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#CXXFLAGS= -g
CXXFLAGS= -O1

chemeq : chemeq.o chemparser.o
        g++ $(CXXFLAGS) -o chemeq chemeq.o chemparser.o -lfl

chemeq.o : chemeq.cc chemeq.h
        g++ $(CXXFLAGS) -c chemeq.cc

chemparser.o : chemparser.cc chemeq.h
        g++ $(CXXFLAGS) -c chemparser.cc

chemparser.cc : chemlex.cc chemeq.y chemeq.h
        bison  --verbose -o chemparser.cc chemeq.y

chemlex.cc : chemeq.l
        flex  -ochemlex.cc chemeq.l

clean :
        rm -f *~ *.o chemlex.cc  chemparser.cc *.output chemeq