1 doc_examplesdir = ${docdir}/examples
2 doc_examples_easy_ustdir = ${docdir}/examples/easy-ust
3 doc_examples_gen_tpdir = ${docdir}/examples/gen-tp
4 doc_examples_demodir = ${docdir}/examples/demo
5 doc_examples_hello_static_libdir = ${docdir}/examples/hello-static-lib
6 doc_examples_demo_tracefdir = ${docdir}/examples/demo-tracef
7 doc_examples_demo_tracelogdir = ${docdir}/examples/demo-tracelog
8 doc_examples_clock_overridedir = ${docdir}/examples/clock-override
9 doc_examples_getcpu_overridedir = ${docdir}/examples/getcpu-override
10 doc_examples_cmakedir = ${docdir}/examples/cmake-multiple-shared-libraries
12 if BUILD_JAVA_AGENT_WITH_JUL
13 doc_examples_java_juldir = ${docdir}/examples/java-jul
14 dist_doc_examples_java_jul_DATA = java-jul/Makefile \
17 java-jul/ApplicationContextExample.java \
18 java-jul/FilterChangeListenerExample.java \
20 SUBDIRS_JUL = java-jul
23 if BUILD_JAVA_AGENT_WITH_LOG4J
24 doc_examples_java_log4jdir = ${docdir}/examples/java-log4j
25 dist_doc_examples_java_log4j_DATA = java-log4j/Makefile \
26 java-log4j/Hello.java \
28 SUBDIRS_LOG4J = java-log4j
32 doc_examples_pythondir = ${docdir}/examples/python
33 dist_doc_examples_python_DATA = python/hello.py
38 SUBDIRS_CMAKE = cmake-multiple-shared-libraries
42 dist_doc_examples_DATA = README
44 dist_doc_examples_easy_ust_DATA = easy-ust/Makefile \
46 easy-ust/sample_component_provider.h easy-ust/tp.c
48 dist_doc_examples_cmake_DATA = \
49 cmake-multiple-shared-libraries/CMakeLists.txt \
50 cmake-multiple-shared-libraries/cmake/FindLTTngUST.cmake \
51 cmake-multiple-shared-libraries/aligner.cpp \
52 cmake-multiple-shared-libraries/aligner-lib.cpp \
53 cmake-multiple-shared-libraries/aligner-lib.h \
54 cmake-multiple-shared-libraries/README.md \
55 cmake-multiple-shared-libraries/tester.cpp \
56 cmake-multiple-shared-libraries/tester-lib.cpp \
57 cmake-multiple-shared-libraries/tester-lib.h \
58 cmake-multiple-shared-libraries/tracepoint-provider.cpp \
59 cmake-multiple-shared-libraries/tracepoint-provider.h \
60 cmake-multiple-shared-libraries/trace.sh
62 dist_doc_examples_gen_tp_DATA = gen-tp/Makefile \
63 gen-tp/sample.c gen-tp/sample_tracepoint.tp
65 dist_doc_examples_demo_DATA = demo/demo.c \
72 demo/ust_tests_demo2.h \
73 demo/ust_tests_demo3.h \
76 dist_doc_examples_hello_static_lib_DATA = hello-static-lib/Makefile \
77 hello-static-lib/hello.c \
78 hello-static-lib/README \
79 hello-static-lib/ust_tests_hello.h \
82 dist_doc_examples_demo_tracef_DATA = demo-tracef/Makefile \
83 demo-tracef/demo-tracef.c \
86 dist_doc_examples_demo_tracelog_DATA = demo-tracelog/Makefile \
87 demo-tracelog/demo-tracelog.c \
90 dist_doc_examples_clock_override_DATA = clock-override/Makefile \
91 clock-override/lttng-ust-clock-override-example.c \
92 clock-override/run-clock-override \
95 dist_doc_examples_getcpu_override_DATA = getcpu-override/Makefile \
96 getcpu-override/lttng-ust-getcpu-override-example.c \
97 getcpu-override/run-getcpu-override \
98 getcpu-override/README
100 # Copies are for VPATH build support
101 SUBDIRS_PROXY = easy-ust demo hello-static-lib demo-tracef clock-override \
102 getcpu-override demo-tracelog
104 if BUILD_GEN_TP_EXAMPLES
105 SUBDIRS_PROXY += gen-tp
109 $(AM_V_at)if [ x"$(srcdir)" != x"$(builddir)" ]; then \
110 for subdir in $(SUBDIRS_PROXY) $(SUBDIRS_JUL) $(SUBDIRS_LOG4J) $(SUBDIRS_CMAKE); do \
111 cp -pfR $(srcdir)/$$subdir $(builddir); \
112 chmod -R u+w $(builddir)/$$subdir; \
115 if [ x"$(shell echo "$(top_srcdir)" | grep "^/" | wc -l)" = x"1" ]; then \
118 rel_src_subdir="../"; \
120 if [ x"$(shell echo "$(top_builddir)" | grep "^/" | wc -l)" = x"1" ]; then \
121 rel_build_subdir=""; \
123 rel_build_subdir="../"; \
125 for subdir in $(SUBDIRS_PROXY); do \
131 CPPFLAGS="$(CPPFLAGS)" \
132 AM_CPPFLAGS="$(AM_CPPFLAGS) \
133 -I$$rel_src_subdir$(top_srcdir)/include/ \
134 -I$$rel_build_subdir$(top_builddir)/include/" \
136 AM_CFLAGS='$(AM_CFLAGS)' \
137 LDFLAGS="$(LDFLAGS)" \
138 AM_LDFLAGS='$(AM_LDFLAGS) -L../../../liblttng-ust/.libs -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/" -Wl,-rpath-link="$(PWD)/../../liblttng-ust/.libs/"' \
139 LTTNG_GEN_TP_PATH="../../../tools/" \
141 AM_V_at="$(AM_V_at)" \
145 if [ x"$(SUBDIRS_JUL)" != x"" ]; then \
146 for subdir in $(SUBDIRS_JUL); do \
150 CLASSPATH="$(CLASSPATH)" \
151 JAVA_CLASSPATH_OVERRIDE_JUL="../../../liblttng-ust-java-agent/java/lttng-ust-agent-jul" \
152 JAVA_CLASSPATH_OVERRIDE_COMMON="../../../liblttng-ust-java-agent/java/lttng-ust-agent-common" \
157 if [ x"$(SUBDIRS_LOG4J)" != x"" ]; then \
158 for subdir in $(SUBDIRS_LOG4J); do \
162 CLASSPATH="$(CLASSPATH)" \
163 JAVA_CLASSPATH_OVERRIDE_LOG4J="../../../liblttng-ust-java-agent/java/lttng-ust-agent-log4j" \
164 JAVA_CLASSPATH_OVERRIDE_COMMON="../../../liblttng-ust-java-agent/java/lttng-ust-agent-common" \
169 if [ x"$(SUBDIRS_CMAKE)" != x"" ]; then \
170 for subdir in $(SUBDIRS_CMAKE); do \
173 $(MKDIR_P) build && \
179 -DCMAKE_INCLUDE_PATH="$(abs_top_srcdir)/include;$(abs_top_builddir)/include" \
180 -DCMAKE_LIBRARY_PATH="$(abs_top_builddir)/liblttng-ust/.libs" \
181 -DCMAKE_C_FLAGS="$(AM_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)" \
182 -DCMAKE_CXX_FLAGS="$(AM_CXXFLAGS) $(AM_CPPFLAGS) $(CXXFLAGS) $(CPPFLAGS)" \
183 -DCMAKE_EXE_LINKER_FLAGS="$(AM_LDFLAGS) $(LDFLAGS)" \
192 $(AM_V_at)for subdir in $(SUBDIRS_PROXY); do \
193 if [ -d $$subdir ]; then \
194 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..) || exit 1; \
197 if [ x"$(SUBDIRS_JUL)" != x"" ]; then \
198 for subdir in $(SUBDIRS_JUL); do \
199 if [ -d $$subdir ]; then \
200 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..) || exit 1; \
204 if [ x"$(SUBDIRS_LOG4J)" != x"" ]; then \
205 for subdir in $(SUBDIRS_LOG4J); do \
206 if [ -d $$subdir ]; then \
207 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..) || exit 1; \
211 if [ x"$(SUBDIRS_CMAKE)" != x"" ]; then \
212 for subdir in $(SUBDIRS_CMAKE); do \
213 if [ -d $$subdir ]; then \
214 (cd $$subdir && rm -rf build && cd ..) || exit 1; \
218 if [ x"$(srcdir)" != x"$(builddir)" ]; then \
219 for subdir in $(SUBDIRS_PROXY) $(SUBDIRS_JUL) $(SUBDIRS_LOG4J) $(SUBDIRS_CMAKE); do \
220 rm -rf $(builddir)/$$subdir; \