DEVTOOLS: Link create_kyradat against libcommon.a, for scumm_stricmp

This commit is contained in:
Max Horn 2011-06-01 23:50:27 +02:00
parent 3429a14c11
commit 70d5da3bc4
2 changed files with 6 additions and 2 deletions

View file

@ -14,5 +14,8 @@ MODULE_OBJS := \
# Set the name of the executable
TOOL_EXECUTABLE := create_kyradat
# Link against common code (for scumm_stricmp)
TOOL_DEPS := common/libcommon.a
# Include common rules
include $(srcdir)/rules.mk

View file

@ -20,11 +20,12 @@ ifdef TOOL_EXECUTABLE
# TODO: Refactor this, so that even our master executable can use this rule?
################################################
TOOL-$(MODULE) := $(MODULE)/$(TOOL_EXECUTABLE)$(EXEEXT)
$(TOOL-$(MODULE)): $(MODULE_OBJS-$(MODULE))
$(TOOL-$(MODULE)): $(MODULE_OBJS-$(MODULE)) $(TOOL_DEPS)
$(QUIET_CXX)$(CXX) $(LDFLAGS) $+ -o $@
# Reset TOOL_EXECUTABLE var
# Reset TOOL_* vars
TOOL_EXECUTABLE:=
TOOL_DEPS:=
# Add to "devtools" target
devtools: $(TOOL-$(MODULE))