1 |
INCLUDES = $(all_includes) |
INCLUDES = $(all_includes) |
2 |
METASOURCES = AUTO |
METASOURCES = AUTO |
3 |
noinst_LIBRARIES = liblinuxsamplernetwork.a |
|
4 |
liblinuxsamplernetwork_a_SOURCES = lscp.h lscpparser.cpp lscpparser.h lscpscanner.cpp lscpserver.cpp lscpserver.h lscpsymbols.h |
AM_CXXFLAGS = -ffast-math -march=$(target_cpu) -mcpu=$(target_cpu) |
5 |
|
|
6 |
|
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 |
8 |
|
|
9 |
.PHONY: parser |
.PHONY: parser |
10 |
|
|
13 |
@echo "Generating LSCP parser..." |
@echo "Generating LSCP parser..." |
14 |
@if which "lex" > /dev/null && which "yacc" > /dev/null; then \ |
@if which "lex" > /dev/null && which "yacc" > /dev/null; then \ |
15 |
yacc -d lscp.y && \ |
yacc -d lscp.y && \ |
16 |
lex -f lscp.l && \ |
lex --fast --8bit lscp.l && \ |
17 |
yacc lscp.y && \ |
yacc lscp.y && \ |
18 |
mv -f y.tab.h lscpsymbols.h && \ |
mv -f y.tab.h lscpsymbols.h && \ |
19 |
mv -f y.tab.c lscpparser.cpp && \ |
mv -f y.tab.c lscpparser.cpp && \ |
21 |
else \ |
else \ |
22 |
echo "You need lex (or flex) and yacc (or bison) to generate the parser."; \ |
echo "You need lex (or flex) and yacc (or bison) to generate the parser."; \ |
23 |
fi; |
fi; |
|
|
|