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