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