Create PolicyKit context and register security callbacks
[framework/connectivity/connman.git] / plugins / Makefile.am
1
2 plugindir = $(libdir)/connman/plugins
3
4 plugin_LTLIBRARIES = rtnllink.la ethernet.la wifi.la bluetooth.la \
5                         dhclient.la ipv4.la resolvconf.la resolvfile.la
6
7 rtnllink_la_SOURCES = rtnllink.c
8
9 ethernet_la_SOURCES = ethernet.c
10
11 wifi_la_SOURCES = wifi.c supplicant.h supplicant.c
12
13 bluetooth_la_SOURCES = bluetooth.c
14 bluetooth_la_LIBADD = @GDBUS_LIBS@
15
16 dhclient_la_SOURCES = dhclient.c
17 dhclient_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DDHCLIENT=\"@DHCLIENT@\" \
18                 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
19
20 ipv4_la_SOURCES = ipv4.c
21
22 resolvconf_la_SOURCES = resolvconf.c
23
24 resolvfile_la_SOURCES = resolvfile.c
25
26 if HAL
27 plugin_LTLIBRARIES += hal.la
28
29 hal_la_SOURCES = hal.c
30 hal_la_LIBADD = @HAL_LIBS@
31 hal_la_CFLAGS = @GLIB_CFLAGS@ @HAL_CFLAGS@
32 endif
33
34 if POLKIT
35 plugin_LTLIBRARIES += polkit.la
36
37 polkit_la_SOURCES = polkit.c
38 polkit_la_LIBADD = @POLKIT_LIBS@ @GLIB_LIBS@
39 polkit_la_CFLAGS = @GLIB_CFLAGS@ @POLKIT_CFLAGS@
40 endif
41
42 AM_LDFLAGS = -no-undefined -module -avoid-version \
43                                 -export-symbols-regex connman_plugin_desc
44
45 statedir = $(localstatedir)/run/connman
46
47 if MAINTAINER_MODE
48 scriptdir = $(abs_top_srcdir)/scripts
49 else
50 scriptdir = $(libdir)/connman/scripts
51 endif
52
53 AM_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@
54
55 INCLUDES = -I$(top_builddir)/include
56
57 MAINTAINERCLEANFILES = Makefile.in