blob: 6e74158006eeb1f7786fca3985f8954ee13b98e5 [file] [log] [blame]
PLUGIN_LIST := fasm xdc params selection sdc get_count
PLUGINS := $(foreach plugin,$(PLUGIN_LIST),$(plugin).so)
PLUGINS_INSTALL := $(foreach plugin,$(PLUGIN_LIST),install_$(plugin))
PLUGINS_CLEAN := $(foreach plugin,$(PLUGIN_LIST),clean_$(plugin))
PLUGINS_TEST := $(foreach plugin,$(PLUGIN_LIST),test_$(plugin))
all: plugins
define install_plugin =
$(1).so:
$$(MAKE) -C $(1)-plugin $$@
install_$(1):
$$(MAKE) -C $(1)-plugin install
clean_$(1):
$$(MAKE) -C $(1)-plugin clean
test_$(1):
$$(MAKE) -C $(1)-plugin test
endef
$(foreach plugin,$(PLUGIN_LIST),$(eval $(call install_plugin,$(plugin))))
plugins: $(PLUGINS)
install: $(PLUGINS_INSTALL)
test: $(PLUGINS_TEST)
clean: $(PLUGINS_CLEAN)