]> git.ipfire.org Git - people/ms/strongswan.git/blobdiff - Android.common.mk.in
apidoc: Fix make target dependency find precedence
[people/ms/strongswan.git] / Android.common.mk.in
index 1bc8a8304a116f0d16b166ad4c39fbbfd9179aa6..9f8849d7edab16096aac837a36b902a6a4754867 100644 (file)
@@ -13,6 +13,17 @@ add_plugin = $(if $(call plugin_enabled,$(1)), \
                   ) \
                 ) \
               )
+add_plugin_subdirs = $(if $(call plugin_enabled,$(1)), \
+               $(patsubst $(LOCAL_PATH)/%,%, \
+                 $(wildcard \
+                   $(subst %,$(subst -,_,$(strip $(1))), \
+                     $(addprefix $(LOCAL_PATH)/plugins/%/,$(addsuffix /*.c, \
+                       $(strip $(2)) \
+                      )) \
+                    ) \
+                  ) \
+                ) \
+              )
 
 # strongSwan version, replaced by top Makefile
 strongswan_VERSION := "@PACKAGE_VERSION@"