Add UST namespace contexts tests
[lttng-tools.git] / tests / regression / ust / multi-lib / Makefile.am
1 noinst_SCRIPTS = test_multi_lib
2 EXTRA_DIST = test_multi_lib
3 noinst_PROGRAMS = exec-with-callsites exec-without-callsites
4
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
8
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
13
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)/
17
18 probes.o: probes.c probes.h
19 $(CC) $(PROBES_CF) -o $@ $<
20
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 \
27 libprobes_p.la
28
29 noinst_LTLIBRARIES += libcallsites_1.la libcallsites_2.la
30
31 CALLSITES_SRC=callsites.c callsites.h
32 CALLSITES_LDF=-shared -module -llttng-ust -avoid-version -rpath $(abs_builddir)/.libs/
33 CALLSITES_CF=-c -I.
34
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
38
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
42
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
46
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
50
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
54
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
58
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
62
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
66
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
70
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
74
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
78
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
82
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
86
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
90
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
94
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
98
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
102
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
106
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
110
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
114
115 CLEANFILES=probes.o
116
117 all-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
124 clean-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.034242 seconds and 5 git commands to generate.