Patch 3035550: Make/Distcc outputs dependencies to wrong location
This commit is contained in:
parent
dfda94d862
commit
15af117ef9
@ -30,6 +30,8 @@
|
||||
* Added os.stat
|
||||
* Bug 3381149: Path of PCH source file in VS10 not being translated (intyuh)
|
||||
* Patch 3021550: Add Wii homebrew platform (Pathogen David)
|
||||
* Patch 3035550: Make/Distcc outputs dependencies to wrong location
|
||||
|
||||
|
||||
-------
|
||||
4.3
|
||||
|
@ -114,11 +114,7 @@
|
||||
if path.iscppfile(file) then
|
||||
_p('$(OBJDIR)/%s.o: %s', _MAKE.esc(path.getbasename(file)), _MAKE.esc(file))
|
||||
_p('\t@echo $(notdir $<)')
|
||||
if (path.iscfile(file)) then
|
||||
_p('\t$(SILENT) $(CC) $(CFLAGS) -o "$@" -c "$<"')
|
||||
else
|
||||
_p('\t$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"')
|
||||
end
|
||||
cpp.buildcommand(path.iscfile(file))
|
||||
elseif (path.getextension(file) == ".rc") then
|
||||
_p('$(OBJDIR)/%s.res: %s', _MAKE.esc(path.getbasename(file)), _MAKE.esc(file))
|
||||
_p('\t@echo $(notdir $<)')
|
||||
@ -285,11 +281,19 @@
|
||||
_p('$(GCH): $(PCH)')
|
||||
_p('\t@echo $(notdir $<)')
|
||||
_p('\t-$(SILENT) cp $< $(OBJDIR)')
|
||||
if prj.language == "C" then
|
||||
_p('\t$(SILENT) $(CC) $(CFLAGS) -o "$@" -c "$<"')
|
||||
else
|
||||
_p('\t$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"')
|
||||
end
|
||||
cpp.buildcommand(prj.language == "C")
|
||||
_p('endif')
|
||||
_p('')
|
||||
end
|
||||
|
||||
|
||||
--
|
||||
-- Build command for a single file.
|
||||
--
|
||||
|
||||
function cpp.buildcommand(iscfile)
|
||||
local flags = iif(iscfile, '$(CC) $(CFLAGS)', '$(CXX) $(CXXFLAGS)')
|
||||
_p('\t$(SILENT) %s -o "$@" -MF $(@:%%.o=%%.d) -c "$<"', flags)
|
||||
end
|
||||
|
||||
|
||||
|
@ -69,7 +69,7 @@ ifneq (,$(PCH))
|
||||
$(GCH): $(PCH)
|
||||
@echo $(notdir $<)
|
||||
-$(SILENT) cp $< $(OBJDIR)
|
||||
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<"
|
||||
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -MF $(@:%.o=%.d) -c "$<"
|
||||
endif
|
||||
]]
|
||||
end
|
||||
@ -84,7 +84,7 @@ ifneq (,$(PCH))
|
||||
$(GCH): $(PCH)
|
||||
@echo $(notdir $<)
|
||||
-$(SILENT) cp $< $(OBJDIR)
|
||||
$(SILENT) $(CC) $(CFLAGS) -o "$@" -c "$<"
|
||||
$(SILENT) $(CC) $(CFLAGS) -o "$@" -MF $(@:%.o=%.d) -c "$<"
|
||||
endif
|
||||
]]
|
||||
end
|
||||
|
@ -35,7 +35,7 @@
|
||||
CPPFLAGS += -MMD -MP -I$(LIBOGC_INC) $(MACHDEP) -MP $(DEFINES) $(INCLUDES)
|
||||
CFLAGS += $(CPPFLAGS) $(ARCH)
|
||||
CXXFLAGS += $(CFLAGS)
|
||||
LDFLAGS += -s lwiiuse -lbte -logc -lm -L$(LIBOGC_LIB) $(MACHDEP)
|
||||
LDFLAGS += -s -L$(LIBOGC_LIB) $(MACHDEP)
|
||||
RESFLAGS += $(DEFINES) $(INCLUDES)
|
||||
]]
|
||||
end
|
||||
|
Reference in New Issue
Block a user