X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=plugins%2FMakefile.am;h=9b013ad2f9cf47d940f591f812d774ec2f7099d2;hb=ff0c50794b063e961775fc8fbe4fe7277bd7102d;hp=e91bf057052fb6db703102597784a88f3c694bc0;hpb=8393bbf9b8c2704b68df7db9b326d7230b663476;p=connman diff --git a/plugins/Makefile.am b/plugins/Makefile.am index e91bf05..9b013ad 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -1,37 +1,88 @@ plugindir = $(libdir)/connman/plugins -plugin_LTLIBRARIES = ethernet.la wifi.la bluetooth.la \ - netdev.la dhclient.la ipv4.la \ - resolvconf.la resolvfile.la rtnllink.la +plugin_LTLIBRARIES = ipv4.la -ethernet_la_SOURCES = ethernet.c +if LOOPBACK +plugin_LTLIBRARIES += loopback.la + +loopback_la_SOURCES = loopback.c +endif + +if ETHERNET +plugin_LTLIBRARIES += ethernet.la + +ethernet_la_SOURCES = ethernet.c inet.h inet.c +endif + +if WIFI +plugin_LTLIBRARIES += wifi.la wifi_la_SOURCES = wifi.c inet.h inet.c supplicant.h supplicant.c +wifi_la_LIBADD = @GDBUS_LIBS@ +endif + +if BLUETOOTH +plugin_LTLIBRARIES += bluetooth.la -bluetooth_la_SOURCES = bluetooth.c +bluetooth_la_SOURCES = bluetooth.c inet.h inet.c bluetooth_la_LIBADD = @GDBUS_LIBS@ +endif + +if NOVATEL +plugin_LTLIBRARIES += novatel.la + +novatel_la_SOURCES = novatel.c modem.h modem.c +endif + +if HUAWEI +plugin_LTLIBRARIES += huawei.la + +huawei_la_SOURCES = huawei.c modem.h modem.c +endif -netdev_la_SOURCES = netdev.c +if HSO +plugin_LTLIBRARIES += hso.la -dhclient_la_SOURCES = dhclient.c +hso_la_SOURCES = hso.c modem.h modem.c +endif + +ipv4_la_SOURCES = ipv4.c inet.h inet.c + +if UDHCP +plugin_LTLIBRARIES += udhcp.la + +udhcp_la_SOURCES = udhcp.c inet.h inet.c task.h task.c +udhcp_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DUDHCPC=\"@UDHCPC@\" \ + -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\" +endif + +if DHCLIENT +plugin_LTLIBRARIES += dhclient.la + +dhclient_la_SOURCES = dhclient.c inet.h inet.c dhclient_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DDHCLIENT=\"@DHCLIENT@\" \ -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\" +endif -ipv4_la_SOURCES = ipv4.c +if PPPD +plugin_LTLIBRARIES += pppd.la -resolvconf_la_SOURCES = resolvconf.c inet.h inet.c +pppd_la_SOURCES = pppd.c +pppd_la_CFLAGS = @GLIB_CFLAGS@ -DPPPD=\"@PPPD@\" +endif -resolvfile_la_SOURCES = resolvfile.c +if RESOLVCONF +plugin_LTLIBRARIES += resolvconf.la -rtnllink_la_SOURCES = rtnllink.c +resolvconf_la_SOURCES = resolvconf.c +resolvconf_la_CFLAGS = @GLIB_CFLAGS@ -DRESOLVCONF=\"@RESOLVCONF@\" +endif -if HAL -plugin_LTLIBRARIES += hal.la +if DNSPROXY +plugin_LTLIBRARIES += dnsproxy.la -hal_la_SOURCES = hal.c -hal_la_LIBADD = @HAL_LIBS@ -hal_la_CFLAGS = @GLIB_CFLAGS@ @HAL_CFLAGS@ +dnsproxy_la_SOURCES = dnsproxy.c endif if POLKIT @@ -46,6 +97,12 @@ 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