e7ceefe47cf8d5a1b9e0ad659103e507557cd44e
[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
68 if HAVE_ELF_H
69 libcommon_la_SOURCES += \
70 lttng-elf.c lttng-elf.h
71 endif
72
73 libcommon_la_LIBADD = \
74 $(top_builddir)/src/common/config/libconfig.la \
75 $(top_builddir)/src/common/compat/libcompat.la \
76 $(top_builddir)/src/common/hashtable/libhashtable.la
77
78 if BUILD_LIB_COMPAT
79 SUBDIRS += compat
80 endif
81
82 if BUILD_LIB_HEALTH
83 SUBDIRS += health
84 endif
85
86 if BUILD_LIB_HASHTABLE
87 SUBDIRS += hashtable
88 endif
89
90 if BUILD_LIB_KERNEL_CTL
91 SUBDIRS += kernel-ctl
92 endif
93
94 if BUILD_LIB_SESSIOND_COMM
95 SUBDIRS += sessiond-comm
96 endif
97
98 if BUILD_LIB_RELAYD
99 SUBDIRS += relayd
100 endif
101
102 if BUILD_LIB_FD_TRACKER
103 SUBDIRS += fd-tracker
104 endif
105
106 if BUILD_LIB_KERNEL_CONSUMER
107 SUBDIRS += kernel-consumer
108 endif
109
110 if BUILD_LIB_UST_CONSUMER
111 SUBDIRS += ust-consumer
112 endif
113
114 if BUILD_LIB_TESTPOINT
115 SUBDIRS += testpoint
116 endif
117
118 if BUILD_LIB_INDEX
119 SUBDIRS += index
120 endif
121
122 if BUILD_LIB_CONFIG
123 SUBDIRS += config
124 endif
125
126 if BUILD_LIB_CONSUMER
127 SUBDIRS += consumer
128 endif
129
130 noinst_HEADERS = \
131 align.h \
132 bug.h \
133 defaults.h \
134 error.h \
135 futex.h \
136 lttng-kernel.h \
137 lttng-kernel-old.h \
138 macros.h \
139 time.h \
140 uri.h \
141 utils.h
142
143 all-local:
144 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
145 for script in $(EXTRA_DIST); do \
146 cp -f $(srcdir)/$$script $(builddir); \
147 done; \
148 fi
149
150 clean-local:
151 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
152 for script in $(EXTRA_DIST); do \
153 rm -f $(builddir)/$$script; \
154 done; \
155 fi
This page took 0.032083 seconds and 3 git commands to generate.