1 |
INCLUDES = $(all_includes) |
INCLUDES = $(all_includes) |
2 |
METASOURCES = AUTO |
METASOURCES = AUTO |
|
lib_LIBRARIES = liblscpserver.a |
|
3 |
|
|
4 |
liblscpserver_a_SOURCES = lscpparser.h lscpserver.cpp lscpparser.cpp lscpscanner.cpp |
AM_CXXFLAGS = -ffast-math -march=$(target_cpu) -mcpu=$(target_cpu) |
5 |
noinst_HEADERS = lscpserver.h lscp.h |
|
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 |
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 && \ |