/[svn]/linuxsampler/trunk/src/network/Makefile.am
ViewVC logotype

Diff of /linuxsampler/trunk/src/network/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 170 by senkov, Sat Jul 3 20:08:07 2004 UTC revision 219 by schoenebeck, Tue Aug 17 20:35:04 2004 UTC
# Line 4  METASOURCES = AUTO Line 4  METASOURCES = AUTO
4  AM_CXXFLAGS = -ffast-math -march=$(target_cpu) -mcpu=$(target_cpu)  AM_CXXFLAGS = -ffast-math -march=$(target_cpu) -mcpu=$(target_cpu)
5    
6  noinst_LTLIBRARIES = liblinuxsamplernetwork.la  noinst_LTLIBRARIES = liblinuxsamplernetwork.la
7  liblinuxsamplernetwork_la_SOURCES = lscp.h lscpparser.cpp lscpparser.h lscpscanner.cpp lscpserver.cpp lscpserver.h lscpsymbols.h lscpresultset.cpp lscpresultset.h lscpevent.cpp lscpevent.h  liblinuxsamplernetwork_la_SOURCES = lscp.h lscpparser.cpp lscpparser.h lscpserver.cpp lscpserver.h lscpsymbols.h lscpresultset.cpp lscpresultset.h lscpevent.cpp lscpevent.h
8    
9  .PHONY: parser  .PHONY: parser
10    
11  # generate parser with lex and yacc  # generate parser with lex and yacc
12  parser:  parser:
13          @echo "Generating LSCP parser..."          @echo "Generating LSCP parser..."
14          @if which "lex" > /dev/null && which "yacc" > /dev/null; then \          @if which "yacc" > /dev/null; then \
15              yacc -d lscp.y && \              yacc -d lscp.y && \
             lex --fast --8bit lscp.l && \  
16              yacc lscp.y && \              yacc lscp.y && \
17              mv -f y.tab.h lscpsymbols.h && \              mv -f y.tab.h lscpsymbols.h && \
18              mv -f y.tab.c lscpparser.cpp && \              mv -f y.tab.c lscpparser.cpp; \
             mv -f lex.yy.c lscpscanner.cpp; \  
19          else \          else \
20              echo "You need lex (or flex) and yacc (or bison) to generate the parser."; \              echo "You need yacc (or bison) to generate the parser."; \
21          fi;          fi;

Legend:
Removed from v.170  
changed lines
  Added in v.219

  ViewVC Help
Powered by ViewVC