if TOOLS
-bin_PROGRAMS += tools/rfcomm tools/l2ping \
+bin_PROGRAMS += tools/rfcomm tools/l2ping tools/l2test \
tools/hcitool tools/sdptool tools/ciptool
bin_PROGRAMS += tools/hciattach tools/hciconfig
tools_l2ping_LDADD = lib/libbluetooth-private.la
+tools_l2test_LDADD = lib/libbluetooth-private.la
+
tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
tools/hciattach_st.c \
tools/hciattach_ti.c \
if TEST
-bin_PROGRAMS += test/hciemu test/l2test test/rctest
+bin_PROGRAMS += test/hciemu test/rctest
noinst_PROGRAMS += test/gaptest test/sdptest test/scotest \
test/lmptest test/bdaddr test/agent \
test_hciemu_LDADD = lib/libbluetooth-private.la
-test_l2test_LDADD = lib/libbluetooth-private.la
-
test_rctest_LDADD = lib/libbluetooth-private.la
test_gaptest_LDADD = @DBUS_LIBS@