Add skeleton for task handling framework
[platform/upstream/connman.git] / src / Makefile.am
1
2 if DATAFILES
3 dbusdir = @DBUS_DATADIR@
4
5 dbus_DATA = connman.conf
6 endif
7
8 sbin_PROGRAMS = connmand
9
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
15
16 if UDEV
17 connmand_SOURCES += udev.c
18 else
19 connmand_SOURCES += udev-compat.c
20 endif
21
22 connmand_LDADD = $(top_builddir)/plugins/libbuiltin.la \
23                 @GDBUS_LIBS@ @GLIB_LIBS@ @GTHREAD_LIBS@ @UDEV_LIBS@ -ldl
24
25 connmand_LDFLAGS = -Wl,--export-dynamic -Wl,--version-script=connman.ver
26
27 connmand_DEPENDENCIES = connman.ver $(top_builddir)/plugins/libbuiltin.la
28
29 CLEANFILES = connman.ver connman.exp connman.conf
30
31 statedir = $(localstatedir)/run/connman
32
33 storagedir = $(localstatedir)/lib/connman
34
35 if MAINTAINER_MODE
36 plugindir = $(abs_top_srcdir)/plugins/.libs
37 else
38 plugindir = $(libdir)/connman/plugins
39 endif
40
41 AM_CFLAGS = @UDEV_CFLAGS@ @GTHREAD_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ \
42                                         -DSTATEDIR=\""$(statedir)"\" \
43                                         -DPLUGINDIR=\""$(plugindir)"\" \
44                                         -DSTORAGEDIR=\""$(storagedir)\""
45
46 INCLUDES = -I$(top_builddir)/include -I$(top_builddir)/plugins
47
48 EXTRA_DIST = connman-dbus.conf connman-polkit.conf
49
50 MAINTAINERCLEANFILES = Makefile.in
51
52 connman.exp: $(connmand_OBJECTS)
53         nm -B *.o | awk '{ print $$3 }' | sort -u | grep -E -e '^connman_' > $@
54
55 connman.ver: connman.exp
56         echo "{ global:" > $@
57         cat $< | sed -e "s/\(.*\)/\1;/" >> $@
58         echo "local: *; };" >> $@
59
60 connman.conf: connman-dbus.conf connman-polkit.conf
61 if POLKIT
62         cp $(top_srcdir)/src/connman-polkit.conf $@
63 else
64         cp $(top_srcdir)/src/connman-dbus.conf $@
65 endif