AM_CPPFLAGS = $(all_includes) $(GIG_CFLAGS) $(SQLITE3_CFLAGS) METASOURCES = AUTO AM_CXXFLAGS = -Wreturn-type -ffast-math $(CXX_CPU_SWITCH) if HAVE_WINDOWS winsocket_ldflags = -lws2_32 -lole32 else winsocket_ldflags = endif auto_generated_sources = lscp.tab.cpp lscp.tab.h lscp_shell_reference.cpp BUILT_SOURCES = $(auto_generated_sources) CLEANFILES = $(auto_generated_sources) DISTCLEANFILES = $(auto_generated_sources) noinst_LTLIBRARIES = liblinuxsamplernetwork.la liblinuxsamplernetwork_la_SOURCES = \ lscp.h \ lscpparser.h \ lscpserver.cpp lscpserver.h \ lscpresultset.cpp lscpresultset.h \ lscp_shell_reference.h \ lscpevent.cpp lscpevent.h nodist_liblinuxsamplernetwork_la_SOURCES = \ $(auto_generated_sources) liblinuxsamplernetwork_la_LIBADD = $(winsocket_ldflags) yacc_sources = lscp.y EXTRA_DIST = $(yacc_sources) # automatically (re)generate all auto generated files with GNU Bison if yacc # source file has been changed $(auto_generated_sources): $(yacc_sources) ## IMPORTANT: shell script must only be called once in Makefile to avoid ## concurrent re-generation of its output files with 'make -j'. $(top_builddir)/scripts/generate_lscp_parser.sh .NOTPARALLEL: $(auto_generated_sources) .PHONY: parser # "make parser" was explicitly requested parser: ## Exception of above's rule: this is never automatically called. $(top_builddir)/scripts/generate_lscp_parser.sh