1 |
schoenebeck |
35 |
INCLUDES = $(all_includes) |
2 |
|
|
METASOURCES = AUTO |
3 |
schoenebeck |
80 |
|
4 |
schoenebeck |
510 |
AM_CXXFLAGS = -Wreturn-type -ffast-math $(CXX_CPU_SWITCH) |
5 |
schoenebeck |
80 |
|
6 |
senkov |
397 |
if HAVE_SQLITE3 |
7 |
|
|
sqlite3_lflags = $(SQLITE3_LIBS) |
8 |
wylder |
815 |
sqlite3_cflags = $(SQLITE3_CFLAGS) |
9 |
senkov |
397 |
else |
10 |
|
|
sqlite3_lflags = |
11 |
wylder |
815 |
sqlite3_cflags = |
12 |
senkov |
397 |
endif |
13 |
|
|
|
14 |
schoenebeck |
57 |
noinst_LTLIBRARIES = liblinuxsamplernetwork.la |
15 |
schoenebeck |
654 |
liblinuxsamplernetwork_la_SOURCES = \ |
16 |
|
|
lscp.h \ |
17 |
|
|
lscpparser.cpp lscpparser.h \ |
18 |
|
|
lscpserver.cpp lscpserver.h \ |
19 |
|
|
lscpsymbols.h \ |
20 |
|
|
lscpresultset.cpp lscpresultset.h \ |
21 |
|
|
lscpevent.cpp lscpevent.h \ |
22 |
|
|
lscpinstrumentloader.h lscpinstrumentloader.cpp |
23 |
senkov |
397 |
liblinuxsamplernetwork_la_LIBADD = $(sqlite3_lflags) |
24 |
wylder |
815 |
liblinuxsamplernetwork_la_CFLAGS = $(sqlite3_cflags) |
25 |
|
|
liblinuxsamplernetwork_la_CXXFLAGS = $(sqlite3_cflags) |
26 |
schoenebeck |
35 |
|
27 |
schoenebeck |
654 |
EXTRA_DIST = lscp.y |
28 |
|
|
|
29 |
schoenebeck |
35 |
.PHONY: parser |
30 |
|
|
|
31 |
|
|
# generate parser with lex and yacc |
32 |
|
|
parser: |
33 |
|
|
@echo "Generating LSCP parser..." |
34 |
schoenebeck |
219 |
@if which "yacc" > /dev/null; then \ |
35 |
schoenebeck |
35 |
yacc -d lscp.y && \ |
36 |
|
|
yacc lscp.y && \ |
37 |
|
|
mv -f y.tab.h lscpsymbols.h && \ |
38 |
schoenebeck |
573 |
mv -f y.tab.c lscpparser.cpp && \ |
39 |
|
|
echo -n "Updating Documentation/lscp.xml..." && \ |
40 |
|
|
(cd ../../scripts/ && ./update_grammar.pl) && \ |
41 |
|
|
echo "OK"; \ |
42 |
schoenebeck |
35 |
else \ |
43 |
schoenebeck |
219 |
echo "You need yacc (or bison) to generate the parser."; \ |
44 |
schoenebeck |
35 |
fi; |