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