Add option for selecting Ethernet support
[connman] / plugins / Makefile.am
1
2 plugindir = $(libdir)/connman/plugins
3
4 plugin_LTLIBRARIES = bluetooth.la 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 bluetooth_la_SOURCES = bluetooth.c inet.h inet.c
26 bluetooth_la_LIBADD = @GDBUS_LIBS@
27
28 if NOVATEL
29 plugin_LTLIBRARIES += novatel.la
30
31 novatel_la_SOURCES = novatel.c modem.h modem.c
32 endif
33
34 if HUAWEI
35 plugin_LTLIBRARIES += huawei.la
36
37 huawei_la_SOURCES = huawei.c modem.h modem.c
38 endif
39
40 if HSO
41 plugin_LTLIBRARIES += hso.la
42
43 hso_la_SOURCES = hso.c modem.h modem.c
44 endif
45
46 ipv4_la_SOURCES = ipv4.c inet.h inet.c
47
48 if UDHCP
49 plugin_LTLIBRARIES += udhcp.la
50
51 udhcp_la_SOURCES = udhcp.c inet.h inet.c task.h task.c
52 udhcp_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DUDHCPC=\"@UDHCPC@\" \
53                 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
54 endif
55
56 if DHCLIENT
57 plugin_LTLIBRARIES += dhclient.la
58
59 dhclient_la_SOURCES = dhclient.c inet.h inet.c
60 dhclient_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DDHCLIENT=\"@DHCLIENT@\" \
61                 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
62 endif
63
64 if PPPD
65 plugin_LTLIBRARIES += pppd.la
66
67 pppd_la_SOURCES = pppd.c
68 pppd_la_CFLAGS = @GLIB_CFLAGS@ -DPPPD=\"@PPPD@\"
69 endif
70
71 if RESOLVCONF
72 plugin_LTLIBRARIES += resolvconf.la
73
74 resolvconf_la_SOURCES = resolvconf.c
75 resolvconf_la_CFLAGS = @GLIB_CFLAGS@ -DRESOLVCONF=\"@RESOLVCONF@\"
76 endif
77
78 if DNSPROXY
79 plugin_LTLIBRARIES += dnsproxy.la
80
81 dnsproxy_la_SOURCES = dnsproxy.c
82 endif
83
84 if POLKIT
85 plugin_LTLIBRARIES += polkit.la
86
87 polkit_la_SOURCES = polkit.c
88 polkit_la_LIBADD = @POLKIT_LIBS@ @GLIB_LIBS@
89 polkit_la_CFLAGS = @GLIB_CFLAGS@ @POLKIT_CFLAGS@
90
91 policydir = $(datadir)/PolicyKit/policy
92
93 policy_DATA = connman.policy
94 endif
95
96 if FAKE
97 plugin_LTLIBRARIES += fake.la
98
99 fake_la_SOURCES = fake.c
100 endif
101
102 AM_LDFLAGS = -no-undefined -module -avoid-version \
103                                 -export-symbols-regex connman_plugin_desc
104
105 statedir = $(localstatedir)/run/connman
106
107 if MAINTAINER_MODE
108 scriptdir = $(abs_top_srcdir)/scripts
109 else
110 scriptdir = $(libdir)/connman/scripts
111 endif
112
113 AM_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@
114
115 INCLUDES = -I$(top_builddir)/include
116
117 EXTRA_DIST = connman.policy
118
119 MAINTAINERCLEANFILES = Makefile.in