nobase_include_HEADERS = ust/immediate.h ust/kernelcompat.h ust/marker.h \
- ust/tracepoint.h
+ ust/tracepoint.h ust/processor.h
noinst_HEADERS = share.h usterr.h
-AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_builddir)/libust
+AM_CPPFLAGS = -I$(top_srcdir)/include
lib_LTLIBRARIES = libustjava.la
libustjava_la_SOURCES = UST.c UST.h
-noinst_DATA = UST.java
+dist_noinst_DATA = UST.java
libustjava_la_LIBADD = -lc -L$(top_builddir)/libust/.libs -lust
all: UST.class UST.h
rm -rf UST.h UST.class
UST.class: UST.java
- javac UST.java
+ javac -d "$(builddir)" "$(srcdir)/UST.java"
UST.h:
javah -jni UST
-AM_CPPFLAGS = -I$(top_builddir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include
lib_LTLIBRARIES = libinterfork.la
libinterfork_la_SOURCES = interfork.c
-AM_CPPFLAGS = -I$(top_builddir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include
lib_LTLIBRARIES = libmallocwrap.la
libmallocwrap_la_SOURCES = mallocwrap.c
-AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_builddir)/libustcomm
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libustcomm
lib_LTLIBRARIES = libust.la
libust_la_SOURCES = buffer.h marker.c tracepoint.c 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
-AM_CPPFLAGS = -I$(top_builddir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include
noinst_PROGRAMS = basic
basic_SOURCES = basic.c
-AM_CPPFLAGS = -I$(top_builddir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include
noinst_PROGRAMS = basic_long
basic_long_SOURCES = basic_long.c
-AM_CPPFLAGS = -I$(top_builddir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include
noinst_PROGRAMS = fork fork2
fork_SOURCES = fork.c
-AM_CPPFLAGS = -I$(top_builddir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include
noinst_PROGRAMS = hello
hello_SOURCES = hello.c tp.c tp.h
-AM_CPPFLAGS = -I$(top_builddir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include
noinst_PROGRAMS = hello2
hello2_SOURCES = hello2.c
-AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_builddir)/libustcomm \
- -I$(top_builddir)/libustcmd $(KCOMPAT_CFLAGS)
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libustcomm \
+ -I$(top_srcdir)/libustcmd $(KCOMPAT_CFLAGS)
bin_PROGRAMS = ustctl
-ustctl_SOURCES = ustctl.c $(top_builddir)/libustcomm/ustcomm.c $(top_builddir)/libustcomm/ustcomm.h $(top_builddir)/libustcmd/ustcmd.c $(top_builddir)/libustcmd/ustcmd.h
+ustctl_SOURCES = ustctl.c $(top_srcdir)/libustcomm/ustcomm.c $(top_srcdir)/libustcomm/ustcomm.h $(top_srcdir)/libustcmd/ustcmd.c $(top_srcdir)/libustcmd/ustcmd.h
ustctl_CFLAGS = -DUST_COMPONENT=ustctl
-AM_CPPFLAGS = -I$(top_builddir)/libust -I$(top_builddir)/libustcomm \
- -I$(top_builddir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/libust -I$(top_srcdir)/libustcomm \
+ -I$(top_srcdir)/include
bin_PROGRAMS = ustd
-ustd_SOURCES = lowlevel.c ustd.c ustd.h $(top_builddir)/libustcomm/ustcomm.c $(top_builddir)/libustcomm/ustcomm.h
+ustd_SOURCES = lowlevel.c ustd.c ustd.h $(top_srcdir)/libustcomm/ustcomm.c $(top_srcdir)/libustcomm/ustcomm.h
ustd_LDFLAGS = -lpthread
ustd_CFLAGS = -DUST_COMPONENT=ustd