Fix: add subdir-objects to Makefile.am
[lttng-tools.git] / src / common / Makefile.am
CommitLineData
74130cb7 1AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
10a8a223 2
26821431
MD
3AUTOMAKE_OPTIONS = subdir-objects
4
55d09795 5SUBDIRS = compat health hashtable kernel-ctl sessiond-comm relayd \
bac6245e 6 kernel-consumer ust-consumer testpoint index config
10a8a223
DG
7
8AM_CFLAGS = -fno-strict-aliasing
9
0b5fb049 10noinst_HEADERS = lttng-kernel.h defaults.h macros.h error.h futex.h \
331744e3 11 uri.h utils.h lttng-kernel-old.h \
2d57de81 12 consumer-metadata-cache.h consumer-timer.h \
0618d922 13 consumer-testpoint.h align.h bitfield.h bug.h
1c39da61 14
00e2e675 15# Common library
10a8a223 16noinst_LTLIBRARIES = libcommon.la
2f99314e 17EXTRA_DIST = mi_lttng.xsd
10a8a223 18
6242251b 19libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.c runas.h \
9fd92637 20 common.h futex.c futex.h uri.c uri.h defaults.c \
99ed9c43 21 pipe.c pipe.h readwrite.c readwrite.h \
c7e35b03 22 mi-lttng.h mi-lttng.c \
7567352f
MD
23 daemonize.c daemonize.h \
24 sessiond-comm/unix.c sessiond-comm/unix.h
25
c7e35b03
JR
26libcommon_la_LIBADD = \
27 -luuid \
28 -lrt \
29 $(top_builddir)/src/common/config/libconfig.la
10a8a223
DG
30
31# Consumer library
32noinst_LTLIBRARIES += libconsumer.la
33
331744e3 34libconsumer_la_SOURCES = consumer.c consumer.h consumer-metadata-cache.c \
51230d70 35 consumer-timer.c consumer-stream.c consumer-stream.h
10a8a223
DG
36
37libconsumer_la_LIBADD = \
38 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
39 $(top_builddir)/src/common/kernel-consumer/libkernel-consumer.la \
b9182dd9 40 $(top_builddir)/src/common/hashtable/libhashtable.la \
00e2e675
DG
41 $(top_builddir)/src/common/compat/libcompat.la \
42 $(top_builddir)/src/common/relayd/librelayd.la
10a8a223
DG
43
44if HAVE_LIBLTTNG_UST_CTL
45libconsumer_la_LIBADD += \
46 $(top_builddir)/src/common/ust-consumer/libust-consumer.la
47endif
c49fc5e4
JR
48
49all-local:
50 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
51 for script in $(EXTRA_DIST); do \
52 cp -f $(srcdir)/$$script $(builddir); \
53 done; \
54 fi
55
56clean-local:
57 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
58 for script in $(EXTRA_DIST); do \
59 rm -f $(builddir)/$$script; \
60 done; \
61 fi
This page took 0.049376 seconds and 5 git commands to generate.