-SUBDIRS = libmarkers libtracectl libtracing
+SUBDIRS = libmarkers libtracectl libtracing hello libmallocwrap
#! /bin/sh
-aclocal \
-&& automake --gnu --add-missing \
-&& autoconf
+set -x
+aclocal -I config
+libtoolize --force --copy
+autoheader
+automake --add-missing --copy
+autoconf
+
# ust/Makefile
# ustd/Makefile])
-AC_CONFIG_FILES([Makefile libmarkers/Makefile libtracectl/Makefile libtracing/Makefile])
+AC_CONFIG_FILES([Makefile libmarkers/Makefile libtracectl/Makefile libtracing/Makefile hello/Makefile libmallocwrap/Makefile])
AC_OUTPUT
-lib_LTLIBRARIES = libmarkers.la
-libmarkers_la_SOURCES = marker.c tracepoint.c immediate.h jhash.h rcupdate.h marker.h tracepoint.h
+bin_PROGRAMS = hello
+hello_SOURCES = hello.c tp.c tp.h $(top_builddir)/share/kref.c
+hello_LDADD = $(top_builddir)/libmarkers/libmarkers.la $(top_builddir)/libtracectl/libtracectl.la $(top_builddir)/libtracing/libtracing.la @URCU_PATH@/liburcu.so
+##hello_LDFLAGS = -L$(top_builddir)/libmarkers
INCLUDES = -I$(top_builddir)/share
INCLUDES += -I@URCU_PATH@
INCLUDES += -I@KCOMPAT_PATH@
INCLUDES += -I$(top_builddir)/libtracing
+INCLUDES += -I$(top_builddir)/libmarkers
+INCLUDES += -I$(top_builddir)/libtracectl
+++ /dev/null
-all: libmallocwrap.so
-
-libmallocwrap.so: mallocwrap.c
- gcc -shared -fPIC -g -I../share -I../libmarkers -I../libtracing -I../libtracectl -L../libmarkers -L../libtracing -L../libtracectl $(CFLAGS) -ldl -lmarkers -ltracectl -ltracing -o libmallocwrap.so mallocwrap.c
-
-.PHONY: libmallocwrap.so
#!/bin/sh
-LD_VERBOSE=1 LD_LIBRARY_PATH=.:../libtracing:../libmarkers:../libtracectl LD_PRELOAD=libmallocwrap.so $1
+LD_VERBOSE=1 LD_LIBRARY_PATH=.:../libtracing/.libs:../libmarkers/.libs:../libtracectl/.libs LD_PRELOAD=libmallocwrap.so $1
lib_LTLIBRARIES = libmarkers.la
libmarkers_la_SOURCES = marker.c tracepoint.c immediate.h jhash.h rcupdate.h marker.h tracepoint.h
+libmarkers_la_LIBADD = @URCU_PATH@/liburcu.so
INCLUDES = -I$(top_builddir)/share
INCLUDES += -I@URCU_PATH@