Tests: add duplicated providers tests
[lttng-tools.git] / tests / regression / ust / multi-lib / Makefile.am
CommitLineData
3f7f208a
FD
1noinst_SCRIPTS = test_multi_lib
2EXTRA_DIST = test_multi_lib
3noinst_PROGRAMS = exec-with-callsites exec-without-callsites
4
5exec_with_callsites_SOURCES = multi-lib-test.c callsites.c
6exec_with_callsites_LDFLAGS = -ldl -lpopt
7exec_with_callsites_CFLAGS = $(AM_CFLAGS) -DHAS_CALLSITES=1
8
9exec_without_callsites_SOURCES = multi-lib-test.c
10exec_without_callsites_LDFLAGS = -ldl -lpopt -llttng-ust
11exec_without_callsites_LDADD = probes.o
12exec_without_callsites_CFLAGS = $(AM_CFLAGS) -DHAS_CALLSITES=0
13
14PROBES_SRC=probes.c probes.h
15PROBES_LDF=-shared -module -llttng-ust -avoid-version -rpath $(abs_builddir)/.libs/
16PROBES_CF=$(AM_CFLAGS) $(AM_CPPFLAGS) $(CFLAGS) $(CPPFLAGS) -c -I$(srcdir)/
17
18probes.o: probes.c probes.h
19 $(CC) $(PROBES_CF) -o $@ $<
20
21noinst_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 \
27 libprobes_p.la
28
29noinst_LTLIBRARIES += libcallsites_1.la libcallsites_2.la
30
31CALLSITES_SRC=callsites.c callsites.h
32CALLSITES_LDF=-shared -module -llttng-ust -avoid-version -rpath $(abs_builddir)/.libs/
33CALLSITES_CF=-c -I.
34
35libprobes_a_la_SOURCES = $(PROBES_SRC)
36libprobes_a_la_LDFLAGS = $(PROBES_LDF)
37libprobes_a_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_A
38
39libprobes_a_prime_la_SOURCES = $(PROBES_SRC)
40libprobes_a_prime_la_LDFLAGS = $(PROBES_LDF)
41libprobes_a_prime_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_A
42
43libprobes_b_la_SOURCES = $(PROBES_SRC)
44libprobes_b_la_LDFLAGS = $(PROBES_LDF)
45libprobes_b_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_B
46
47libprobes_c_la_SOURCES = $(PROBES_SRC)
48libprobes_c_la_LDFLAGS = $(PROBES_LDF)
49libprobes_c_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_C
50
51libprobes_c_prime_la_SOURCES = $(PROBES_SRC)
52libprobes_c_prime_la_LDFLAGS = $(PROBES_LDF)
53libprobes_c_prime_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_C
54
55libprobes_d_la_SOURCES = $(PROBES_SRC)
56libprobes_d_la_LDFLAGS = $(PROBES_LDF)
57libprobes_d_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_D
58
59libprobes_e_la_SOURCES = $(PROBES_SRC)
60libprobes_e_la_LDFLAGS = $(PROBES_LDF)
61libprobes_e_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_E
62
63libprobes_f_la_SOURCES = $(PROBES_SRC)
64libprobes_f_la_LDFLAGS = $(PROBES_LDF)
65libprobes_f_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_F
66
67libprobes_g_la_SOURCES = $(PROBES_SRC)
68libprobes_g_la_LDFLAGS = $(PROBES_LDF)
69libprobes_g_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_G
70
71libprobes_h_la_SOURCES = $(PROBES_SRC)
72libprobes_h_la_LDFLAGS = $(PROBES_LDF)
73libprobes_h_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_H
74
75libprobes_i_la_SOURCES = $(PROBES_SRC)
76libprobes_i_la_LDFLAGS = $(PROBES_LDF)
77libprobes_i_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_I
78
79libprobes_j_la_SOURCES = $(PROBES_SRC)
80libprobes_j_la_LDFLAGS = $(PROBES_LDF)
81libprobes_j_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_J
82
83libprobes_k_la_SOURCES = $(PROBES_SRC)
84libprobes_k_la_LDFLAGS = $(PROBES_LDF)
85libprobes_k_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_K
86
87libprobes_l_la_SOURCES = $(PROBES_SRC)
88libprobes_l_la_LDFLAGS = $(PROBES_LDF)
89libprobes_l_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_L
90
91libprobes_m_la_SOURCES = $(PROBES_SRC)
92libprobes_m_la_LDFLAGS = $(PROBES_LDF)
93libprobes_m_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_M
94
95libprobes_n_la_SOURCES = $(PROBES_SRC)
96libprobes_n_la_LDFLAGS = $(PROBES_LDF)
97libprobes_n_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_N
98
99libprobes_o_la_SOURCES = $(PROBES_SRC)
100libprobes_o_la_LDFLAGS = $(PROBES_LDF)
101libprobes_o_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_O
102
103libprobes_p_la_SOURCES = $(PROBES_SRC)
104libprobes_p_la_LDFLAGS = $(PROBES_LDF)
105libprobes_p_la_CFLAGS = $(AM_CFLAGS) $(PROBES_CF) -DACTIVATE_PROBES_P
106
107libcallsites_1_la_SOURCES = $(CALLSITES_SRC)
108libcallsites_1_la_LDFLAGS = $(CALLSITES_LDF)
109libcallsites_1_la_CFLAGS = $(AM_CFLAGS) $(CALLSITES_CF) -DVALUE=11111
110
111libcallsites_2_la_SOURCES = $(CALLSITES_SRC)
112libcallsites_2_la_LDFLAGS = $(CALLSITES_LDF)
113libcallsites_2_la_CFLAGS = $(AM_CFLAGS) $(CALLSITES_CF) -DVALUE=22222
114
115CLEANFILES=probes.o
116
117all-local:
118 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
119 for script in $(EXTRA_DIST); do \
120 cp -f $(srcdir)/$$script $(builddir); \
121 done; \
122 fi
123
124clean-local:
125 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
126 for script in $(EXTRA_DIST); do \
127 rm -f $(builddir)/$$script; \
128 done; \
129 fi
This page took 0.028114 seconds and 5 git commands to generate.