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 profile.c element.c device.c network.c connection.c \
12 security.c resolver.c notifier.c storage.c manager.c \
13 agent.c ipv4.c detect.c rtnl.c dbus.c
16 connmand_SOURCES += udev.c
19 rulesdir = @UDEV_DATADIR@
21 rules_DATA = 92-connman.rules
25 connmand_LDADD = @GDBUS_LIBS@ @GLIB_LIBS@ @GTHREAD_LIBS@ @UDEV_LIBS@ -ldl
27 connmand_LDFLAGS = -Wl,--export-dynamic -Wl,--version-script=connman.ver
29 connmand_DEPENDENCIES = connman.ver
31 CLEANFILES = connman.ver connman.exp connman.conf 92-connman.rules
33 statedir = $(localstatedir)/run/connman
35 storagedir = $(localstatedir)/lib/connman
38 plugindir = $(abs_top_srcdir)/plugins/.libs
40 plugindir = $(libdir)/connman/plugins
43 AM_CFLAGS = @UDEV_CFLAGS@ @GTHREAD_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ \
44 -DSTATEDIR=\""$(statedir)"\" \
45 -DPLUGINDIR=\""$(plugindir)"\" \
46 -DSTORAGEDIR=\""$(storagedir)\""
48 INCLUDES = -I$(top_builddir)/include
50 EXTRA_DIST = connman-dbus.conf connman-polkit.conf connman.rules
52 MAINTAINERCLEANFILES = Makefile.in
54 connman.exp: $(connmand_OBJECTS)
55 nm -B *.o | awk '{ print $$3 }' | sort -u | grep -E -e '^connman_' > $@
57 connman.ver: connman.exp
59 cat $< | sed -e "s/\(.*\)/\1;/" >> $@
60 echo "local: *; };" >> $@
62 connman.conf: connman-dbus.conf connman-polkit.conf
64 cp $(top_srcdir)/src/connman-polkit.conf $@
66 cp $(top_srcdir)/src/connman-dbus.conf $@
69 92-connman.rules: connman.rules