plugindir = $(libdir)/connman/plugins
-plugin_LTLIBRARIES = ethernet.la bluetooth.la ipv4.la
+plugin_LTLIBRARIES = ipv4.la
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_LIBADD = @GDBUS_LIBS@
endif
+if BLUETOOTH
+plugin_LTLIBRARIES += bluetooth.la
+
bluetooth_la_SOURCES = bluetooth.c inet.h inet.c
bluetooth_la_LIBADD = @GDBUS_LIBS@
+endif
if NOVATEL
plugin_LTLIBRARIES += novatel.la