lttng \
ltt-kconsumerd \
ltt-sessiond \
- tests
+ tests \
+ include
-AC_INIT([lttng-tools], [0.0.1], [david.goulet@polymtl.ca], [http://lttng.org])
+AC_INIT([lttng-tools], [0.0.1], [david.goulet@polymtl.ca], ,[http://lttng.org])
AC_CONFIG_AUX_DIR([config])
+AC_CANONICAL_TARGET
+AC_CANONICAL_HOST
AC_CONFIG_MACRO_DIR([config])
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([foreign])
AM_SILENT_RULES([yes])
AC_CHECK_HEADERS([ \
[AC_MSG_ERROR([liburcu 0.5.4 or newer is needed])], [[#include <urcu/list.h>]]
)
-CFLAGS="-Wall $CFLAGS -g -fno-strict-aliasing"
-
AC_PROG_CC
AC_PROG_LIBTOOL
+CFLAGS="-Wall $CFLAGS -g -fno-strict-aliasing"
+
+DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir)"
+
+lttngincludedir="${includedir}/lttng"
+
+AC_SUBST(lttngincludedir)
+AC_SUBST(DEFAULT_INCLUDES)
+
AC_CONFIG_FILES([
Makefile
include/Makefile
-#nobase_include_HEADERS = lttng/lttng.h
+lttnginclude_HEADERS = lttng/lttng.h
noinst_HEADERS = lttngerr.h lttng-kernel.h lttng-kconsumerd.h lttng-share.h
noinst_LTLIBRARIES = libkernelctl.la
-libkernelctl_la_SOURCES = libkernelctl.c
+libkernelctl_la_SOURCES = libkernelctl.c libkernelctl.h kernel-ioctl.h
lib_LTLIBRARIES = liblttkconsumerd.la
-liblttkconsumerd_la_SOURCES = liblttkconsumerd.c
+liblttkconsumerd_la_SOURCES = liblttkconsumerd.c liblttkconsumerd.h
liblttkconsumerd_la_LIBADD = \
$(top_builddir)/libkernelctl/libkernelctl.la \
noinst_LTLIBRARIES = liblttsessiondcomm.la
liblttsessiondcomm_la_SOURCES = \
+ liblttsessiondcomm.h \
liblttsessiondcomm.c
bin_PROGRAMS = ltt-sessiond
-ltt_sessiond_SOURCES = utils.c trace.c session.c traceable-app.c ust-ctl.c kernel-ctl.c main.c
+ltt_sessiond_SOURCES = utils.c trace.c session.c traceable-app.c ust-ctl.c kernel-ctl.c main.c \
+ utils.h trace.h session.h traceable-app.h ust-ctl.h kernel-ctl.h ltt-sessiond.h
ltt_sessiond_LDADD = \
$(top_builddir)/liblttsessiondcomm/liblttsessiondcomm.la \
bin_PROGRAMS = lttng
-lttng_SOURCES = conf.c commands/start.c \
+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 \
- utils.c lttng.c
+ utils.c utils.h lttng.c
lttng_LDADD = \
$(top_builddir)/liblttngctl/liblttngctl.la
#include <sys/types.h>
#include <unistd.h>
-#include "cmd.h"
-#include "conf.h"
-#include "utils.h"
+#include "../cmd.h"
+#include "../conf.h"
+#include "../utils.h"
static char *opt_event_name;
static char *opt_channel_name;
#include <time.h>
#include <unistd.h>
-#include "cmd.h"
-#include "conf.h"
-#include "utils.h"
+#include "../cmd.h"
+#include "../conf.h"
+#include "../utils.h"
static char *opt_output_path;
static char *opt_session_name;
#include <sys/types.h>
#include <unistd.h>
-#include "cmd.h"
-#include "conf.h"
-#include "utils.h"
+#include "../cmd.h"
+#include "../conf.h"
+#include "../utils.h"
static char *opt_session_name;
#include <sys/types.h>
#include <unistd.h>
-#include "cmd.h"
-#include "conf.h"
-#include "utils.h"
+#include "../cmd.h"
+#include "../conf.h"
+#include "../utils.h"
static char *opt_channels;
static char *opt_kernel;
#include <sys/types.h>
#include <unistd.h>
-#include "cmd.h"
-#include "conf.h"
-#include "utils.h"
+#include "../cmd.h"
+#include "../conf.h"
+#include "../utils.h"
static char *opt_event_list;
static char *opt_kernel;
#include <sys/types.h>
#include <unistd.h>
-#include "cmd.h"
-#include "conf.h"
-#include "utils.h"
+#include "../cmd.h"
+#include "../conf.h"
+#include "../utils.h"
static char *opt_channels;
static char *opt_kernel;
#include <sys/types.h>
#include <unistd.h>
-#include "cmd.h"
-#include "conf.h"
-#include "utils.h"
+#include "../cmd.h"
+#include "../conf.h"
+#include "../utils.h"
static char *opt_event_list;
static int opt_event_type;
#include <stdlib.h>
#include <string.h>
-#include "cmd.h"
+#include "../cmd.h"
static int opt_pid;
static int opt_channels;
#include <sys/types.h>
#include <unistd.h>
-#include "cmd.h"
-#include "conf.h"
-#include "utils.h"
+#include "../cmd.h"
+#include "../conf.h"
+#include "../utils.h"
static char *opt_session_name;
#include <sys/types.h>
#include <unistd.h>
-#include "cmd.h"
-#include "conf.h"
-#include "utils.h"
+#include "../cmd.h"
+#include "../conf.h"
+#include "../utils.h"
static char *opt_session_name;
#include <sys/types.h>
#include <unistd.h>
-#include "cmd.h"
-#include "conf.h"
-#include "utils.h"
+#include "../cmd.h"
+#include "../conf.h"
+#include "../utils.h"
static char *opt_session_name;
#include <sys/types.h>
#include <unistd.h>
-#include "cmd.h"
-#include "conf.h"
-#include "utils.h"
+#include "../cmd.h"
enum {
OPT_HELP = 1,