| 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | AM_CPPFLAGS += -DINSTALL_BIN_PATH=\""$(bindir)"\" |
| 4 | |
| 5 | if EMBED_HELP |
| 6 | AM_CPPFLAGS += -I$(top_builddir)/doc/man |
| 7 | endif |
| 8 | |
| 9 | AUTOMAKE_OPTIONS = subdir-objects |
| 10 | |
| 11 | bin_PROGRAMS = lttng |
| 12 | |
| 13 | lttng_SOURCES = command.h conf.c conf.h commands/start.c \ |
| 14 | commands/list.c commands/create.c commands/destroy.c \ |
| 15 | commands/stop.c commands/enable_events.c \ |
| 16 | commands/disable_events.c commands/enable_channels.c \ |
| 17 | commands/disable_channels.c commands/add_context.c \ |
| 18 | commands/set_session.c commands/version.c \ |
| 19 | commands/view.c \ |
| 20 | commands/snapshot.c \ |
| 21 | commands/save.c \ |
| 22 | commands/load.c \ |
| 23 | commands/track-untrack.c \ |
| 24 | commands/status.c \ |
| 25 | commands/metadata.c \ |
| 26 | commands/regenerate.c \ |
| 27 | commands/help.c \ |
| 28 | commands/rotate.c \ |
| 29 | commands/enable_rotation.c \ |
| 30 | commands/disable_rotation.c \ |
| 31 | commands/clear.c \ |
| 32 | loglevel.c loglevel.h \ |
| 33 | commands/add_trigger.c \ |
| 34 | commands/list_triggers.c \ |
| 35 | commands/remove_trigger.c \ |
| 36 | utils.c utils.h lttng.c \ |
| 37 | uprobe.c uprobe.h |
| 38 | |
| 39 | lttng_CFLAGS = $(AM_CFLAGS) $(POPT_CFLAGS) |
| 40 | |
| 41 | lttng_LDADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ |
| 42 | $(top_builddir)/src/common/libcommon.la \ |
| 43 | $(top_builddir)/src/common/config/libconfig.la \ |
| 44 | $(top_builddir)/src/common/string-utils/libstring-utils.la \ |
| 45 | $(top_builddir)/src/common/filter/libfilter.la \ |
| 46 | $(top_builddir)/src/common/argpar/libargpar.la \ |
| 47 | $(POPT_LIBS) |