blob: 6818481ed1da0051b16d6937fa5b8067593728f2 [file] [log] [blame]
PLUGIN_LIST := fasm xdc params selection
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)