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 element.c device.c network.c connection.c \
12 manager.c profile.c service.c agent.c \
13 security.c resolver.c ipconfig.c notifier.c \
14 storage.c ipv4.c detect.c rtnl.c dbus.c
17 connmand_SOURCES += udev.c
20 rulesdir = @UDEV_DATADIR@
22 rules_DATA = 92-connman.rules
26 connmand_LDADD = @GDBUS_LIBS@ @GLIB_LIBS@ @GTHREAD_LIBS@ @UDEV_LIBS@ -ldl
28 connmand_LDFLAGS = -Wl,--export-dynamic -Wl,--version-script=connman.ver
30 connmand_DEPENDENCIES = connman.ver
32 CLEANFILES = connman.ver connman.exp connman.conf 92-connman.rules
34 statedir = $(localstatedir)/run/connman
36 storagedir = $(localstatedir)/lib/connman
39 plugindir = $(abs_top_srcdir)/plugins/.libs
41 plugindir = $(libdir)/connman/plugins
44 AM_CFLAGS = @UDEV_CFLAGS@ @GTHREAD_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ \
45 -DSTATEDIR=\""$(statedir)"\" \
46 -DPLUGINDIR=\""$(plugindir)"\" \
47 -DSTORAGEDIR=\""$(storagedir)\""
49 INCLUDES = -I$(top_builddir)/include
51 EXTRA_DIST = connman-dbus.conf connman-polkit.conf connman.rules
53 MAINTAINERCLEANFILES = Makefile.in
55 connman.exp: $(connmand_OBJECTS)
56 nm -B *.o | awk '{ print $$3 }' | sort -u | grep -E -e '^connman_' > $@
58 connman.ver: connman.exp
60 cat $< | sed -e "s/\(.*\)/\1;/" >> $@
61 echo "local: *; };" >> $@
63 connman.conf: connman-dbus.conf connman-polkit.conf
65 cp $(top_srcdir)/src/connman-polkit.conf $@
67 cp $(top_srcdir)/src/connman-dbus.conf $@
70 92-connman.rules: connman.rules