X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2FMakefile.am;h=1d153e7a72add99f08653e3803cca6fef5a92edd;hb=6a5596ac51788ca040b88b98e59c8db42a5a160a;hp=34c47dfcfae4305ee4dd8a488a3e3f3b7c24a603;hpb=10a8a2237343699e3923d87e24dbf2d7fe225377;p=lttng-tools.git diff --git a/src/bin/lttng/Makefile.am b/src/bin/lttng/Makefile.am index 34c47dfcf..1d153e7a7 100644 --- a/src/bin/lttng/Makefile.am +++ b/src/bin/lttng/Makefile.am @@ -1,14 +1,48 @@ -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.h conf.cpp conf.h 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.h \ + commands/add_trigger.cpp \ + commands/list_triggers.cpp \ + commands/remove_trigger.cpp \ + utils.cpp utils.h lttng.cpp \ + uprobe.cpp uprobe.h + +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-gpl.la \ + $(top_builddir)/src/common/config/libconfig.la \ + $(top_builddir)/src/common/string-utils/libstring-utils.la \ + $(top_builddir)/src/common/filter/libfilter.la \ + $(top_builddir)/src/common/argpar-utils/libargpar-utils.la \ + $(top_builddir)/src/common/argpar/libargpar.la \ + $(POPT_LIBS)