summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-15 10:49:43 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-15 10:49:43 +0000
commita567beac7aea3e557a436948572cb5fb5be91f42 (patch)
tree0fe14c5c74566b8d73bbcfa8e85529bff1fd95c1
parent4107ee837ae309c89cdb2684b7c53d5d88407e97 (diff)
Add compilation tweak for GLib support
-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