/[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 111 by schoenebeck, Sat Jun 5 20:55:50 2004 UTC revision 654 by schoenebeck, Wed Jun 15 20:25:25 2005 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    if HAVE_SQLITE3
7    sqlite3_lflags = $(SQLITE3_LIBS)
8    else
9    sqlite3_lflags =
10    endif
11    
12  noinst_LTLIBRARIES = liblinuxsamplernetwork.la  noinst_LTLIBRARIES = liblinuxsamplernetwork.la
13  liblinuxsamplernetwork_la_SOURCES = lscp.h lscpparser.cpp lscpparser.h lscpscanner.cpp lscpserver.cpp lscpserver.h lscpsymbols.h  liblinuxsamplernetwork_la_SOURCES = \
14            lscp.h \
15            lscpparser.cpp lscpparser.h \
16            lscpserver.cpp lscpserver.h \
17            lscpsymbols.h \
18            lscpresultset.cpp lscpresultset.h \
19            lscpevent.cpp lscpevent.h \
20            lscpinstrumentloader.h lscpinstrumentloader.cpp
21    liblinuxsamplernetwork_la_LIBADD = $(sqlite3_lflags)
22    
23    EXTRA_DIST = lscp.y
24    
25  .PHONY: parser  .PHONY: parser
26    
27  # generate parser with lex and yacc  # generate parser with lex and yacc
28  parser:  parser:
29          @echo "Generating LSCP parser..."          @echo "Generating LSCP parser..."
30          @if which "lex" > /dev/null && which "yacc" > /dev/null; then \          @if which "yacc" > /dev/null; then \
31              yacc -d lscp.y && \              yacc -d lscp.y && \
             lex --fast --8bit lscp.l && \  
32              yacc lscp.y && \              yacc lscp.y && \
33              mv -f y.tab.h lscpsymbols.h && \              mv -f y.tab.h lscpsymbols.h && \
34              mv -f y.tab.c lscpparser.cpp && \              mv -f y.tab.c lscpparser.cpp && \
35              mv -f lex.yy.c lscpscanner.cpp; \              echo -n "Updating Documentation/lscp.xml..." && \
36                (cd ../../scripts/ && ./update_grammar.pl) && \
37                echo "OK"; \
38          else \          else \
39              echo "You need lex (or flex) and yacc (or bison) to generate the parser."; \              echo "You need yacc (or bison) to generate the parser."; \
40          fi;          fi;

Legend:
Removed from v.111  
changed lines
  Added in v.654

  ViewVC Help
Powered by ViewVC