Implement getcpu override
[lttng-ust.git] / doc / examples / Makefile.am
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_clock_overridedir = ${docdir}/examples/clock-override
8 doc_examples_getcpu_overridedir = ${docdir}/examples/getcpu-override
9
10 if BUILD_JAVA_AGENT
11 doc_examples_java_juldir = ${docdir}/examples/java-jul
12 dist_doc_examples_java_jul_DATA = java-jul/Makefile \
13 java-jul/Hello.java \
14 java-jul/run
15 SUBDIRS_JUL = java-jul
16 endif
17
18 dist_doc_examples_DATA = README
19
20 dist_doc_examples_easy_ust_DATA = easy-ust/Makefile \
21 easy-ust/sample.c \
22 easy-ust/sample_component_provider.h easy-ust/tp.c
23
24 dist_doc_examples_gen_tp_DATA = gen-tp/Makefile \
25 gen-tp/sample.c gen-tp/sample_tracepoint.tp
26
27 dist_doc_examples_demo_DATA = demo/demo.c \
28 demo/demo-trace \
29 demo/Makefile \
30 demo/README \
31 demo/tp2.c \
32 demo/tp3.c \
33 demo/tp.c \
34 demo/ust_tests_demo2.h \
35 demo/ust_tests_demo3.h \
36 demo/ust_tests_demo.h
37
38 dist_doc_examples_hello_static_lib_DATA = hello-static-lib/Makefile \
39 hello-static-lib/hello.c \
40 hello-static-lib/README \
41 hello-static-lib/ust_tests_hello.h \
42 hello-static-lib/tp.c
43
44 dist_doc_examples_demo_tracef_DATA = demo-tracef/Makefile \
45 demo-tracef/demo-tracef.c \
46 demo-tracef/README
47
48 dist_doc_examples_clock_override_DATA = clock-override/Makefile \
49 clock-override/lttng-ust-clock-override-example.c \
50 clock-override/run-clock-override \
51 clock-override/README
52
53 dist_doc_examples_getcpu_override_DATA = getcpu-override/Makefile \
54 getcpu-override/lttng-ust-getcpu-override-example.c \
55 getcpu-override/run-getcpu-override \
56 getcpu-override/README
57
58 if NO_SHARED
59 # Don't build examples if shared libraries support was explicitly
60 # disabled.
61 else
62 # Copies are for VPATH build support
63 SUBDIRS_PROXY = easy-ust demo hello-static-lib demo-tracef clock-override \
64 getcpu-override
65
66 if BUILD_GEN_TP_EXAMPLES
67 SUBDIRS_PROXY += gen-tp
68 endif
69
70 all-local:
71 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
72 for subdir in $(SUBDIRS_PROXY) $(SUBDIRS_JUL); do \
73 cp -pfR $(srcdir)/$$subdir $(builddir); \
74 done; \
75 fi; \
76 if [ x"$(shell echo "$(top_srcdir)" | grep "^/" | wc -l)" = x"1" ]; then \
77 echo "Examples: absolute top_srcdir path $(top_srcdir)"; \
78 rel_src_subdir=""; \
79 else \
80 echo "Examples: relative top_srcdir path $(top_srcdir)"; \
81 rel_src_subdir="../"; \
82 fi; \
83 if [ x"$(shell echo "$(top_builddir)" | grep "^/" | wc -l)" = x"1" ]; then \
84 echo "Examples: absolute top_builddir path $(top_builddir)"; \
85 rel_build_subdir=""; \
86 else \
87 echo "Examples: relative top_builddir path $(top_builddir)"; \
88 rel_build_subdir="../"; \
89 fi; \
90 for subdir in $(SUBDIRS_PROXY); do \
91 (cd $$subdir && $(MAKE) AM_CC="$(CC)" AM_CPPFLAGS="$(CPPFLAGS) -I$$rel_src_subdir$(top_srcdir)/include/ -I$$rel_build_subdir$(top_builddir)/include/" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../liblttng-ust/.libs -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/" -Wl,-rpath-link="$(PWD)/../../liblttng-ust/.libs/"' LTTNG_GEN_TP_PATH="../../../tools/" $(AM_MAKEFLAGS) all && cd ..) || exit 1; \
92 done; \
93 if [ x"$(SUBDIRS_JUL)" != x"" ]; then \
94 for subdir in $(SUBDIRS_JUL); do \
95 (cd $(SUBDIRS_JUL) && $(MAKE) JAVA_CLASSPATH_OVERRIDE="../../../liblttng-ust-java-agent/java" JAVA_JARFILE_OVERRIDE="liblttng-ust-agent.jar" $(AM_MAKEFLAGS) all && cd ..) || exit 1; \
96 done; \
97 fi;
98
99 clean-local:
100 @for subdir in $(SUBDIRS_PROXY); do \
101 if [ -d $$subdir ]; then \
102 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..) || exit 1; \
103 fi; \
104 done; \
105 if [ x"$(SUBDIRS_JUL)" != x"" ]; then \
106 for subdir in $(SUBDIRS_JUL); do \
107 if [ -d $$subdir ]; then \
108 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..) || exit 1; \
109 fi; \
110 done; \
111 fi; \
112 if [ x"$(srcdir)" != x"$(builddir)" ]; then \
113 for subdir in $(SUBDIRS_PROXY) $(SUBDIRS_JUL); do \
114 rm -rf $(builddir)/$$subdir; \
115 done; \
116 fi;
117 endif
This page took 0.033272 seconds and 5 git commands to generate.