71ae0cf959e864da3443ee13ec5176997875f7ba
[framework/connectivity/connman.git] / plugins / Makefile.am
1
2 plugindir = $(libdir)/connman/plugins
3
4 plugin_LTLIBRARIES = ipv4.la
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 ipv4_la_SOURCES = ipv4.c inet.h inet.c
57
58 if UDHCP
59 plugin_LTLIBRARIES += udhcp.la
60
61 udhcp_la_SOURCES = udhcp.c inet.h inet.c task.h task.c
62 udhcp_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DUDHCPC=\"@UDHCPC@\" \
63                 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
64 endif
65
66 if DHCLIENT
67 plugin_LTLIBRARIES += dhclient.la
68
69 dhclient_la_SOURCES = dhclient.c inet.h inet.c
70 dhclient_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DDHCLIENT=\"@DHCLIENT@\" \
71                 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
72 endif
73
74 if PPPD
75 plugin_LTLIBRARIES += pppd.la
76
77 pppd_la_SOURCES = pppd.c
78 pppd_la_CFLAGS = @GLIB_CFLAGS@ -DPPPD=\"@PPPD@\"
79 endif
80
81 if RESOLVCONF
82 plugin_LTLIBRARIES += resolvconf.la
83
84 resolvconf_la_SOURCES = resolvconf.c
85 resolvconf_la_CFLAGS = @GLIB_CFLAGS@ -DRESOLVCONF=\"@RESOLVCONF@\"
86 endif
87
88 if DNSPROXY
89 plugin_LTLIBRARIES += dnsproxy.la
90
91 dnsproxy_la_SOURCES = dnsproxy.c
92 endif
93
94 if POLKIT
95 plugin_LTLIBRARIES += polkit.la
96
97 polkit_la_SOURCES = polkit.c
98 polkit_la_LIBADD = @POLKIT_LIBS@ @GLIB_LIBS@
99 polkit_la_CFLAGS = @GLIB_CFLAGS@ @POLKIT_CFLAGS@
100
101 policydir = $(datadir)/PolicyKit/policy
102
103 policy_DATA = connman.policy
104 endif
105
106 if FAKE
107 plugin_LTLIBRARIES += fake.la
108
109 fake_la_SOURCES = fake.c
110 endif
111
112 AM_LDFLAGS = -no-undefined -module -avoid-version \
113                                 -export-symbols-regex connman_plugin_desc
114
115 statedir = $(localstatedir)/run/connman
116
117 if MAINTAINER_MODE
118 scriptdir = $(abs_top_srcdir)/scripts
119 else
120 scriptdir = $(libdir)/connman/scripts
121 endif
122
123 AM_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@
124
125 INCLUDES = -I$(top_builddir)/include
126
127 EXTRA_DIST = connman.policy
128
129 MAINTAINERCLEANFILES = Makefile.in