/[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 1161 by iliev, Mon Apr 16 15:51:18 2007 UTC
# Line 1  Line 1 
1  INCLUDES = $(all_includes)  INCLUDES = $(all_includes)
2  METASOURCES = AUTO  METASOURCES = AUTO
3    
4  AM_CXXFLAGS = -ffast-math -march=$(target_cpu) -mcpu=$(target_cpu)  AM_CXXFLAGS = -Wreturn-type -ffast-math $(CXX_CPU_SWITCH)
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 = \
8            lscp.h \
9            lscpparser.cpp lscpparser.h \
10            lscpserver.cpp lscpserver.h \
11            lscpsymbols.h \
12            lscpresultset.cpp lscpresultset.h \
13            lscpevent.cpp lscpevent.h
14    
15    EXTRA_DIST = lscp.y
16    
17  .PHONY: parser  .PHONY: parser
18    
19  # generate parser with lex and yacc  # generate parser with lex and yacc
20  parser:  parser:
21          @echo "Generating LSCP parser..."          @echo "Generating LSCP parser..."
22          @if which "lex" > /dev/null && which "yacc" > /dev/null; then \          @if which "yacc" > /dev/null; then \
23              yacc -d lscp.y && \              yacc -d lscp.y && \
             lex --fast --8bit lscp.l && \  
24              yacc lscp.y && \              yacc lscp.y && \
25              mv -f y.tab.h lscpsymbols.h && \              mv -f y.tab.h lscpsymbols.h && \
26              mv -f y.tab.c lscpparser.cpp && \              mv -f y.tab.c lscpparser.cpp && \
27              mv -f lex.yy.c lscpscanner.cpp; \              echo -n "Updating Documentation/lscp.xml..." && \
28                (cd ../../scripts/ && ./update_grammar.pl) && \
29                echo "OK"; \
30          else \          else \
31              echo "You need lex (or flex) and yacc (or bison) to generate the parser."; \              echo "You need yacc (or bison) to generate the parser."; \
32          fi;          fi;

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

  ViewVC Help
Powered by ViewVC