Makefile: Fix building the tools on Mac.

git-svn-id: https://svn.eduke32.com/eduke32@6425 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-08-06 13:44:57 +00:00
parent eb332f21a4
commit f5d0acfee8
1 changed files with 2 additions and 4 deletions

View File

@ -206,6 +206,7 @@ ifneq (0,$(LUNATIC))
endif
ifeq ($(PLATFORM),DARWIN)
engine_objs += osxbits.mm
engine_tools_objs += osxbits.mm
ifeq ($(STARTUP_WINDOW),1)
engine_editor_objs += startosx.editor.mm
endif
@ -348,10 +349,6 @@ ifeq ($(RENDERTYPE),SDL)
tools_targets += makesdlkeytrans
endif
ifeq ($(PLATFORM),DARWIN)
tools_objs += osxbits.mm
endif
#### KenBuild (Test Game)
@ -867,6 +864,7 @@ libcache1d$(DLLSUFFIX): $(engine_src)/cache1d.cpp
$(COMPILE_STATUS)
$(RECIPE_IF) $(COMPILER_C) -DCACHE1D_COMPRESS_ONLY -shared -fPIC $< -o $@ $(RECIPE_RESULT_COMPILE)
# to debug the tools link phase, make a copy of this rule explicitly replacing % with the name of a tool, such as kextract
%$(EXESUFFIX): $(tools_obj)/%.$o $(foreach i,tools $(tools_deps),$(call expandobjs,$i))
$(LINK_STATUS)
$(RECIPE_IF) $(LINKER) -o $@ $^ $(LIBDIRS) $(LIBS) $(RECIPE_RESULT_LINK)