X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2FMakefile.am;h=09c5171d8f99f7b055b4bf7c7f25a1d57426c3fa;hp=34c47dfcfae4305ee4dd8a488a3e3f3b7c24a603;hb=HEAD;hpb=10a8a2237343699e3923d87e24dbf2d7fe225377 diff --git a/src/bin/lttng/Makefile.am b/src/bin/lttng/Makefile.am index 34c47dfcf..e37183746 100644 --- a/src/bin/lttng/Makefile.am +++ b/src/bin/lttng/Makefile.am @@ -1,14 +1,50 @@ -AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src \ - -DINSTALL_BIN_PATH=\""$(bindir)"\" +# SPDX-License-Identifier: GPL-2.0-only + +AM_CPPFLAGS += -DINSTALL_BIN_PATH=\""$(bindir)"\" + +if EMBED_HELP +AM_CPPFLAGS += -I$(top_builddir)/doc/man +endif + +AUTOMAKE_OPTIONS = subdir-objects bin_PROGRAMS = lttng -lttng_SOURCES = cmd.h conf.c conf.h commands/start.c \ - commands/list.c commands/create.c commands/destroy.c \ - commands/stop.c commands/enable_events.c \ - commands/disable_events.c commands/enable_channels.c \ - commands/disable_channels.c commands/add_context.c \ - commands/set_session.c commands/version.c \ - commands/calibrate.c utils.c utils.h lttng.c +lttng_SOURCES = command.hpp conf.cpp conf.hpp commands/start.cpp \ + commands/list.cpp commands/create.cpp commands/destroy.cpp \ + commands/stop.cpp commands/enable_events.cpp \ + commands/disable_events.cpp commands/enable_channels.cpp \ + commands/disable_channels.cpp commands/add_context.cpp \ + commands/set_session.cpp commands/version.cpp \ + commands/view.cpp \ + commands/snapshot.cpp \ + commands/save.cpp \ + commands/load.cpp \ + commands/track-untrack.cpp \ + commands/status.cpp \ + commands/metadata.cpp \ + commands/regenerate.cpp \ + commands/help.cpp \ + commands/rotate.cpp \ + commands/enable_rotation.cpp \ + commands/disable_rotation.cpp \ + commands/clear.cpp \ + loglevel.cpp loglevel.hpp \ + commands/add_trigger.cpp \ + commands/list_triggers.cpp \ + commands/remove_trigger.cpp \ + utils.cpp utils.hpp lttng.cpp \ + uprobe.cpp uprobe.hpp \ + exception.hpp exception.cpp + +lttng_CXXFLAGS = $(AM_CXXFLAGS) $(POPT_CFLAGS) -lttng_LDADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la +lttng_LDADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ + $(top_builddir)/src/common/libcommon-lgpl.la \ + $(top_builddir)/src/common/libpath.la \ + $(top_builddir)/src/common/libconfig.la \ + $(top_builddir)/src/common/libstring-utils.la \ + $(top_builddir)/src/common/libfilter.la \ + $(top_builddir)/src/common/libargpar-utils.la \ + $(top_builddir)/src/common/libargpar.la \ + $(POPT_LIBS)