3 dbusdir = @DBUS_DATADIR@
5 dbus_DATA = connman.conf
8 sbin_PROGRAMS = connmand
10 connmand_SOURCES = main.c connman.h log.c selftest.c error.c plugin.c \
11 task.c element.c device.c network.c connection.c \
12 manager.c profile.c service.c agent.c notifier.c \
13 provider.c security.c resolver.c ipconfig.c ipv4.c \
14 storage.c rfkill.c rtnl.c inet.c wifi.c dbus.c
17 connmand_SOURCES += udev.c
19 connmand_SOURCES += udev-compat.c
22 connmand_LDADD = $(top_builddir)/plugins/libbuiltin.la \
23 @GDBUS_LIBS@ @GLIB_LIBS@ @GTHREAD_LIBS@ @UDEV_LIBS@ -ldl
25 connmand_LDFLAGS = -Wl,--export-dynamic -Wl,--version-script=connman.ver
27 connmand_DEPENDENCIES = connman.ver $(top_builddir)/plugins/libbuiltin.la
29 CLEANFILES = connman.ver connman.exp connman.conf
31 statedir = $(localstatedir)/run/connman
33 storagedir = $(localstatedir)/lib/connman
36 plugindir = $(abs_top_srcdir)/plugins/.libs
38 plugindir = $(libdir)/connman/plugins
41 AM_CFLAGS = @UDEV_CFLAGS@ @GTHREAD_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ \
42 -DSTATEDIR=\""$(statedir)"\" \
43 -DPLUGINDIR=\""$(plugindir)"\" \
44 -DSTORAGEDIR=\""$(storagedir)\""
46 INCLUDES = -I$(top_builddir)/include -I$(top_builddir)/plugins
48 EXTRA_DIST = connman-dbus.conf connman-polkit.conf
50 MAINTAINERCLEANFILES = Makefile.in
52 connman.exp: $(connmand_OBJECTS)
53 nm -B *.o | awk '{ print $$3 }' | sort -u | grep -E -e '^connman_' > $@
55 connman.ver: connman.exp
57 cat $< | sed -e "s/\(.*\)/\1;/" >> $@
58 echo "local: *; };" >> $@
60 connman.conf: connman-dbus.conf connman-polkit.conf
62 cp $(top_srcdir)/src/connman-polkit.conf $@
64 cp $(top_srcdir)/src/connman-dbus.conf $@