261e1e0760971ba6aaff2357881301a7480eade5
[deliverable/lttng-tools.git] / src / common / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 SUBDIRS = string-utils
4
5 # Make sure to always distribute all folders
6 # since SUBDIRS is decided at configure time.
7 DIST_SUBDIRS = \
8 compat \
9 health \
10 hashtable \
11 kernel-ctl \
12 sessiond-comm \
13 relayd \
14 kernel-consumer \
15 ust-consumer \
16 testpoint \
17 index \
18 config \
19 consumer \
20 string-utils \
21 fd-tracker
22
23 # Common library
24 noinst_LTLIBRARIES = libcommon.la
25 EXTRA_DIST = mi-lttng-4.0.xsd
26
27 libcommon_la_SOURCES = \
28 action.c \
29 buffer-usage.c \
30 buffer-view.h buffer-view.c \
31 common.h \
32 condition.c \
33 context.c context.h \
34 credentials.h \
35 daemonize.c daemonize.h \
36 defaults.c \
37 dynamic-array.c dynamic-array.h \
38 dynamic-buffer.c dynamic-buffer.h \
39 endpoint.c \
40 error.c error.h \
41 evaluation.c \
42 event.c \
43 filter.c filter.h \
44 futex.c futex.h \
45 location.c \
46 mi-lttng.c mi-lttng.h \
47 notification.c \
48 notify.c \
49 optional.h \
50 pipe.c pipe.h \
51 readwrite.c readwrite.h \
52 runas.c runas.h \
53 session-consumed-size.c \
54 session-descriptor.c \
55 session-rotation.c \
56 time.c \
57 trace-chunk.c trace-chunk.h \
58 trace-chunk-registry.h \
59 trigger.c \
60 unix.c unix.h \
61 uri.c uri.h \
62 userspace-probe.c \
63 utils.c utils.h \
64 uuid.c uuid.h \
65 tracker.c \
66 waiter.c waiter.h \
67 fs-handle.h fs-handle-internal.h fs-handle.c
68
69 if HAVE_ELF_H
70 libcommon_la_SOURCES += \
71 lttng-elf.c lttng-elf.h
72 endif
73
74 libcommon_la_LIBADD = \
75 $(top_builddir)/src/common/config/libconfig.la \
76 $(top_builddir)/src/common/compat/libcompat.la \
77 $(top_builddir)/src/common/hashtable/libhashtable.la \
78 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
79
80 if BUILD_LIB_COMPAT
81 SUBDIRS += compat
82 endif
83
84 if BUILD_LIB_HEALTH
85 SUBDIRS += health
86 endif
87
88 if BUILD_LIB_HASHTABLE
89 SUBDIRS += hashtable
90 endif
91
92 if BUILD_LIB_KERNEL_CTL
93 SUBDIRS += kernel-ctl
94 endif
95
96 if BUILD_LIB_SESSIOND_COMM
97 SUBDIRS += sessiond-comm
98 endif
99
100 if BUILD_LIB_RELAYD
101 SUBDIRS += relayd
102 endif
103
104 if BUILD_LIB_FD_TRACKER
105 SUBDIRS += fd-tracker
106 endif
107
108 if BUILD_LIB_KERNEL_CONSUMER
109 SUBDIRS += kernel-consumer
110 endif
111
112 if BUILD_LIB_UST_CONSUMER
113 SUBDIRS += ust-consumer
114 endif
115
116 if BUILD_LIB_TESTPOINT
117 SUBDIRS += testpoint
118 endif
119
120 if BUILD_LIB_INDEX
121 SUBDIRS += index
122 endif
123
124 if BUILD_LIB_CONFIG
125 SUBDIRS += config
126 endif
127
128 if BUILD_LIB_CONSUMER
129 SUBDIRS += consumer
130 endif
131
132 noinst_HEADERS = \
133 align.h \
134 bug.h \
135 defaults.h \
136 error.h \
137 futex.h \
138 lttng-kernel.h \
139 lttng-kernel-old.h \
140 macros.h \
141 time.h \
142 uri.h \
143 utils.h
144
145 all-local:
146 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
147 for script in $(EXTRA_DIST); do \
148 cp -f $(srcdir)/$$script $(builddir); \
149 done; \
150 fi
151
152 clean-local:
153 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
154 for script in $(EXTRA_DIST); do \
155 rm -f $(builddir)/$$script; \
156 done; \
157 fi
This page took 0.041949 seconds and 4 git commands to generate.