1 |
AM_CPPFLAGS = $(all_includes) |
2 |
METASOURCES = AUTO |
3 |
|
4 |
AM_CXXFLAGS = -Wreturn-type -ffast-math $(CXX_CPU_SWITCH) |
5 |
|
6 |
AM_YFLAGS = -d |
7 |
BUILT_SOURCES = parser.h |
8 |
|
9 |
noinst_LTLIBRARIES = liblinuxsamplerscriptvm.la |
10 |
liblinuxsamplerscriptvm_la_SOURCES = \ |
11 |
common.h common.cpp \ |
12 |
scanner.cpp \ |
13 |
parser.h parser.cpp \ |
14 |
tree.h tree.cpp \ |
15 |
CoreVMFunctions.h CoreVMFunctions.cpp \ |
16 |
ScriptVM.h ScriptVM.cpp |
17 |
|
18 |
yacc_sources = parser.y |
19 |
|
20 |
EXTRA_DIST = $(yacc_sources) scanner.l |
21 |
|
22 |
# automatically (re)generate scanner.cpp with flex / lex if the |
23 |
# lex source file(s) have been changed |
24 |
scanner.cpp: scanner.l tree.h parser_shared.h |
25 |
$(top_srcdir)/scripts/generate_instrument_script_parser.sh |
26 |
|
27 |
# automatically (re)generate parser.cpp with bison / yacc if the |
28 |
# yacc source file(s) have been changed |
29 |
parser.cpp: $(yacc_sources) scanner.l tree.h parser_shared.h |
30 |
$(top_srcdir)/scripts/generate_instrument_script_parser.sh |
31 |
|
32 |
.PHONY: parser |
33 |
|
34 |
# "make parser" was explicitly requested |
35 |
parser: |
36 |
$(top_srcdir)/scripts/generate_instrument_script_parser.sh |