1 |
INCLUDES = $(all_includes) |
2 |
METASOURCES = AUTO |
3 |
|
4 |
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 |
13 |
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 |
17 |
|
18 |
# generate parser with lex and yacc |
19 |
parser: |
20 |
@echo "Generating LSCP parser..." |
21 |
@if which "yacc" > /dev/null; then \ |
22 |
yacc -d lscp.y && \ |
23 |
yacc lscp.y && \ |
24 |
mv -f y.tab.h lscpsymbols.h && \ |
25 |
mv -f y.tab.c lscpparser.cpp; \ |
26 |
else \ |
27 |
echo "You need yacc (or bison) to generate the parser."; \ |
28 |
fi; |