/[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 57 by schoenebeck, Sun May 2 17:45:43 2004 UTC revision 397 by senkov, Mon Feb 21 04:28:50 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)
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 = lscp.h lscpparser.cpp lscpparser.h lscpserver.cpp lscpserver.h lscpsymbols.h lscpresultset.cpp lscpresultset.h lscpevent.cpp lscpevent.h lscpinstrumentloader.cpp
14    liblinuxsamplernetwork_la_LIBADD = $(sqlite3_lflags)
15    
16  .PHONY: parser  .PHONY: parser
17    
18  # generate parser with lex and yacc  # generate parser with lex and yacc
19  parser:  parser:
20          @echo "Generating LSCP parser..."          @echo "Generating LSCP parser..."
21          @if which "lex" > /dev/null && which "yacc" > /dev/null; then \          @if which "yacc" > /dev/null; then \
22              yacc -d lscp.y && \              yacc -d lscp.y && \
             lex -f lscp.l && \  
23              yacc lscp.y && \              yacc lscp.y && \
24              mv -f y.tab.h lscpsymbols.h && \              mv -f y.tab.h lscpsymbols.h && \
25              mv -f y.tab.c lscpparser.cpp && \              mv -f y.tab.c lscpparser.cpp; \
             mv -f lex.yy.c lscpscanner.cpp; \  
26          else \          else \
27              echo "You need lex (or flex) and yacc (or bison) to generate the parser."; \              echo "You need yacc (or bison) to generate the parser."; \
28          fi;          fi;

Legend:
Removed from v.57  
changed lines
  Added in v.397

  ViewVC Help
Powered by ViewVC