From 0d68e70bb86132a935e1521f3bf430f404f91afe Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 12 Jan 2007 00:49:27 +0000 Subject: Allow compilation against GLib --- test/Makefile.am | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/Makefile.am b/test/Makefile.am index 7b1f0713..93ad39b9 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,4 +1,12 @@ +if GLIB +glib_cflags = @GLIB_CFLAGS@ +glib_ldadd = @GLIB_LIBS@ +else +glib_cflags = +glib_ldadd = +endif + if TEST sbin_PROGRAMS = hciemu @@ -6,7 +14,7 @@ bin_PROGRAMS = l2test rctest noinst_PROGRAMS = sdptest scotest attest hstest bdaddr sttest -hciemu_LDADD = @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a +hciemu_LDADD = $(glib_ldadd) @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a l2test_LDADD = @BLUEZ_LIBS@ @@ -28,7 +36,7 @@ sttest_LDADD = @BLUEZ_LIBS@ noinst_MANS = bdaddr.8 -AM_CFLAGS = @BLUEZ_CFLAGS@ +AM_CFLAGS = @BLUEZ_CFLAGS@ $(glib_cflags) endif INCLUDES = -I$(top_srcdir)/common -- cgit