summaryrefslogtreecommitdiff
path: root/plugins/Makefile.am
blob: b9011f9e0f63455dbae6393267e81da68416d849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

plugindir = $(libdir)/connman/plugins

plugin_LTLIBRARIES = loopback.la ethernet.la wifi.la bluetooth.la \
				netdev.la dhclient.la ipv4.la \
				resolvconf.la resolvfile.la rtnllink.la

loopback_la_SOURCES = loopback.c

ethernet_la_SOURCES = ethernet.c

wifi_la_SOURCES = wifi.c inet.h inet.c supplicant.h supplicant.c
wifi_la_LIBADD = @GDBUS_LIBS@

bluetooth_la_SOURCES = bluetooth.c
bluetooth_la_LIBADD = @GDBUS_LIBS@

netdev_la_SOURCES = netdev.c

dhclient_la_SOURCES = dhclient.c inet.h inet.c
dhclient_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DDHCLIENT=\"@DHCLIENT@\" \
		-DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"

ipv4_la_SOURCES = ipv4.c

resolvconf_la_SOURCES = resolvconf.c inet.h inet.c

resolvfile_la_SOURCES = resolvfile.c

rtnllink_la_SOURCES = rtnllink.c inet.h inet.c

if POLKIT
plugin_LTLIBRARIES += polkit.la

polkit_la_SOURCES = polkit.c
polkit_la_LIBADD = @POLKIT_LIBS@ @GLIB_LIBS@
polkit_la_CFLAGS = @GLIB_CFLAGS@ @POLKIT_CFLAGS@

policydir = $(datadir)/PolicyKit/policy

policy_DATA = connman.policy
endif

if FAKE
plugin_LTLIBRARIES += fake.la

fake_la_SOURCES = fake.c
endif

AM_LDFLAGS = -no-undefined -module -avoid-version \
				-export-symbols-regex connman_plugin_desc

statedir = $(localstatedir)/run/connman

if MAINTAINER_MODE
scriptdir = $(abs_top_srcdir)/scripts
else
scriptdir = $(libdir)/connman/scripts
endif

AM_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@

INCLUDES = -I$(top_builddir)/include

EXTRA_DIST = connman.policy

MAINTAINERCLEANFILES = Makefile.in