noinst_PROGRAMS = trace_event_test
trace_event_test_SOURCES = trace_event_test.c trace_event_test.h
-trace_event_test_LDADD = $(top_builddir)/libust/libust.la $(top_builddir)/libust-initializer.o
+trace_event_test_LDADD = $(top_builddir)/libust/libust.la \
+ $(top_builddir)/libust-initializer.o -lpthread -lrt
-CFLAGS_trace_event_test.o = -I$(src)
+CFLAGS_trace_event_test.o = -I$(src) $(AM_CFLAGS)
noinst_SCRIPTS = run
EXTRA_DIST = run