diff options
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -20,12 +20,17 @@ ifdef TOOL_EXECUTABLE # TODO: Refactor this, so that even our master executable can use this rule? ################################################ TOOL-$(MODULE) := $(MODULE)/$(TOOL_EXECUTABLE)$(EXEEXT) +TOOL_LIBS-$(TOOL-$(MODULE)) := $(TOOL_LIBS) +TOOL_CFLAGS-$(TOOL-$(MODULE)) := $(TOOL_CFLAGS) + $(TOOL-$(MODULE)): $(MODULE_OBJS-$(MODULE)) $(TOOL_DEPS) - $(QUIET_CXX)$(CXX) $(LDFLAGS) $+ -o $@ + $(QUIET_CXX)$(CXX) $(LDFLAGS) $(TOOL_CFLAGS-$@) $+ $(TOOL_LIBS-$@) -o $@ # Reset TOOL_* vars TOOL_EXECUTABLE:= TOOL_DEPS:= +TOOL_CFLAGS:= +TOOL_LIBS:= # Add to "devtools" target devtools: $(TOOL-$(MODULE)) |