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