Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
SUBDIRS = .
-AM_CFLAGS=-g -Wall -lurcu -lurcu-cds
+AM_CFLAGS = -g -Wall
+AM_LDFLAGS = -lurcu -lurcu-cds
EXTRA_DIST = runall.sh utils.sh lttng/runall.sh lttng/run-kernel-tests.sh
AM_LDFLAGS = -llttng-ust
if LTTNG_TOOLS_BUILD_WITH_LIBDL
-AM_CFLAGS += -ldl
+AM_LDFLAGS += -ldl
endif
if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
-AM_CFLAGS += -lc
+AM_LDFLAGS += -lc
endif
noinst_PROGRAMS = gen-nevents
AM_LDFLAGS = -llttng-ust
if LTTNG_TOOLS_BUILD_WITH_LIBDL
-AM_CFLAGS += -ldl
+AM_LDFLAGS += -ldl
endif
if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
-AM_CFLAGS += -lc
+AM_LDFLAGS += -lc
endif
noinst_PROGRAMS = gen-events-time