1 noinst_SCRIPTS = test_multi_lib
2 EXTRA_DIST = test_multi_lib
3 noinst_PROGRAMS = exec-with-callsites exec-without-callsites
5 exec_with_callsites_SOURCES = multi-lib-test.c callsites.c
6 exec_with_callsites_LDFLAGS = -ldl $(POPT_LIBS)
7 exec_with_callsites_CFLAGS = $(POPT_CFLAGS) $(AM_CFLAGS) -DHAS_CALLSITES=1
9 exec_without_callsites_SOURCES = multi-lib-test.c
10 exec_without_callsites_LDFLAGS = -ldl $(POPT_LIBS) -llttng-ust
11 exec_without_callsites_LDADD = probes.o
12 exec_without_callsites_CFLAGS = $(POPT_CFLAGS) $(AM_CFLAGS) -DHAS_CALLSITES=0
14 PROBES_SRC=probes.c probes.h
15 PROBES_LDF=-shared -module -llttng-ust -avoid-version -rpath $(abs_builddir)/.libs/
16 PROBES_CF=$(AM_CFLAGS) $(AM_CPPFLAGS) $(CFLAGS) $(CPPFLAGS) -c -I$(srcdir)/
18 probes.o: probes.c probes.h
19 $(CC) $(PROBES_CF) -o $@ $<
21 noinst_LTLIBRARIES = libprobes_a.la libprobes_a_prime.la \
22 libprobes_b.la libprobes_c.la libprobes_c_prime.la \
23 libprobes_d.la libprobes_e.la libprobes_f.la \
24 libprobes_g.la libprobes_h.la libprobes_i.la \
25 libprobes_j.la libprobes_k.la libprobes_l.la \
26 libprobes_m.la libprobes_n.la libprobes_o.la \
29 noinst_LTLIBRARIES += libcallsites_1.la libcallsites_2.la
31 CALLSITES_SRC=callsites.c callsites.h
32 CALLSITES_LDF=-shared -module -llttng-ust -avoid-version -rpath $(abs_builddir)/.libs/
35 libprobes_a_la_SOURCES = $(PROBES_SRC)
36 libprobes_a_la_LDFLAGS = $(PROBES_LDF)
37 libprobes_a_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_A
39 libprobes_a_prime_la_SOURCES = $(PROBES_SRC)
40 libprobes_a_prime_la_LDFLAGS = $(PROBES_LDF)
41 libprobes_a_prime_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_A
43 libprobes_b_la_SOURCES = $(PROBES_SRC)
44 libprobes_b_la_LDFLAGS = $(PROBES_LDF)
45 libprobes_b_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_B
47 libprobes_c_la_SOURCES = $(PROBES_SRC)
48 libprobes_c_la_LDFLAGS = $(PROBES_LDF)
49 libprobes_c_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_C
51 libprobes_c_prime_la_SOURCES = $(PROBES_SRC)
52 libprobes_c_prime_la_LDFLAGS = $(PROBES_LDF)
53 libprobes_c_prime_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_C
55 libprobes_d_la_SOURCES = $(PROBES_SRC)
56 libprobes_d_la_LDFLAGS = $(PROBES_LDF)
57 libprobes_d_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_D
59 libprobes_e_la_SOURCES = $(PROBES_SRC)
60 libprobes_e_la_LDFLAGS = $(PROBES_LDF)
61 libprobes_e_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_E
63 libprobes_f_la_SOURCES = $(PROBES_SRC)
64 libprobes_f_la_LDFLAGS = $(PROBES_LDF)
65 libprobes_f_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_F
67 libprobes_g_la_SOURCES = $(PROBES_SRC)
68 libprobes_g_la_LDFLAGS = $(PROBES_LDF)
69 libprobes_g_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_G
71 libprobes_h_la_SOURCES = $(PROBES_SRC)
72 libprobes_h_la_LDFLAGS = $(PROBES_LDF)
73 libprobes_h_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_H
75 libprobes_i_la_SOURCES = $(PROBES_SRC)
76 libprobes_i_la_LDFLAGS = $(PROBES_LDF)
77 libprobes_i_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_I
79 libprobes_j_la_SOURCES = $(PROBES_SRC)
80 libprobes_j_la_LDFLAGS = $(PROBES_LDF)
81 libprobes_j_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_J
83 libprobes_k_la_SOURCES = $(PROBES_SRC)
84 libprobes_k_la_LDFLAGS = $(PROBES_LDF)
85 libprobes_k_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_K
87 libprobes_l_la_SOURCES = $(PROBES_SRC)
88 libprobes_l_la_LDFLAGS = $(PROBES_LDF)
89 libprobes_l_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_L
91 libprobes_m_la_SOURCES = $(PROBES_SRC)
92 libprobes_m_la_LDFLAGS = $(PROBES_LDF)
93 libprobes_m_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_M
95 libprobes_n_la_SOURCES = $(PROBES_SRC)
96 libprobes_n_la_LDFLAGS = $(PROBES_LDF)
97 libprobes_n_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_N
99 libprobes_o_la_SOURCES = $(PROBES_SRC)
100 libprobes_o_la_LDFLAGS = $(PROBES_LDF)
101 libprobes_o_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_O
103 libprobes_p_la_SOURCES = $(PROBES_SRC)
104 libprobes_p_la_LDFLAGS = $(PROBES_LDF)
105 libprobes_p_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_P
107 libcallsites_1_la_SOURCES = $(CALLSITES_SRC)
108 libcallsites_1_la_LDFLAGS = $(CALLSITES_LDF)
109 libcallsites_1_la_CFLAGS = $(AM_CFLAGS) $(CALLSITES_CF) -DVALUE=11111
111 libcallsites_2_la_SOURCES = $(CALLSITES_SRC)
112 libcallsites_2_la_LDFLAGS = $(CALLSITES_LDF)
113 libcallsites_2_la_CFLAGS = $(AM_CFLAGS) $(CALLSITES_CF) -DVALUE=22222
118 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
119 for script in $(EXTRA_DIST); do \
120 cp -f $(srcdir)/$$script $(builddir); \
125 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
126 for script in $(EXTRA_DIST); do \
127 rm -f $(builddir)/$$script; \