blob: 06741b45725ed1f47e981e8af9fc4fd4472cf0f5 [file] [log] [blame]
PLUGIN_LIST := fasm xdc
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: install
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)