+ACLOCAL_AMFLAGS = -I m4
SUBDIRS = libust hello libmallocwrap ustd ust
+
+EXTRA_DIST = share/kernelcompat.h doc
AC_INIT([ust], [0.0], [pierre-marc dot fournier at polymtl dot ca])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
-AM_INIT_AUTOMAKE([0.0 foreign])
+AM_INIT_AUTOMAKE([0.0 foreign dist-bzip2 no-dist-gzip])
AC_CONFIG_SRCDIR([ust/ust.c])
AC_CONFIG_HEADERS([config.h])
noinst_PROGRAMS = hello
hello_SOURCES = hello.c tp.c tp.h
hello_LDADD = $(top_builddir)/libust/libust.la $(URCU_LIBS)
+
+noinst_SCRIPTS = run
+EXTRA_DIST = run
lib_LTLIBRARIES = libmallocwrap.la
libmallocwrap_la_SOURCES = mallocwrap.c
libmallocwrap_la_LIBADD = -ldl
+
noinst_SCRIPTS = run
+EXTRA_DIST = run
$(KCOMPAT_CFLAGS) $(URCU_CFLAGS)
lib_LTLIBRARIES = libust.la
-libust_la_SOURCES = marker.c marker.h tracepoint.c tracepoint.h immediate.h channels.c channels.h marker-control.c marker-control.h relay.c relay.h tracer.c tracer.h tracercore.c tracercore.h serialize.c tracectl.c $(top_builddir)/libustcomm/ustcomm.c $(top_builddir)/share/usterr.c $(top_builddir)/share/usterr.h
+libust_la_SOURCES = marker.c marker.h tracepoint.c tracepoint.h immediate.h channels.c channels.h marker-control.c marker-control.h relay.c relay.h tracer.c tracer.h tracercore.c tracercore.h serialize.c tracectl.c $(top_builddir)/libustcomm/ustcomm.c $(top_builddir)/share/usterr.c $(top_builddir)/share/usterr.h localerr.h
libust_la_LDFLAGS = -no-undefined -version-info 0:0:0
libust_la_LIBADD = $(URCU_LIBS) -lpthread
bin_PROGRAMS = ust
-ust_SOURCES = ust.c $(top_builddir)/libustcomm/ustcomm.c $(top_builddir)/libustcomm/ustcomm.h
+ust_SOURCES = ust.c $(top_builddir)/libustcomm/ustcomm.c $(top_builddir)/libustcomm/ustcomm.h localerr.h
#INCLUDES = -I$(top_builddir)/share
#INCLUDES += -I@URCU_PATH@