Remove connman.policy and not polkit.policy on cleanup
[connman] / plugins / Makefile.am
1
2 plugindir = $(libdir)/connman/plugins
3
4 plugin_LTLIBRARIES =
5
6 if LOOPBACK
7 plugin_LTLIBRARIES += loopback.la
8
9 loopback_la_SOURCES = loopback.c
10 endif
11
12 if ETHERNET
13 plugin_LTLIBRARIES += ethernet.la
14
15 ethernet_la_SOURCES = ethernet.c inet.h inet.c
16 endif
17
18 if WIFI
19 plugin_LTLIBRARIES += wifi.la
20
21 wifi_la_SOURCES = wifi.c inet.h inet.c supplicant.h supplicant.c
22 wifi_la_LIBADD = @GDBUS_LIBS@
23 endif
24
25 if WIMAX
26 plugin_LTLIBRARIES += wimax.la
27
28 wimax_la_SOURCES = wimax.c
29 endif
30
31 if BLUETOOTH
32 plugin_LTLIBRARIES += bluetooth.la
33
34 bluetooth_la_SOURCES = bluetooth.c inet.h inet.c
35 bluetooth_la_LIBADD = @GDBUS_LIBS@
36 endif
37
38 if NOVATEL
39 plugin_LTLIBRARIES += novatel.la
40
41 novatel_la_SOURCES = novatel.c modem.h modem.c
42 endif
43
44 if HUAWEI
45 plugin_LTLIBRARIES += huawei.la
46
47 huawei_la_SOURCES = huawei.c modem.h modem.c
48 endif
49
50 if HSO
51 plugin_LTLIBRARIES += hso.la
52
53 hso_la_SOURCES = hso.c modem.h modem.c
54 endif
55
56 if UDHCP
57 plugin_LTLIBRARIES += udhcp.la
58
59 udhcp_la_SOURCES = udhcp.c inet.h inet.c task.h task.c
60 udhcp_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DUDHCPC=\"@UDHCPC@\" \
61                 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
62 endif
63
64 if DHCLIENT
65 plugin_LTLIBRARIES += dhclient.la
66
67 dhclient_la_SOURCES = dhclient.c inet.h inet.c
68 dhclient_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DDHCLIENT=\"@DHCLIENT@\" \
69                 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
70 endif
71
72 if PPPD
73 plugin_LTLIBRARIES += pppd.la
74
75 pppd_la_SOURCES = pppd.c
76 pppd_la_CFLAGS = @GLIB_CFLAGS@ -DPPPD=\"@PPPD@\"
77 endif
78
79 if RESOLVCONF
80 plugin_LTLIBRARIES += resolvconf.la
81
82 resolvconf_la_SOURCES = resolvconf.c
83 resolvconf_la_CFLAGS = @GLIB_CFLAGS@ -DRESOLVCONF=\"@RESOLVCONF@\"
84 endif
85
86 if DNSPROXY
87 plugin_LTLIBRARIES += dnsproxy.la
88
89 dnsproxy_la_SOURCES = dnsproxy.c
90 endif
91
92 if POLKIT
93 plugin_LTLIBRARIES += polkit.la
94
95 polkit_la_SOURCES = polkit.c
96 polkit_la_LIBADD = @POLKIT_LIBS@ @GLIB_LIBS@
97 polkit_la_CFLAGS = @GLIB_CFLAGS@ @POLKIT_CFLAGS@
98
99 policydir = $(datadir)/PolicyKit/policy
100
101 policy_DATA = connman.policy
102 endif
103
104 if FAKE
105 plugin_LTLIBRARIES += fake.la
106
107 fake_la_SOURCES = fake.c
108 endif
109
110 AM_LDFLAGS = -no-undefined -module -avoid-version \
111                                 -export-symbols-regex connman_plugin_desc
112
113 statedir = $(localstatedir)/run/connman
114
115 if MAINTAINER_MODE
116 scriptdir = $(abs_top_srcdir)/scripts
117 else
118 scriptdir = $(libdir)/connman/scripts
119 endif
120
121 AM_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@
122
123 INCLUDES = -I$(top_builddir)/include
124
125 CLEANFILES = connman.policy
126
127 EXTRA_DIST = polkit.policy
128
129 MAINTAINERCLEANFILES = Makefile.in
130
131 connman.policy: polkit.policy
132         cp $< $@