mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r2825) -Fix: GCC that put deps in the wrong dirs can now compile OTTD again
This commit is contained in:
parent
36d717d77a
commit
01f9cec6df
6
Makefile
6
Makefile
@ -1036,15 +1036,15 @@ DEPS_MAGIC := $(shell mkdir -p .deps .deps/music .deps/sound .deps/video .deps/o
|
||||
|
||||
%.o: %.c $(MAKE_CONFIG) endian_target.h table/strings.h
|
||||
$(call cmd,c_compile)
|
||||
@mv $(<:%.c=%.d) $(<:%.c=.deps/%.d)
|
||||
@[ -f $(<:%.c=%.d) ] && mv $(<:%.c=%.d) $(<:%.c=.deps/%.d) || mv $(*F).d $(<:%.c=.deps/%.d)
|
||||
|
||||
%.o: %.cpp $(MAKE_CONFIG) endian_target.h table/strings.h
|
||||
$(call cmd,cxx_compile)
|
||||
@mv $(<:%.cpp=%.d) $(<:%.cpp=.deps/%.d)
|
||||
@[ -f $(<:%.cpp=%.d) ] && mv $(<:%.cpp=%.d) $(<:%.cpp=.deps/%.d) || mv $(*F).d $(<:%.cpp=.deps/%.d)
|
||||
|
||||
%.o: %.m $(MAKE_CONFIG) endian_target.h table/strings.h
|
||||
$(call cmd,objc_compile)
|
||||
@mv $(<:%.m=%.d) $(<:%.m=.deps/%.d)
|
||||
@[ -f $(<:%.m=%.d) ] && mv $(<:%.m=%.d) $(<:%.m=.deps/%.d) || mv $(*F).d $(<:%.m=.deps/%.d)
|
||||
|
||||
# Silence stale header dependencies
|
||||
%.h:
|
||||
|
Loading…
Reference in New Issue
Block a user