summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 44d70411e..9993b9ffa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -229,6 +229,16 @@ UPNP_SOURCES = \
src/lib/upnp/Action.hxx
#
+# Android native library
+#
+
+if ANDROID
+all-local: libmpd.so
+libmpd.so: $(filter %.a,$(src_mpd_LDADD))
+ $(AM_V_CXXLD)$(CXXLD) -Wl,-shared -o $@ $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) $(src_mpd_LDADD) $(LIBS)
+endif
+
+#
# Windows resource file
#