DEVTOOLS: Link create_kyradat against libcommon.a, for scumm_stricmp
This commit is contained in:
parent
3429a14c11
commit
70d5da3bc4
2 changed files with 6 additions and 2 deletions
|
@ -14,5 +14,8 @@ MODULE_OBJS := \
|
||||||
# Set the name of the executable
|
# Set the name of the executable
|
||||||
TOOL_EXECUTABLE := create_kyradat
|
TOOL_EXECUTABLE := create_kyradat
|
||||||
|
|
||||||
|
# Link against common code (for scumm_stricmp)
|
||||||
|
TOOL_DEPS := common/libcommon.a
|
||||||
|
|
||||||
# Include common rules
|
# Include common rules
|
||||||
include $(srcdir)/rules.mk
|
include $(srcdir)/rules.mk
|
||||||
|
|
5
rules.mk
5
rules.mk
|
@ -20,11 +20,12 @@ ifdef TOOL_EXECUTABLE
|
||||||
# TODO: Refactor this, so that even our master executable can use this rule?
|
# TODO: Refactor this, so that even our master executable can use this rule?
|
||||||
################################################
|
################################################
|
||||||
TOOL-$(MODULE) := $(MODULE)/$(TOOL_EXECUTABLE)$(EXEEXT)
|
TOOL-$(MODULE) := $(MODULE)/$(TOOL_EXECUTABLE)$(EXEEXT)
|
||||||
$(TOOL-$(MODULE)): $(MODULE_OBJS-$(MODULE))
|
$(TOOL-$(MODULE)): $(MODULE_OBJS-$(MODULE)) $(TOOL_DEPS)
|
||||||
$(QUIET_CXX)$(CXX) $(LDFLAGS) $+ -o $@
|
$(QUIET_CXX)$(CXX) $(LDFLAGS) $+ -o $@
|
||||||
|
|
||||||
# Reset TOOL_EXECUTABLE var
|
# Reset TOOL_* vars
|
||||||
TOOL_EXECUTABLE:=
|
TOOL_EXECUTABLE:=
|
||||||
|
TOOL_DEPS:=
|
||||||
|
|
||||||
# Add to "devtools" target
|
# Add to "devtools" target
|
||||||
devtools: $(TOOL-$(MODULE))
|
devtools: $(TOOL-$(MODULE))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue