summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--transfer/Makefile.am12
1 files changed, 10 insertions, 2 deletions
diff --git a/transfer/Makefile.am b/transfer/Makefile.am
index 83a88b54..932ddd60 100644
--- a/transfer/Makefile.am
+++ b/transfer/Makefile.am
@@ -6,15 +6,23 @@ dbusdir = $(sysconfdir)/dbus-1/system.d
dbus_DATA = bluetooth-transfer.conf
endif
+if GLIB
+glib_cflags = @GLIB_CFLAGS@
+glib_ldadd = @GLIB_LIBS@
+else
+glib_cflags =
+glib_ldadd =
+endif
+
noinst_PROGRAMS = transferd
transferd_SOURCES = main.c
-LDADD = $(top_builddir)/common/libhelper.a \
+LDADD = $(top_builddir)/common/libhelper.a $(glib_ldadd) \
@DBUS_LIBS@ @OPENOBEX_LIBS@ @BLUEZ_LIBS@
endif
-AM_CFLAGS = @BLUEZ_CFLAGS@ @OPENOBEX_CFLAGS@ @DBUS_CFLAGS@
+AM_CFLAGS = @BLUEZ_CFLAGS@ @OPENOBEX_CFLAGS@ @DBUS_CFLAGS@ $(glib_cflags)
INCLUDES = -I$(top_srcdir)/common