diff --git a/Makefile b/Makefile index 64d37dddd6d..2ff44c50cf2 100644 --- a/Makefile +++ b/Makefile @@ -92,6 +92,8 @@ LDFLAGS := -unused -map $(MAP) -fp hard -nodefaults -w off # Compiler flags CFLAGS += -Cpp_exceptions off -proc gekko -fp hard -O3 -nodefaults -str pool,readonly,reuse -RTTI off -maxerrors 5 -enum int $(INCLUDES) +DEPFLAGS := $(if $(DISABLE_DEPS),,-MD) + # O4,p for init.c $(BUILD_DIR)/src/init.o: CFLAGS := -Cpp_exceptions off -proc gekko -fp hard -O4,p -nodefaults -str pool,readonly,reuse -RTTI off -maxerrors 5 -enum int $(INCLUDES) @@ -190,17 +192,25 @@ rungame: game dolphin-emu $(BUILD_DIR)/game/sys/main.dol # -$(BUILD_DIR)/%.o: %.c +$(BUILD_DIR)/%.o: %.c $(BUILD_DIR)/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(CC) $(CFLAGS) -c -o $@ $(basename $@).c + @$(CC) $(CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi -$(BUILD_DIR)/%.o: %.cpp +$(BUILD_DIR)/%.o: %.cpp $(BUILD_DIR)/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +D_FILES := $(O_FILES:.o=.d) +$(D_FILES): +include $(wildcard $(D_FILES)) +endif # shared cpp files for RELs $(BUILD_DIR)/rel/%.o: rel/%.cpp diff --git a/diff_settings.py b/diff_settings.py index c23703fc0b2..986d3639456 100644 --- a/diff_settings.py +++ b/diff_settings.py @@ -10,7 +10,9 @@ def apply(config, args): config['expected_build_dir'] = 'expected/build/' config['myimg'] = 'build/dolzel2/main.elf' config['baseimg'] = 'expected/build/dolzel2/main.elf' - config['makeflags'] = [] + config['makeflags'] = [ + 'DISABLE_DEPS=1', + ] if args.show_source: config['makeflags'].append('DEBUG=1') config['source_directories'] = ['src', 'libs', 'include'] diff --git a/libs/JSystem/J2DGraph/Makefile b/libs/JSystem/J2DGraph/Makefile index d3fc92ef465..708cb4ddd50 100644 --- a/libs/JSystem/J2DGraph/Makefile +++ b/libs/JSystem/J2DGraph/Makefile @@ -55,9 +55,16 @@ $(BUILD_DIR)/libJ2DGraph.a: $(LIBJ2DGRAPH_A_O_FILES) @echo $(LIBJ2DGRAPH_A_O_FILES) > build/LIBJ2DGRAPH_A_ofiles @$(LD) -xm l $(LIBJ2DGRAPH_A_LDFLAGS) -o $(BUILD_DIR)/libJ2DGraph.a @build/LIBJ2DGRAPH_A_ofiles -$(BUILD_DIR)/libs/JSystem/J2DGraph/%.o: libs/JSystem/J2DGraph/%.cpp +$(BUILD_DIR)/libs/JSystem/J2DGraph/%.o: libs/JSystem/J2DGraph/%.cpp $(BUILD_DIR)/libs/JSystem/J2DGraph/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJ2DGRAPH_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJ2DGRAPH_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJ2DGRAPH_A_D_FILES := $(LIBJ2DGRAPH_A_O_FILES:.o=.d) +$(LIBJ2DGRAPH_A_D_FILES): +include $(wildcard $(LIBJ2DGRAPH_A_D_FILES)) +endif diff --git a/libs/JSystem/J3DGraphAnimator/Makefile b/libs/JSystem/J3DGraphAnimator/Makefile index cf3389d85e6..6519b67f824 100644 --- a/libs/JSystem/J3DGraphAnimator/Makefile +++ b/libs/JSystem/J3DGraphAnimator/Makefile @@ -41,9 +41,16 @@ $(BUILD_DIR)/libJ3DGraphAnimator.a: $(LIBJ3DGRAPHANIMATOR_A_O_FILES) @echo $(LIBJ3DGRAPHANIMATOR_A_O_FILES) > build/LIBJ3DGRAPHANIMATOR_A_ofiles @$(LD) -xm l $(LIBJ3DGRAPHANIMATOR_A_LDFLAGS) -o $(BUILD_DIR)/libJ3DGraphAnimator.a @build/LIBJ3DGRAPHANIMATOR_A_ofiles -$(BUILD_DIR)/libs/JSystem/J3DGraphAnimator/%.o: libs/JSystem/J3DGraphAnimator/%.cpp +$(BUILD_DIR)/libs/JSystem/J3DGraphAnimator/%.o: libs/JSystem/J3DGraphAnimator/%.cpp $(BUILD_DIR)/libs/JSystem/J3DGraphAnimator/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJ3DGRAPHANIMATOR_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJ3DGRAPHANIMATOR_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJ3DGRAPHANIMATOR_A_D_FILES := $(LIBJ3DGRAPHANIMATOR_A_O_FILES:.o=.d) +$(LIBJ3DGRAPHANIMATOR_A_D_FILES): +include $(wildcard $(LIBJ3DGRAPHANIMATOR_A_D_FILES)) +endif diff --git a/libs/JSystem/J3DGraphBase/Makefile b/libs/JSystem/J3DGraphBase/Makefile index 82af2f83b3d..edce8afed54 100644 --- a/libs/JSystem/J3DGraphBase/Makefile +++ b/libs/JSystem/J3DGraphBase/Makefile @@ -47,9 +47,16 @@ $(BUILD_DIR)/libJ3DGraphBase.a: $(LIBJ3DGRAPHBASE_A_O_FILES) @echo $(LIBJ3DGRAPHBASE_A_O_FILES) > build/LIBJ3DGRAPHBASE_A_ofiles @$(LD) -xm l $(LIBJ3DGRAPHBASE_A_LDFLAGS) -o $(BUILD_DIR)/libJ3DGraphBase.a @build/LIBJ3DGRAPHBASE_A_ofiles -$(BUILD_DIR)/libs/JSystem/J3DGraphBase/%.o: libs/JSystem/J3DGraphBase/%.cpp +$(BUILD_DIR)/libs/JSystem/J3DGraphBase/%.o: libs/JSystem/J3DGraphBase/%.cpp $(BUILD_DIR)/libs/JSystem/J3DGraphBase/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJ3DGRAPHBASE_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJ3DGRAPHBASE_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJ3DGRAPHBASE_A_D_FILES := $(LIBJ3DGRAPHBASE_A_O_FILES:.o=.d) +$(LIBJ3DGRAPHBASE_A_D_FILES): +include $(wildcard $(LIBJ3DGRAPHBASE_A_D_FILES)) +endif diff --git a/libs/JSystem/J3DGraphLoader/Makefile b/libs/JSystem/J3DGraphLoader/Makefile index 01b3dee5bc7..2330fa55168 100644 --- a/libs/JSystem/J3DGraphLoader/Makefile +++ b/libs/JSystem/J3DGraphLoader/Makefile @@ -35,9 +35,16 @@ $(BUILD_DIR)/libJ3DGraphLoader.a: $(LIBJ3DGRAPHLOADER_A_O_FILES) @echo $(LIBJ3DGRAPHLOADER_A_O_FILES) > build/LIBJ3DGRAPHLOADER_A_ofiles @$(LD) -xm l $(LIBJ3DGRAPHLOADER_A_LDFLAGS) -o $(BUILD_DIR)/libJ3DGraphLoader.a @build/LIBJ3DGRAPHLOADER_A_ofiles -$(BUILD_DIR)/libs/JSystem/J3DGraphLoader/%.o: libs/JSystem/J3DGraphLoader/%.cpp +$(BUILD_DIR)/libs/JSystem/J3DGraphLoader/%.o: libs/JSystem/J3DGraphLoader/%.cpp $(BUILD_DIR)/libs/JSystem/J3DGraphLoader/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJ3DGRAPHLOADER_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJ3DGRAPHLOADER_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJ3DGRAPHLOADER_A_D_FILES := $(LIBJ3DGRAPHLOADER_A_O_FILES:.o=.d) +$(LIBJ3DGRAPHLOADER_A_D_FILES): +include $(wildcard $(LIBJ3DGRAPHLOADER_A_D_FILES)) +endif diff --git a/libs/JSystem/J3DU/Makefile b/libs/JSystem/J3DU/Makefile index 5d551ad846e..aecbabd6671 100644 --- a/libs/JSystem/J3DU/Makefile +++ b/libs/JSystem/J3DU/Makefile @@ -23,9 +23,16 @@ $(BUILD_DIR)/libJ3DU.a: $(LIBJ3DU_A_O_FILES) @echo $(LIBJ3DU_A_O_FILES) > build/LIBJ3DU_A_ofiles @$(LD) -xm l $(LIBJ3DU_A_LDFLAGS) -o $(BUILD_DIR)/libJ3DU.a @build/LIBJ3DU_A_ofiles -$(BUILD_DIR)/libs/JSystem/J3DU/%.o: libs/JSystem/J3DU/%.cpp +$(BUILD_DIR)/libs/JSystem/J3DU/%.o: libs/JSystem/J3DU/%.cpp $(BUILD_DIR)/libs/JSystem/J3DU/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJ3DU_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJ3DU_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJ3DU_A_D_FILES := $(LIBJ3DU_A_O_FILES:.o=.d) +$(LIBJ3DU_A_D_FILES): +include $(wildcard $(LIBJ3DU_A_D_FILES)) +endif diff --git a/libs/JSystem/JAudio2/Makefile b/libs/JSystem/JAudio2/Makefile index 28a05a45da0..44416c8b620 100644 --- a/libs/JSystem/JAudio2/Makefile +++ b/libs/JSystem/JAudio2/Makefile @@ -155,9 +155,16 @@ $(BUILD_DIR)/libJAudio2.a: $(LIBJAUDIO2_A_O_FILES) @echo $(LIBJAUDIO2_A_O_FILES) > build/LIBJAUDIO2_A_ofiles @$(LD) -xm l $(LIBJAUDIO2_A_LDFLAGS) -o $(BUILD_DIR)/libJAudio2.a @build/LIBJAUDIO2_A_ofiles -$(BUILD_DIR)/libs/JSystem/JAudio2/%.o: libs/JSystem/JAudio2/%.cpp +$(BUILD_DIR)/libs/JSystem/JAudio2/%.o: libs/JSystem/JAudio2/%.cpp $(BUILD_DIR)/libs/JSystem/JAudio2/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJAUDIO2_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJAUDIO2_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJAUDIO2_A_D_FILES := $(LIBJAUDIO2_A_O_FILES:.o=.d) +$(LIBJAUDIO2_A_D_FILES): +include $(wildcard $(LIBJAUDIO2_A_D_FILES)) +endif diff --git a/libs/JSystem/JFramework/Makefile b/libs/JSystem/JFramework/Makefile index 8df842d47a5..0365ce38933 100644 --- a/libs/JSystem/JFramework/Makefile +++ b/libs/JSystem/JFramework/Makefile @@ -23,9 +23,16 @@ $(BUILD_DIR)/libJFramework.a: $(LIBJFRAMEWORK_A_O_FILES) @echo $(LIBJFRAMEWORK_A_O_FILES) > build/LIBJFRAMEWORK_A_ofiles @$(LD) -xm l $(LIBJFRAMEWORK_A_LDFLAGS) -o $(BUILD_DIR)/libJFramework.a @build/LIBJFRAMEWORK_A_ofiles -$(BUILD_DIR)/libs/JSystem/JFramework/%.o: libs/JSystem/JFramework/%.cpp +$(BUILD_DIR)/libs/JSystem/JFramework/%.o: libs/JSystem/JFramework/%.cpp $(BUILD_DIR)/libs/JSystem/JFramework/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJFRAMEWORK_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJFRAMEWORK_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJFRAMEWORK_A_D_FILES := $(LIBJFRAMEWORK_A_O_FILES:.o=.d) +$(LIBJFRAMEWORK_A_D_FILES): +include $(wildcard $(LIBJFRAMEWORK_A_D_FILES)) +endif diff --git a/libs/JSystem/JGadget/Makefile b/libs/JSystem/JGadget/Makefile index 68f5c8eeb65..add15f043e9 100644 --- a/libs/JSystem/JGadget/Makefile +++ b/libs/JSystem/JGadget/Makefile @@ -25,9 +25,16 @@ $(BUILD_DIR)/libJGadget.a: $(LIBJGADGET_A_O_FILES) @echo $(LIBJGADGET_A_O_FILES) > build/LIBJGADGET_A_ofiles @$(LD) -xm l $(LIBJGADGET_A_LDFLAGS) -o $(BUILD_DIR)/libJGadget.a @build/LIBJGADGET_A_ofiles -$(BUILD_DIR)/libs/JSystem/JGadget/%.o: libs/JSystem/JGadget/%.cpp +$(BUILD_DIR)/libs/JSystem/JGadget/%.o: libs/JSystem/JGadget/%.cpp $(BUILD_DIR)/libs/JSystem/JGadget/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJGADGET_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJGADGET_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJGADGET_A_D_FILES := $(LIBJGADGET_A_O_FILES:.o=.d) +$(LIBJGADGET_A_D_FILES): +include $(wildcard $(LIBJGADGET_A_D_FILES)) +endif diff --git a/libs/JSystem/JKernel/Makefile b/libs/JSystem/JKernel/Makefile index 3e1c472dce4..d8a9906a084 100644 --- a/libs/JSystem/JKernel/Makefile +++ b/libs/JSystem/JKernel/Makefile @@ -69,9 +69,16 @@ $(BUILD_DIR)/libJKernel.a: $(LIBJKERNEL_A_O_FILES) @echo $(LIBJKERNEL_A_O_FILES) > build/LIBJKERNEL_A_ofiles @$(LD) -xm l $(LIBJKERNEL_A_LDFLAGS) -o $(BUILD_DIR)/libJKernel.a @build/LIBJKERNEL_A_ofiles -$(BUILD_DIR)/libs/JSystem/JKernel/%.o: libs/JSystem/JKernel/%.cpp +$(BUILD_DIR)/libs/JSystem/JKernel/%.o: libs/JSystem/JKernel/%.cpp $(BUILD_DIR)/libs/JSystem/JKernel/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJKERNEL_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJKERNEL_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJKERNEL_A_D_FILES := $(LIBJKERNEL_A_O_FILES:.o=.d) +$(LIBJKERNEL_A_D_FILES): +include $(wildcard $(LIBJKERNEL_A_D_FILES)) +endif diff --git a/libs/JSystem/JMath/Makefile b/libs/JSystem/JMath/Makefile index abb8024475e..4c7cd678dc3 100644 --- a/libs/JSystem/JMath/Makefile +++ b/libs/JSystem/JMath/Makefile @@ -25,9 +25,16 @@ $(BUILD_DIR)/libJMath.a: $(LIBJMATH_A_O_FILES) @echo $(LIBJMATH_A_O_FILES) > build/LIBJMATH_A_ofiles @$(LD) -xm l $(LIBJMATH_A_LDFLAGS) -o $(BUILD_DIR)/libJMath.a @build/LIBJMATH_A_ofiles -$(BUILD_DIR)/libs/JSystem/JMath/%.o: libs/JSystem/JMath/%.cpp +$(BUILD_DIR)/libs/JSystem/JMath/%.o: libs/JSystem/JMath/%.cpp $(BUILD_DIR)/libs/JSystem/JMath/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJMATH_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJMATH_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJMATH_A_D_FILES := $(LIBJMATH_A_O_FILES:.o=.d) +$(LIBJMATH_A_D_FILES): +include $(wildcard $(LIBJMATH_A_D_FILES)) +endif diff --git a/libs/JSystem/JMessage/Makefile b/libs/JSystem/JMessage/Makefile index f5755e34f1a..4c8687e0e45 100644 --- a/libs/JSystem/JMessage/Makefile +++ b/libs/JSystem/JMessage/Makefile @@ -29,9 +29,16 @@ $(BUILD_DIR)/libJMessage.a: $(LIBJMESSAGE_A_O_FILES) @echo $(LIBJMESSAGE_A_O_FILES) > build/LIBJMESSAGE_A_ofiles @$(LD) -xm l $(LIBJMESSAGE_A_LDFLAGS) -o $(BUILD_DIR)/libJMessage.a @build/LIBJMESSAGE_A_ofiles -$(BUILD_DIR)/libs/JSystem/JMessage/%.o: libs/JSystem/JMessage/%.cpp +$(BUILD_DIR)/libs/JSystem/JMessage/%.o: libs/JSystem/JMessage/%.cpp $(BUILD_DIR)/libs/JSystem/JMessage/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJMESSAGE_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJMESSAGE_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJMESSAGE_A_D_FILES := $(LIBJMESSAGE_A_O_FILES:.o=.d) +$(LIBJMESSAGE_A_D_FILES): +include $(wildcard $(LIBJMESSAGE_A_D_FILES)) +endif diff --git a/libs/JSystem/JParticle/Makefile b/libs/JSystem/JParticle/Makefile index 8f8c1a34f64..0bdcd7d0ecd 100644 --- a/libs/JSystem/JParticle/Makefile +++ b/libs/JSystem/JParticle/Makefile @@ -49,9 +49,16 @@ $(BUILD_DIR)/libJParticle.a: $(LIBJPARTICLE_A_O_FILES) @echo $(LIBJPARTICLE_A_O_FILES) > build/LIBJPARTICLE_A_ofiles @$(LD) -xm l $(LIBJPARTICLE_A_LDFLAGS) -o $(BUILD_DIR)/libJParticle.a @build/LIBJPARTICLE_A_ofiles -$(BUILD_DIR)/libs/JSystem/JParticle/%.o: libs/JSystem/JParticle/%.cpp +$(BUILD_DIR)/libs/JSystem/JParticle/%.o: libs/JSystem/JParticle/%.cpp $(BUILD_DIR)/libs/JSystem/JParticle/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJPARTICLE_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJPARTICLE_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJPARTICLE_A_D_FILES := $(LIBJPARTICLE_A_O_FILES:.o=.d) +$(LIBJPARTICLE_A_D_FILES): +include $(wildcard $(LIBJPARTICLE_A_D_FILES)) +endif diff --git a/libs/JSystem/JStage/Makefile b/libs/JSystem/JStage/Makefile index b6270b25281..fd5dc316bed 100644 --- a/libs/JSystem/JStage/Makefile +++ b/libs/JSystem/JStage/Makefile @@ -33,9 +33,16 @@ $(BUILD_DIR)/libJStage.a: $(LIBJSTAGE_A_O_FILES) @echo $(LIBJSTAGE_A_O_FILES) > build/LIBJSTAGE_A_ofiles @$(LD) -xm l $(LIBJSTAGE_A_LDFLAGS) -o $(BUILD_DIR)/libJStage.a @build/LIBJSTAGE_A_ofiles -$(BUILD_DIR)/libs/JSystem/JStage/%.o: libs/JSystem/JStage/%.cpp +$(BUILD_DIR)/libs/JSystem/JStage/%.o: libs/JSystem/JStage/%.cpp $(BUILD_DIR)/libs/JSystem/JStage/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJSTAGE_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJSTAGE_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJSTAGE_A_D_FILES := $(LIBJSTAGE_A_O_FILES:.o=.d) +$(LIBJSTAGE_A_D_FILES): +include $(wildcard $(LIBJSTAGE_A_D_FILES)) +endif diff --git a/libs/JSystem/JStudio/JStudio/Makefile b/libs/JSystem/JStudio/JStudio/Makefile index babd1d84de0..5a0414ecdab 100644 --- a/libs/JSystem/JStudio/JStudio/Makefile +++ b/libs/JSystem/JStudio/JStudio/Makefile @@ -51,9 +51,16 @@ $(BUILD_DIR)/libJStudio.a: $(LIBJSTUDIO_A_O_FILES) @echo $(LIBJSTUDIO_A_O_FILES) > build/LIBJSTUDIO_A_ofiles @$(LD) -xm l $(LIBJSTUDIO_A_LDFLAGS) -o $(BUILD_DIR)/libJStudio.a @build/LIBJSTUDIO_A_ofiles -$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/%.o: libs/JSystem/JStudio/JStudio/%.cpp +$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/%.o: libs/JSystem/JStudio/JStudio/%.cpp $(BUILD_DIR)/libs/JSystem/JStudio/JStudio/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJSTUDIO_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJSTUDIO_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJSTUDIO_A_D_FILES := $(LIBJSTUDIO_A_O_FILES:.o=.d) +$(LIBJSTUDIO_A_D_FILES): +include $(wildcard $(LIBJSTUDIO_A_D_FILES)) +endif diff --git a/libs/JSystem/JStudio/JStudio_JAudio2/Makefile b/libs/JSystem/JStudio/JStudio_JAudio2/Makefile index 5ec8a7cd292..1ced071d605 100644 --- a/libs/JSystem/JStudio/JStudio_JAudio2/Makefile +++ b/libs/JSystem/JStudio/JStudio_JAudio2/Makefile @@ -23,9 +23,16 @@ $(BUILD_DIR)/libJStudio_JAudio2.a: $(LIBJSTUDIO_JAUDIO2_A_O_FILES) @echo $(LIBJSTUDIO_JAUDIO2_A_O_FILES) > build/LIBJSTUDIO_JAUDIO2_A_ofiles @$(LD) -xm l $(LIBJSTUDIO_JAUDIO2_A_LDFLAGS) -o $(BUILD_DIR)/libJStudio_JAudio2.a @build/LIBJSTUDIO_JAUDIO2_A_ofiles -$(BUILD_DIR)/libs/JSystem/JStudio/JStudio_JAudio2/%.o: libs/JSystem/JStudio/JStudio_JAudio2/%.cpp +$(BUILD_DIR)/libs/JSystem/JStudio/JStudio_JAudio2/%.o: libs/JSystem/JStudio/JStudio_JAudio2/%.cpp $(BUILD_DIR)/libs/JSystem/JStudio/JStudio_JAudio2/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJSTUDIO_JAUDIO2_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJSTUDIO_JAUDIO2_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJSTUDIO_JAUDIO2_A_D_FILES := $(LIBJSTUDIO_JAUDIO2_A_O_FILES:.o=.d) +$(LIBJSTUDIO_JAUDIO2_A_D_FILES): +include $(wildcard $(LIBJSTUDIO_JAUDIO2_A_D_FILES)) +endif diff --git a/libs/JSystem/JStudio/JStudio_JParticle/Makefile b/libs/JSystem/JStudio/JStudio_JParticle/Makefile index b8db51d5b94..20244d38861 100644 --- a/libs/JSystem/JStudio/JStudio_JParticle/Makefile +++ b/libs/JSystem/JStudio/JStudio_JParticle/Makefile @@ -23,9 +23,16 @@ $(BUILD_DIR)/libJStudio_JParticle.a: $(LIBJSTUDIO_JPARTICLE_A_O_FILES) @echo $(LIBJSTUDIO_JPARTICLE_A_O_FILES) > build/LIBJSTUDIO_JPARTICLE_A_ofiles @$(LD) -xm l $(LIBJSTUDIO_JPARTICLE_A_LDFLAGS) -o $(BUILD_DIR)/libJStudio_JParticle.a @build/LIBJSTUDIO_JPARTICLE_A_ofiles -$(BUILD_DIR)/libs/JSystem/JStudio/JStudio_JParticle/%.o: libs/JSystem/JStudio/JStudio_JParticle/%.cpp +$(BUILD_DIR)/libs/JSystem/JStudio/JStudio_JParticle/%.o: libs/JSystem/JStudio/JStudio_JParticle/%.cpp $(BUILD_DIR)/libs/JSystem/JStudio/JStudio_JParticle/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJSTUDIO_JPARTICLE_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJSTUDIO_JPARTICLE_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJSTUDIO_JPARTICLE_A_D_FILES := $(LIBJSTUDIO_JPARTICLE_A_O_FILES:.o=.d) +$(LIBJSTUDIO_JPARTICLE_A_D_FILES): +include $(wildcard $(LIBJSTUDIO_JPARTICLE_A_D_FILES)) +endif diff --git a/libs/JSystem/JStudio/JStudio_JStage/Makefile b/libs/JSystem/JStudio/JStudio_JStage/Makefile index 4c48f6ec892..315f641ff75 100644 --- a/libs/JSystem/JStudio/JStudio_JStage/Makefile +++ b/libs/JSystem/JStudio/JStudio_JStage/Makefile @@ -33,9 +33,16 @@ $(BUILD_DIR)/libJStudio_JStage.a: $(LIBJSTUDIO_JSTAGE_A_O_FILES) @echo $(LIBJSTUDIO_JSTAGE_A_O_FILES) > build/LIBJSTUDIO_JSTAGE_A_ofiles @$(LD) -xm l $(LIBJSTUDIO_JSTAGE_A_LDFLAGS) -o $(BUILD_DIR)/libJStudio_JStage.a @build/LIBJSTUDIO_JSTAGE_A_ofiles -$(BUILD_DIR)/libs/JSystem/JStudio/JStudio_JStage/%.o: libs/JSystem/JStudio/JStudio_JStage/%.cpp +$(BUILD_DIR)/libs/JSystem/JStudio/JStudio_JStage/%.o: libs/JSystem/JStudio/JStudio_JStage/%.cpp $(BUILD_DIR)/libs/JSystem/JStudio/JStudio_JStage/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJSTUDIO_JSTAGE_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJSTUDIO_JSTAGE_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJSTUDIO_JSTAGE_A_D_FILES := $(LIBJSTUDIO_JSTAGE_A_O_FILES:.o=.d) +$(LIBJSTUDIO_JSTAGE_A_D_FILES): +include $(wildcard $(LIBJSTUDIO_JSTAGE_A_D_FILES)) +endif diff --git a/libs/JSystem/JSupport/Makefile b/libs/JSystem/JSupport/Makefile index 66b713ac184..34ca9caf1c5 100644 --- a/libs/JSystem/JSupport/Makefile +++ b/libs/JSystem/JSupport/Makefile @@ -27,9 +27,16 @@ $(BUILD_DIR)/libJSupport.a: $(LIBJSUPPORT_A_O_FILES) @echo $(LIBJSUPPORT_A_O_FILES) > build/LIBJSUPPORT_A_ofiles @$(LD) -xm l $(LIBJSUPPORT_A_LDFLAGS) -o $(BUILD_DIR)/libJSupport.a @build/LIBJSUPPORT_A_ofiles -$(BUILD_DIR)/libs/JSystem/JSupport/%.o: libs/JSystem/JSupport/%.cpp +$(BUILD_DIR)/libs/JSystem/JSupport/%.o: libs/JSystem/JSupport/%.cpp $(BUILD_DIR)/libs/JSystem/JSupport/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJSUPPORT_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJSUPPORT_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJSUPPORT_A_D_FILES := $(LIBJSUPPORT_A_O_FILES:.o=.d) +$(LIBJSUPPORT_A_D_FILES): +include $(wildcard $(LIBJSUPPORT_A_D_FILES)) +endif diff --git a/libs/JSystem/JUtility/Makefile b/libs/JSystem/JUtility/Makefile index 953ea3b208c..b78f4a139a0 100644 --- a/libs/JSystem/JUtility/Makefile +++ b/libs/JSystem/JUtility/Makefile @@ -59,9 +59,16 @@ $(BUILD_DIR)/libJUtility.a: $(LIBJUTILITY_A_O_FILES) @echo $(LIBJUTILITY_A_O_FILES) > build/LIBJUTILITY_A_ofiles @$(LD) -xm l $(LIBJUTILITY_A_LDFLAGS) -o $(BUILD_DIR)/libJUtility.a @build/LIBJUTILITY_A_ofiles -$(BUILD_DIR)/libs/JSystem/JUtility/%.o: libs/JSystem/JUtility/%.cpp +$(BUILD_DIR)/libs/JSystem/JUtility/%.o: libs/JSystem/JUtility/%.cpp $(BUILD_DIR)/libs/JSystem/JUtility/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJUTILITY_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJUTILITY_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBJUTILITY_A_D_FILES := $(LIBJUTILITY_A_O_FILES:.o=.d) +$(LIBJUTILITY_A_D_FILES): +include $(wildcard $(LIBJUTILITY_A_D_FILES)) +endif diff --git a/libs/MSL_C/Makefile b/libs/MSL_C/Makefile index 2f0e5a83177..f918f899032 100644 --- a/libs/MSL_C/Makefile +++ b/libs/MSL_C/Makefile @@ -136,9 +136,16 @@ $(BUILD_DIR)/libMSL_C.a: $(LIBMSL_C_PPCEABI_BARE_H_A_O_FILES) @echo $(LIBMSL_C_PPCEABI_BARE_H_A_O_FILES) > build/LIBMSL_C_PPCEABI_BARE_H_A_ofiles @$(LD) -xm l $(LIBMSL_C_PPCEABI_BARE_H_A_LDFLAGS) -o $(BUILD_DIR)/libMSL_C.a @build/LIBMSL_C_PPCEABI_BARE_H_A_ofiles -$(BUILD_DIR)/libs/MSL_C/%.o: libs/MSL_C/%.c +$(BUILD_DIR)/libs/MSL_C/%.o: libs/MSL_C/%.c $(BUILD_DIR)/libs/MSL_C/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(CC) $(CFLAGS) $(LIBMSL_C_PPCEABI_BARE_H_A_CFLAGS) -c -o $@ $(basename $@).c + @$(CC) $(CFLAGS) $(LIBMSL_C_PPCEABI_BARE_H_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBMSL_C_PPCEABI_BARE_H_A_D_FILES := $(LIBMSL_C_PPCEABI_BARE_H_A_O_FILES:.o=.d) +$(LIBMSL_C_PPCEABI_BARE_H_A_D_FILES): +include $(wildcard $(LIBMSL_C_PPCEABI_BARE_H_A_D_FILES)) +endif diff --git a/libs/Runtime.PPCEABI.H/Makefile b/libs/Runtime.PPCEABI.H/Makefile index 1bb02dc5524..21ca78fcaca 100644 --- a/libs/Runtime.PPCEABI.H/Makefile +++ b/libs/Runtime.PPCEABI.H/Makefile @@ -42,14 +42,23 @@ $(BUILD_DIR)/libRuntime.PPCEABI.H.a: $(LIBRUNTIME_PPCEABI_H_A_O_FILES) @echo $(LIBRUNTIME_PPCEABI_H_A_O_FILES) > build/LIBRUNTIME_PPCEABI_H_A_ofiles @$(LD) -xm l $(LIBRUNTIME_PPCEABI_H_A_LDFLAGS) -o $(BUILD_DIR)/libRuntime.PPCEABI.H.a @build/LIBRUNTIME_PPCEABI_H_A_ofiles -$(BUILD_DIR)/libs/Runtime.PPCEABI.H/%.o: libs/Runtime.PPCEABI.H/%.cpp +$(BUILD_DIR)/libs/Runtime.PPCEABI.H/%.o: libs/Runtime.PPCEABI.H/%.cpp $(BUILD_DIR)/libs/Runtime.PPCEABI.H/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBRUNTIME_PPCEABI_H_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBRUNTIME_PPCEABI_H_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi -$(BUILD_DIR)/libs/Runtime.PPCEABI.H/%.o: libs/Runtime.PPCEABI.H/%.c +$(BUILD_DIR)/libs/Runtime.PPCEABI.H/%.o: libs/Runtime.PPCEABI.H/%.c $(BUILD_DIR)/libs/Runtime.PPCEABI.H/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(CC) $(CFLAGS) -c -o $@ $(basename $@).c + @$(CC) $(CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBRUNTIME_PPCEABI_H_A_D_FILES := $(LIBRUNTIME_PPCEABI_H_A_O_FILES:.o=.d) +$(LIBRUNTIME_PPCEABI_H_A_D_FILES): +include $(wildcard $(LIBRUNTIME_PPCEABI_H_A_D_FILES)) +endif + diff --git a/libs/SSystem/SComponent/Makefile b/libs/SSystem/SComponent/Makefile index a169474d195..7454ceff2a3 100644 --- a/libs/SSystem/SComponent/Makefile +++ b/libs/SSystem/SComponent/Makefile @@ -95,9 +95,16 @@ $(BUILD_DIR)/libSComponent.a: $(LIBSCOMPONENT_A_O_FILES) @echo $(LIBSCOMPONENT_A_O_FILES) > build/LIBSCOMPONENT_A_ofiles @$(LD) -xm l $(LIBSCOMPONENT_A_LDFLAGS) -o $(BUILD_DIR)/libSComponent.a @build/LIBSCOMPONENT_A_ofiles -$(BUILD_DIR)/libs/SSystem/SComponent/%.o: libs/SSystem/SComponent/%.cpp +$(BUILD_DIR)/libs/SSystem/SComponent/%.o: libs/SSystem/SComponent/%.cpp $(BUILD_DIR)/libs/SSystem/SComponent/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBSCOMPONENT_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBSCOMPONENT_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBSCOMPONENT_A_D_FILES := $(LIBSCOMPONENT_A_O_FILES:.o=.d) +$(LIBSCOMPONENT_A_D_FILES): +include $(wildcard $(LIBSCOMPONENT_A_D_FILES)) +endif diff --git a/libs/SSystem/SStandard/Makefile b/libs/SSystem/SStandard/Makefile index aceba2cd668..360ddb6c1b7 100644 --- a/libs/SSystem/SStandard/Makefile +++ b/libs/SSystem/SStandard/Makefile @@ -21,9 +21,16 @@ $(BUILD_DIR)/libSStandard.a: $(LIBSSTANDARD_A_O_FILES) @echo $(LIBSSTANDARD_A_O_FILES) > build/LIBSSTANDARD_A_ofiles @$(LD) -xm l $(LIBSSTANDARD_A_LDFLAGS) -o $(BUILD_DIR)/libSStandard.a @build/LIBSSTANDARD_A_ofiles -$(BUILD_DIR)/libs/SSystem/SStandard/%.o: libs/SSystem/SStandard/%.cpp +$(BUILD_DIR)/libs/SSystem/SStandard/%.o: libs/SSystem/SStandard/%.cpp $(BUILD_DIR)/libs/SSystem/SStandard/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBSSTANDARD_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBSSTANDARD_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBSSTANDARD_A_D_FILES := $(LIBSSTANDARD_A_O_FILES:.o=.d) +$(LIBSSTANDARD_A_D_FILES): +include $(wildcard $(LIBSSTANDARD_A_D_FILES)) +endif diff --git a/libs/TRK_MINNOW_DOLPHIN/Makefile b/libs/TRK_MINNOW_DOLPHIN/Makefile index a53fe1194e0..9845f05112f 100644 --- a/libs/TRK_MINNOW_DOLPHIN/Makefile +++ b/libs/TRK_MINNOW_DOLPHIN/Makefile @@ -82,8 +82,16 @@ $(BUILD_DIR)/libTRK_MINNOW_DOLPHIN.a: $(LIBTRK_MINNOW_DOLPHIN_A_O_FILES) @echo $(LIBTRK_MINNOW_DOLPHIN_A_O_FILES) > build/LIBTRK_MINNOW_DOLPHIN_A_ofiles @$(LD) -xm l $(LIBTRK_MINNOW_DOLPHIN_A_LDFLAGS) -o $(BUILD_DIR)/libTRK_MINNOW_DOLPHIN.a @build/LIBTRK_MINNOW_DOLPHIN_A_ofiles -$(BUILD_DIR)/libs/TRK_MINNOW_DOLPHIN/%.o: libs/TRK_MINNOW_DOLPHIN/%.c +$(BUILD_DIR)/libs/TRK_MINNOW_DOLPHIN/%.o: libs/TRK_MINNOW_DOLPHIN/%.c $(BUILD_DIR)/libs/TRK_MINNOW_DOLPHIN/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(CC) $(CFLAGS) $(LIBTRK_MINNOW_DOLPHIN_A_CFLAGS) -c -o $@ $(basename $@).c + @$(CC) $(CFLAGS) $(LIBTRK_MINNOW_DOLPHIN_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBTRK_MINNOW_DOLPHIN_A_D_FILES := $(LIBTRK_MINNOW_DOLPHIN_A_O_FILES:.o=.d) +$(LIBTRK_MINNOW_DOLPHIN_A_D_FILES): +include $(wildcard $(LIBTRK_MINNOW_DOLPHIN_A_D_FILES)) +endif + diff --git a/libs/Z2AudioLib/Makefile b/libs/Z2AudioLib/Makefile index c24d8ad2854..fd19aab54cb 100644 --- a/libs/Z2AudioLib/Makefile +++ b/libs/Z2AudioLib/Makefile @@ -61,9 +61,16 @@ $(BUILD_DIR)/libZ2AudioLib.a: $(LIBZ2AUDIOLIB_A_O_FILES) @echo $(LIBZ2AUDIOLIB_A_O_FILES) > build/LIBZ2AUDIOLIB_A_ofiles @$(LD) -xm l $(LIBZ2AUDIOLIB_A_LDFLAGS) -o $(BUILD_DIR)/libZ2AudioLib.a @build/LIBZ2AUDIOLIB_A_ofiles -$(BUILD_DIR)/libs/Z2AudioLib/%.o: libs/Z2AudioLib/%.cpp +$(BUILD_DIR)/libs/Z2AudioLib/%.o: libs/Z2AudioLib/%.cpp $(BUILD_DIR)/libs/Z2AudioLib/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBZ2AUDIOLIB_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBZ2AUDIOLIB_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBZ2AUDIOLIB_A_D_FILES := $(LIBZ2AUDIOLIB_A_O_FILES:.o=.d) +$(LIBZ2AUDIOLIB_A_D_FILES): +include $(wildcard $(LIBZ2AUDIOLIB_A_D_FILES)) +endif diff --git a/libs/amcstubs/Makefile b/libs/amcstubs/Makefile index ec8f5ba003f..4b60d2e390b 100644 --- a/libs/amcstubs/Makefile +++ b/libs/amcstubs/Makefile @@ -23,9 +23,16 @@ $(BUILD_DIR)/libamcstubs.a: $(LIBAMCSTUBS_A_O_FILES) @echo $(LIBAMCSTUBS_A_O_FILES) > build/LIBAMCSTUBS_A_ofiles @$(LD) -xm l $(LIBAMCSTUBS_A_LDFLAGS) -o $(BUILD_DIR)/libamcstubs.a @build/LIBAMCSTUBS_A_ofiles -$(BUILD_DIR)/libs/amcstubs/%.o: libs/amcstubs/%.c +$(BUILD_DIR)/libs/amcstubs/%.o: libs/amcstubs/%.c $(BUILD_DIR)/libs/amcstubs/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(CC) $(CFLAGS) $(LIBAMCSTUBS_A_CFLAGS) -c -o $@ $(basename $@).c + @$(CC) $(CFLAGS) $(LIBAMCSTUBS_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBAMCSTUBS_A_D_FILES := $(LIBAMCSTUBS_A_O_FILES:.o=.d) +$(LIBAMCSTUBS_A_D_FILES): +include $(wildcard $(LIBAMCSTUBS_A_D_FILES)) +endif diff --git a/libs/dolphin/ai/Makefile b/libs/dolphin/ai/Makefile index b4a68b263eb..256159ed072 100644 --- a/libs/dolphin/ai/Makefile +++ b/libs/dolphin/ai/Makefile @@ -31,10 +31,18 @@ $(BUILD_DIR)/libai.a: $(LIBAI_A_O_FILES) @echo $(LIBAI_A_O_FILES) > build/LIBAI_A_ofiles @$(LD) -xm l $(LIBAI_A_LDFLAGS) -o $(BUILD_DIR)/libai.a @build/LIBAI_A_ofiles -$(BUILD_DIR)/libs/dolphin/ai/%.o: libs/dolphin/ai/%.c +$(BUILD_DIR)/libs/dolphin/ai/%.o: libs/dolphin/ai/%.c $(BUILD_DIR)/libs/dolphin/ai/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBAI_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBAI_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ + +ifndef DISABLE_DEPS +LIBAI_A_D_FILES := $(LIBAI_A_O_FILES:.o=.d) +$(LIBAI_A_D_FILES): +include $(wildcard $(LIBAI_A_D_FILES)) +endif + diff --git a/libs/dolphin/ar/Makefile b/libs/dolphin/ar/Makefile index 0d2c1d0264c..0d583d014c6 100644 --- a/libs/dolphin/ar/Makefile +++ b/libs/dolphin/ar/Makefile @@ -33,11 +33,18 @@ $(BUILD_DIR)/libar.a: $(LIBAR_A_O_FILES) @echo $(LIBAR_A_O_FILES) > build/LIBAR_A_ofiles @$(LD) -xm l $(LIBAR_A_LDFLAGS) -o $(BUILD_DIR)/libar.a @build/LIBAR_A_ofiles -$(BUILD_DIR)/libs/dolphin/ar/%.o: libs/dolphin/ar/%.c +$(BUILD_DIR)/libs/dolphin/ar/%.o: libs/dolphin/ar/%.c $(BUILD_DIR)/libs/dolphin/ar/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBAR_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBAR_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBAR_A_D_FILES := $(LIBAR_A_O_FILES:.o=.d) +$(LIBAR_A_D_FILES): +include $(wildcard $(LIBAR_A_D_FILES)) +endif + diff --git a/libs/dolphin/base/Makefile b/libs/dolphin/base/Makefile index 91baf15200d..086f7cd8efc 100644 --- a/libs/dolphin/base/Makefile +++ b/libs/dolphin/base/Makefile @@ -23,11 +23,18 @@ $(BUILD_DIR)/libbase.a: $(LIBBASE_A_O_FILES) @echo $(LIBBASE_A_O_FILES) > build/LIBBASE_A_ofiles @$(LD) -xm l $(LIBBASE_A_LDFLAGS) -o $(BUILD_DIR)/libbase.a @build/LIBBASE_A_ofiles -$(BUILD_DIR)/libs/dolphin/base/%.o: libs/dolphin/base/%.c +$(BUILD_DIR)/libs/dolphin/base/%.o: libs/dolphin/base/%.c $(BUILD_DIR)/libs/dolphin/base/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(CFLAGS) $(LIBBASE_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(CFLAGS) $(LIBBASE_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBBASE_A_D_FILES := $(LIBBASE_A_O_FILES:.o=.d) +$(LIBBASE_A_D_FILES): +include $(wildcard $(LIBBASE_A_D_FILES)) +endif + diff --git a/libs/dolphin/card/Makefile b/libs/dolphin/card/Makefile index 1ff4e5596cb..ac749c4cf5a 100644 --- a/libs/dolphin/card/Makefile +++ b/libs/dolphin/card/Makefile @@ -57,11 +57,18 @@ $(BUILD_DIR)/libcard.a: $(LIBCARD_A_O_FILES) @echo $(LIBCARD_A_O_FILES) > build/LIBCARD_A_ofiles @$(LD) -xm l $(LIBCARD_A_LDFLAGS) -o $(BUILD_DIR)/libcard.a @build/LIBCARD_A_ofiles -$(BUILD_DIR)/libs/dolphin/card/%.o: libs/dolphin/card/%.c +$(BUILD_DIR)/libs/dolphin/card/%.o: libs/dolphin/card/%.c $(BUILD_DIR)/libs/dolphin/card/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBCARD_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBCARD_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBCARD_A_D_FILES := $(LIBCARD_A_O_FILES:.o=.d) +$(LIBCARD_A_D_FILES): +include $(wildcard $(LIBCARD_A_D_FILES)) +endif + diff --git a/libs/dolphin/db/Makefile b/libs/dolphin/db/Makefile index 6f6e3b5d726..3ad6bd440d5 100644 --- a/libs/dolphin/db/Makefile +++ b/libs/dolphin/db/Makefile @@ -31,11 +31,18 @@ $(BUILD_DIR)/libdb.a: $(LIBDB_A_O_FILES) @echo $(LIBDB_A_O_FILES) > build/LIBDB_A_ofiles @$(LD) -xm l $(LIBDB_A_LDFLAGS) -o $(BUILD_DIR)/libdb.a @build/LIBDB_A_ofiles -$(BUILD_DIR)/libs/dolphin/db/%.o: libs/dolphin/db/%.c +$(BUILD_DIR)/libs/dolphin/db/%.o: libs/dolphin/db/%.c $(BUILD_DIR)/libs/dolphin/db/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBDB_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBDB_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBDB_A_D_FILES := $(LIBDB_A_O_FILES:.o=.d) +$(LIBDB_A_D_FILES): +include $(wildcard $(LIBDB_A_D_FILES)) +endif + diff --git a/libs/dolphin/dsp/Makefile b/libs/dolphin/dsp/Makefile index 6cb9ad4e5bc..4987d752e5b 100644 --- a/libs/dolphin/dsp/Makefile +++ b/libs/dolphin/dsp/Makefile @@ -35,11 +35,18 @@ $(BUILD_DIR)/libdsp.a: $(LIBDSP_A_O_FILES) @echo $(LIBDSP_A_O_FILES) > build/LIBDSP_A_ofiles @$(LD) -xm l $(LIBDSP_A_LDFLAGS) -o $(BUILD_DIR)/libdsp.a @build/LIBDSP_A_ofiles -$(BUILD_DIR)/libs/dolphin/dsp/%.o: libs/dolphin/dsp/%.c +$(BUILD_DIR)/libs/dolphin/dsp/%.o: libs/dolphin/dsp/%.c $(BUILD_DIR)/libs/dolphin/dsp/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBDSP_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBDSP_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBDSP_A_D_FILES := $(LIBDSP_A_O_FILES:.o=.d) +$(LIBDSP_A_D_FILES): +include $(wildcard $(LIBDSP_A_D_FILES)) +endif + diff --git a/libs/dolphin/dvd/Makefile b/libs/dolphin/dvd/Makefile index fdbbf629972..da1943fdb2b 100644 --- a/libs/dolphin/dvd/Makefile +++ b/libs/dolphin/dvd/Makefile @@ -45,11 +45,18 @@ $(BUILD_DIR)/libdvd.a: $(LIBDVD_A_O_FILES) @echo $(LIBDVD_A_O_FILES) > build/LIBDVD_A_ofiles @$(LD) -xm l $(LIBDVD_A_LDFLAGS) -o $(BUILD_DIR)/libdvd.a @build/LIBDVD_A_ofiles -$(BUILD_DIR)/libs/dolphin/dvd/%.o: libs/dolphin/dvd/%.c +$(BUILD_DIR)/libs/dolphin/dvd/%.o: libs/dolphin/dvd/%.c $(BUILD_DIR)/libs/dolphin/dvd/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBDVD_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBDVD_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBDVD_A_D_FILES := $(LIBDVD_A_O_FILES:.o=.d) +$(LIBDVD_A_D_FILES): +include $(wildcard $(LIBDVD_A_D_FILES)) +endif + diff --git a/libs/dolphin/exi/Makefile b/libs/dolphin/exi/Makefile index ebed15640c5..e37f98a2d3f 100644 --- a/libs/dolphin/exi/Makefile +++ b/libs/dolphin/exi/Makefile @@ -33,11 +33,18 @@ $(BUILD_DIR)/libexi.a: $(LIBEXI_A_O_FILES) @echo $(LIBEXI_A_O_FILES) > build/LIBEXI_A_ofiles @$(LD) -xm l $(LIBEXI_A_LDFLAGS) -o $(BUILD_DIR)/libexi.a @build/LIBEXI_A_ofiles -$(BUILD_DIR)/libs/dolphin/exi/%.o: libs/dolphin/exi/%.c +$(BUILD_DIR)/libs/dolphin/exi/%.o: libs/dolphin/exi/%.c $(BUILD_DIR)/libs/dolphin/exi/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBEXI_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBEXI_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBEXI_A_D_FILES := $(LIBEXI_A_O_FILES:.o=.d) +$(LIBEXI_A_D_FILES): +include $(wildcard $(LIBEXI_A_D_FILES)) +endif + diff --git a/libs/dolphin/gd/Makefile b/libs/dolphin/gd/Makefile index 83c2cfe71cc..6388955b906 100644 --- a/libs/dolphin/gd/Makefile +++ b/libs/dolphin/gd/Makefile @@ -33,11 +33,18 @@ $(BUILD_DIR)/libgd.a: $(LIBGD_A_O_FILES) @echo $(LIBGD_A_O_FILES) > build/LIBGD_A_ofiles @$(LD) -xm l $(LIBGD_A_LDFLAGS) -o $(BUILD_DIR)/libgd.a @build/LIBGD_A_ofiles -$(BUILD_DIR)/libs/dolphin/gd/%.o: libs/dolphin/gd/%.c +$(BUILD_DIR)/libs/dolphin/gd/%.o: libs/dolphin/gd/%.c $(BUILD_DIR)/libs/dolphin/gd/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBGD_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBGD_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBGD_A_D_FILES := $(LIBGD_A_O_FILES:.o=.d) +$(LIBGD_A_D_FILES): +include $(wildcard $(LIBGD_A_D_FILES)) +endif + diff --git a/libs/dolphin/gf/Makefile b/libs/dolphin/gf/Makefile index ed9e459fd64..dd5da0f01e9 100644 --- a/libs/dolphin/gf/Makefile +++ b/libs/dolphin/gf/Makefile @@ -27,9 +27,16 @@ $(BUILD_DIR)/libgf.a: $(LIBGF_A_O_FILES) @echo $(LIBGF_A_O_FILES) > build/LIBGF_A_ofiles @$(LD) -xm l $(LIBGF_A_LDFLAGS) -o $(BUILD_DIR)/libgf.a @build/LIBGF_A_ofiles -$(BUILD_DIR)/libs/dolphin/gf/%.o: libs/dolphin/gf/%.cpp +$(BUILD_DIR)/libs/dolphin/gf/%.o: libs/dolphin/gf/%.cpp $(BUILD_DIR)/libs/dolphin/gf/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBGF_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBGF_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBGF_A_D_FILES := $(LIBGF_A_O_FILES:.o=.d) +$(LIBGF_A_D_FILES): +include $(wildcard $(LIBGF_A_D_FILES)) +endif diff --git a/libs/dolphin/gx/Makefile b/libs/dolphin/gx/Makefile index 3278a71f3d0..33bca405fb0 100644 --- a/libs/dolphin/gx/Makefile +++ b/libs/dolphin/gx/Makefile @@ -49,11 +49,18 @@ $(BUILD_DIR)/libgx.a: $(LIBGX_A_O_FILES) @echo $(LIBGX_A_O_FILES) > build/LIBGX_A_ofiles @$(LD) -xm l $(LIBGX_A_LDFLAGS) -o $(BUILD_DIR)/libgx.a @build/LIBGX_A_ofiles -$(BUILD_DIR)/libs/dolphin/gx/%.o: libs/dolphin/gx/%.c +$(BUILD_DIR)/libs/dolphin/gx/%.o: libs/dolphin/gx/%.c $(BUILD_DIR)/libs/dolphin/gx/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(CFLAGS) $(LIBGX_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(CFLAGS) $(LIBGX_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBGX_A_D_FILES := $(LIBGX_A_O_FILES:.o=.d) +$(LIBGX_A_D_FILES): +include $(wildcard $(LIBGX_A_D_FILES)) +endif + diff --git a/libs/dolphin/mtx/Makefile b/libs/dolphin/mtx/Makefile index 3262e3e80d0..99f00a40d9c 100644 --- a/libs/dolphin/mtx/Makefile +++ b/libs/dolphin/mtx/Makefile @@ -31,11 +31,18 @@ $(BUILD_DIR)/libmtx.a: $(LIBMTX_A_O_FILES) @echo $(LIBMTX_A_O_FILES) > build/LIBMTX_A_ofiles @$(LD) -xm l $(LIBMTX_A_LDFLAGS) -o $(BUILD_DIR)/libmtx.a @build/LIBMTX_A_ofiles -$(BUILD_DIR)/libs/dolphin/mtx/%.o: libs/dolphin/mtx/%.c +$(BUILD_DIR)/libs/dolphin/mtx/%.o: libs/dolphin/mtx/%.c $(BUILD_DIR)/libs/dolphin/mtx/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(CFLAGS) $(LIBMTX_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(CFLAGS) $(LIBMTX_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBMTX_A_D_FILES := $(LIBMTX_A_O_FILES:.o=.d) +$(LIBMTX_A_D_FILES): +include $(wildcard $(LIBMTX_A_D_FILES)) +endif + diff --git a/libs/dolphin/os/Makefile b/libs/dolphin/os/Makefile index b757133808a..d9818d6ca02 100644 --- a/libs/dolphin/os/Makefile +++ b/libs/dolphin/os/Makefile @@ -75,11 +75,18 @@ $(BUILD_DIR)/libos.a: $(LIBOS_A_O_FILES) @echo $(LIBOS_A_O_FILES) > build/LIBOS_A_ofiles @$(LD) -xm l $(LIBOS_A_LDFLAGS) -o $(BUILD_DIR)/libos.a @build/LIBOS_A_ofiles -$(BUILD_DIR)/libs/dolphin/os/%.o: libs/dolphin/os/%.c +$(BUILD_DIR)/libs/dolphin/os/%.o: libs/dolphin/os/%.c $(BUILD_DIR)/libs/dolphin/os/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBOS_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBOS_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBOS_A_D_FILES := $(LIBOS_A_O_FILES:.o=.d) +$(LIBOS_A_D_FILES): +include $(wildcard $(LIBOS_A_D_FILES)) +endif + diff --git a/libs/dolphin/pad/Makefile b/libs/dolphin/pad/Makefile index 27f49a6db12..b5313939574 100644 --- a/libs/dolphin/pad/Makefile +++ b/libs/dolphin/pad/Makefile @@ -33,11 +33,18 @@ $(BUILD_DIR)/libpad.a: $(LIBPAD_A_O_FILES) @echo $(LIBPAD_A_O_FILES) > build/LIBPAD_A_ofiles @$(LD) -xm l $(LIBPAD_A_LDFLAGS) -o $(BUILD_DIR)/libpad.a @build/LIBPAD_A_ofiles -$(BUILD_DIR)/libs/dolphin/pad/%.o: libs/dolphin/pad/%.c +$(BUILD_DIR)/libs/dolphin/pad/%.o: libs/dolphin/pad/%.c $(BUILD_DIR)/libs/dolphin/pad/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBPAD_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBPAD_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBPAD_A_D_FILES := $(LIBPAD_A_O_FILES:.o=.d) +$(LIBPAD_A_D_FILES): +include $(wildcard $(LIBPAD_A_D_FILES)) +endif + diff --git a/libs/dolphin/si/Makefile b/libs/dolphin/si/Makefile index 31460266071..892875eae39 100644 --- a/libs/dolphin/si/Makefile +++ b/libs/dolphin/si/Makefile @@ -33,11 +33,18 @@ $(BUILD_DIR)/libsi.a: $(LIBSI_A_O_FILES) @echo $(LIBSI_A_O_FILES) > build/LIBSI_A_ofiles @$(LD) -xm l $(LIBSI_A_LDFLAGS) -o $(BUILD_DIR)/libsi.a @build/LIBSI_A_ofiles -$(BUILD_DIR)/libs/dolphin/si/%.o: libs/dolphin/si/%.c +$(BUILD_DIR)/libs/dolphin/si/%.o: libs/dolphin/si/%.c $(BUILD_DIR)/libs/dolphin/si/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBSI_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBSI_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBSI_A_D_FILES := $(LIBSI_A_O_FILES:.o=.d) +$(LIBSI_A_D_FILES): +include $(wildcard $(LIBSI_A_D_FILES)) +endif + diff --git a/libs/dolphin/vi/Makefile b/libs/dolphin/vi/Makefile index b59f0351ac9..17c0b6f8ebf 100644 --- a/libs/dolphin/vi/Makefile +++ b/libs/dolphin/vi/Makefile @@ -31,11 +31,18 @@ $(BUILD_DIR)/libvi.a: $(LIBVI_A_O_FILES) @echo $(LIBVI_A_O_FILES) > build/LIBVI_A_ofiles @$(LD) -xm l $(LIBVI_A_LDFLAGS) -o $(BUILD_DIR)/libvi.a @build/LIBVI_A_ofiles -$(BUILD_DIR)/libs/dolphin/vi/%.o: libs/dolphin/vi/%.c +$(BUILD_DIR)/libs/dolphin/vi/%.o: libs/dolphin/vi/%.c $(BUILD_DIR)/libs/dolphin/vi/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c - @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBVI_A_CFLAGS) -c -o $@ $(basename $@).c + @$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBVI_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi @echo Frank is fixing $@ @$(PYTHON) $(FRANK) $@ $@ $@ +ifndef DISABLE_DEPS +LIBVI_A_D_FILES := $(LIBVI_A_O_FILES:.o=.d) +$(LIBVI_A_D_FILES): +include $(wildcard $(LIBVI_A_D_FILES)) +endif + diff --git a/libs/odemuexi2/Makefile b/libs/odemuexi2/Makefile index 437019d19c3..5096cb5419d 100644 --- a/libs/odemuexi2/Makefile +++ b/libs/odemuexi2/Makefile @@ -21,9 +21,16 @@ $(BUILD_DIR)/libodemuexi2.a: $(LIBODEMUEXI2_A_O_FILES) @echo $(LIBODEMUEXI2_A_O_FILES) > build/LIBODEMUEXI2_A_ofiles @$(LD) -xm l $(LIBODEMUEXI2_A_LDFLAGS) -o $(BUILD_DIR)/libodemuexi2.a @build/LIBODEMUEXI2_A_ofiles -$(BUILD_DIR)/libs/odemuexi2/%.o: libs/odemuexi2/%.cpp +$(BUILD_DIR)/libs/odemuexi2/%.o: libs/odemuexi2/%.cpp $(BUILD_DIR)/libs/odemuexi2/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBODEMUEXI2_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBODEMUEXI2_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBODEMUEXI2_A_D_FILES := $(LIBODEMUEXI2_A_O_FILES:.o=.d) +$(LIBODEMUEXI2_A_D_FILES): +include $(wildcard $(LIBODEMUEXI2_A_D_FILES)) +endif diff --git a/libs/odenotstub/Makefile b/libs/odenotstub/Makefile index 0ac22f017bd..6b8a92c5297 100644 --- a/libs/odenotstub/Makefile +++ b/libs/odenotstub/Makefile @@ -21,9 +21,16 @@ $(BUILD_DIR)/libodenotstub.a: $(LIBODENOTSTUB_A_O_FILES) @echo $(LIBODENOTSTUB_A_O_FILES) > build/LIBODENOTSTUB_A_ofiles @$(LD) -xm l $(LIBODENOTSTUB_A_LDFLAGS) -o $(BUILD_DIR)/libodenotstub.a @build/LIBODENOTSTUB_A_ofiles -$(BUILD_DIR)/libs/odenotstub/%.o: libs/odenotstub/%.cpp +$(BUILD_DIR)/libs/odenotstub/%.o: libs/odenotstub/%.cpp $(BUILD_DIR)/libs/odenotstub/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBODENOTSTUB_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBODENOTSTUB_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +LIBODENOTSTUB_A_D_FILES := $(LIBODENOTSTUB_A_O_FILES:.o=.d) +$(LIBODENOTSTUB_A_D_FILES): +include $(wildcard $(LIBODENOTSTUB_A_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_bh/Makefile b/rel/d/a/b/d_a_b_bh/Makefile index 7b69832af1e..daef92e41bc 100644 --- a/rel/d/a/b/d_a_b_bh/Makefile +++ b/rel/d/a/b/d_a_b_bh/Makefile @@ -40,10 +40,17 @@ $(M138_TARGET): $(M138_O_FILES) $(M138_LIBS) @python3 tools/lcf.py rel 138 --output $(M138_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M138_LDFLAGS) -o $(M138_TARGET) @build/M138_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_bh/%.o: rel/d/a/b/d_a_b_bh/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_bh/%.o: rel/d/a/b/d_a_b_bh/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_bh/%.d @echo [138] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M138_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M138_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M138_D_FILES := $(M138_O_FILES:.o=.d) +$(M138_D_FILES): +include $(wildcard $(M138_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_bq/Makefile b/rel/d/a/b/d_a_b_bq/Makefile index 76524d0e8b1..a53cc02cf7e 100644 --- a/rel/d/a/b/d_a_b_bq/Makefile +++ b/rel/d/a/b/d_a_b_bq/Makefile @@ -40,10 +40,17 @@ $(M139_TARGET): $(M139_O_FILES) $(M139_LIBS) @python3 tools/lcf.py rel 139 --output $(M139_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M139_LDFLAGS) -o $(M139_TARGET) @build/M139_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_bq/%.o: rel/d/a/b/d_a_b_bq/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_bq/%.o: rel/d/a/b/d_a_b_bq/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_bq/%.d @echo [139] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M139_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M139_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M139_D_FILES := $(M139_O_FILES:.o=.d) +$(M139_D_FILES): +include $(wildcard $(M139_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_dr/Makefile b/rel/d/a/b/d_a_b_dr/Makefile index 1a9459b8fbd..fe9887c668a 100644 --- a/rel/d/a/b/d_a_b_dr/Makefile +++ b/rel/d/a/b/d_a_b_dr/Makefile @@ -40,10 +40,17 @@ $(M140_TARGET): $(M140_O_FILES) $(M140_LIBS) @python3 tools/lcf.py rel 140 --output $(M140_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M140_LDFLAGS) -o $(M140_TARGET) @build/M140_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_dr/%.o: rel/d/a/b/d_a_b_dr/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_dr/%.o: rel/d/a/b/d_a_b_dr/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_dr/%.d @echo [140] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M140_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M140_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M140_D_FILES := $(M140_O_FILES:.o=.d) +$(M140_D_FILES): +include $(wildcard $(M140_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_dre/Makefile b/rel/d/a/b/d_a_b_dre/Makefile index cde40d49b65..444d4ed26a6 100644 --- a/rel/d/a/b/d_a_b_dre/Makefile +++ b/rel/d/a/b/d_a_b_dre/Makefile @@ -40,10 +40,17 @@ $(M141_TARGET): $(M141_O_FILES) $(M141_LIBS) @python3 tools/lcf.py rel 141 --output $(M141_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M141_LDFLAGS) -o $(M141_TARGET) @build/M141_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_dre/%.o: rel/d/a/b/d_a_b_dre/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_dre/%.o: rel/d/a/b/d_a_b_dre/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_dre/%.d @echo [141] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M141_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M141_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M141_D_FILES := $(M141_O_FILES:.o=.d) +$(M141_D_FILES): +include $(wildcard $(M141_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_ds/Makefile b/rel/d/a/b/d_a_b_ds/Makefile index b5401b5e742..1f750cba005 100644 --- a/rel/d/a/b/d_a_b_ds/Makefile +++ b/rel/d/a/b/d_a_b_ds/Makefile @@ -40,10 +40,17 @@ $(M142_TARGET): $(M142_O_FILES) $(M142_LIBS) @python3 tools/lcf.py rel 142 --output $(M142_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M142_LDFLAGS) -o $(M142_TARGET) @build/M142_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_ds/%.o: rel/d/a/b/d_a_b_ds/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_ds/%.o: rel/d/a/b/d_a_b_ds/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_ds/%.d @echo [142] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M142_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M142_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M142_D_FILES := $(M142_O_FILES:.o=.d) +$(M142_D_FILES): +include $(wildcard $(M142_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_gg/Makefile b/rel/d/a/b/d_a_b_gg/Makefile index 6bb489dfa84..15d3de7999e 100644 --- a/rel/d/a/b/d_a_b_gg/Makefile +++ b/rel/d/a/b/d_a_b_gg/Makefile @@ -40,10 +40,17 @@ $(M143_TARGET): $(M143_O_FILES) $(M143_LIBS) @python3 tools/lcf.py rel 143 --output $(M143_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M143_LDFLAGS) -o $(M143_TARGET) @build/M143_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_gg/%.o: rel/d/a/b/d_a_b_gg/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_gg/%.o: rel/d/a/b/d_a_b_gg/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_gg/%.d @echo [143] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M143_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M143_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M143_D_FILES := $(M143_O_FILES:.o=.d) +$(M143_D_FILES): +include $(wildcard $(M143_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_gm/Makefile b/rel/d/a/b/d_a_b_gm/Makefile index 82d020405c3..40607ebe23a 100644 --- a/rel/d/a/b/d_a_b_gm/Makefile +++ b/rel/d/a/b/d_a_b_gm/Makefile @@ -40,10 +40,17 @@ $(M144_TARGET): $(M144_O_FILES) $(M144_LIBS) @python3 tools/lcf.py rel 144 --output $(M144_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M144_LDFLAGS) -o $(M144_TARGET) @build/M144_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_gm/%.o: rel/d/a/b/d_a_b_gm/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_gm/%.o: rel/d/a/b/d_a_b_gm/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_gm/%.d @echo [144] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M144_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M144_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M144_D_FILES := $(M144_O_FILES:.o=.d) +$(M144_D_FILES): +include $(wildcard $(M144_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_gnd/Makefile b/rel/d/a/b/d_a_b_gnd/Makefile index fa3ea704798..447b6bcc240 100644 --- a/rel/d/a/b/d_a_b_gnd/Makefile +++ b/rel/d/a/b/d_a_b_gnd/Makefile @@ -40,10 +40,17 @@ $(M145_TARGET): $(M145_O_FILES) $(M145_LIBS) @python3 tools/lcf.py rel 145 --output $(M145_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M145_LDFLAGS) -o $(M145_TARGET) @build/M145_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_gnd/%.o: rel/d/a/b/d_a_b_gnd/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_gnd/%.o: rel/d/a/b/d_a_b_gnd/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_gnd/%.d @echo [145] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M145_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M145_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M145_D_FILES := $(M145_O_FILES:.o=.d) +$(M145_D_FILES): +include $(wildcard $(M145_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_go/Makefile b/rel/d/a/b/d_a_b_go/Makefile index 16d1f78a8b5..3e290773699 100644 --- a/rel/d/a/b/d_a_b_go/Makefile +++ b/rel/d/a/b/d_a_b_go/Makefile @@ -40,10 +40,17 @@ $(M146_TARGET): $(M146_O_FILES) $(M146_LIBS) @python3 tools/lcf.py rel 146 --output $(M146_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M146_LDFLAGS) -o $(M146_TARGET) @build/M146_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_go/%.o: rel/d/a/b/d_a_b_go/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_go/%.o: rel/d/a/b/d_a_b_go/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_go/%.d @echo [146] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M146_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M146_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M146_D_FILES := $(M146_O_FILES:.o=.d) +$(M146_D_FILES): +include $(wildcard $(M146_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_gos/Makefile b/rel/d/a/b/d_a_b_gos/Makefile index 9658ff7302e..a9bda44c2b4 100644 --- a/rel/d/a/b/d_a_b_gos/Makefile +++ b/rel/d/a/b/d_a_b_gos/Makefile @@ -40,10 +40,17 @@ $(M147_TARGET): $(M147_O_FILES) $(M147_LIBS) @python3 tools/lcf.py rel 147 --output $(M147_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M147_LDFLAGS) -o $(M147_TARGET) @build/M147_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_gos/%.o: rel/d/a/b/d_a_b_gos/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_gos/%.o: rel/d/a/b/d_a_b_gos/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_gos/%.d @echo [147] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M147_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M147_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M147_D_FILES := $(M147_O_FILES:.o=.d) +$(M147_D_FILES): +include $(wildcard $(M147_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_mgn/Makefile b/rel/d/a/b/d_a_b_mgn/Makefile index 043b258dc52..b6092e796ac 100644 --- a/rel/d/a/b/d_a_b_mgn/Makefile +++ b/rel/d/a/b/d_a_b_mgn/Makefile @@ -40,10 +40,17 @@ $(M148_TARGET): $(M148_O_FILES) $(M148_LIBS) @python3 tools/lcf.py rel 148 --output $(M148_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M148_LDFLAGS) -o $(M148_TARGET) @build/M148_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_mgn/%.o: rel/d/a/b/d_a_b_mgn/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_mgn/%.o: rel/d/a/b/d_a_b_mgn/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_mgn/%.d @echo [148] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M148_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M148_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M148_D_FILES := $(M148_O_FILES:.o=.d) +$(M148_D_FILES): +include $(wildcard $(M148_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_ob/Makefile b/rel/d/a/b/d_a_b_ob/Makefile index 8a81632a4ed..b01544b1844 100644 --- a/rel/d/a/b/d_a_b_ob/Makefile +++ b/rel/d/a/b/d_a_b_ob/Makefile @@ -40,10 +40,17 @@ $(M149_TARGET): $(M149_O_FILES) $(M149_LIBS) @python3 tools/lcf.py rel 149 --output $(M149_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M149_LDFLAGS) -o $(M149_TARGET) @build/M149_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_ob/%.o: rel/d/a/b/d_a_b_ob/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_ob/%.o: rel/d/a/b/d_a_b_ob/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_ob/%.d @echo [149] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M149_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M149_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M149_D_FILES := $(M149_O_FILES:.o=.d) +$(M149_D_FILES): +include $(wildcard $(M149_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_oh/Makefile b/rel/d/a/b/d_a_b_oh/Makefile index 771b0f61658..f1af08f8628 100644 --- a/rel/d/a/b/d_a_b_oh/Makefile +++ b/rel/d/a/b/d_a_b_oh/Makefile @@ -40,10 +40,17 @@ $(M150_TARGET): $(M150_O_FILES) $(M150_LIBS) @python3 tools/lcf.py rel 150 --output $(M150_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M150_LDFLAGS) -o $(M150_TARGET) @build/M150_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_oh/%.o: rel/d/a/b/d_a_b_oh/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_oh/%.o: rel/d/a/b/d_a_b_oh/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_oh/%.d @echo [150] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M150_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M150_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M150_D_FILES := $(M150_O_FILES:.o=.d) +$(M150_D_FILES): +include $(wildcard $(M150_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_oh2/Makefile b/rel/d/a/b/d_a_b_oh2/Makefile index 546fc53dcfb..02a7be9e8eb 100644 --- a/rel/d/a/b/d_a_b_oh2/Makefile +++ b/rel/d/a/b/d_a_b_oh2/Makefile @@ -38,10 +38,17 @@ $(M151_TARGET): $(M151_O_FILES) $(M151_LIBS) @python3 tools/lcf.py rel 151 --output $(M151_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M151_LDFLAGS) -o $(M151_TARGET) @build/M151_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_oh2/%.o: rel/d/a/b/d_a_b_oh2/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_oh2/%.o: rel/d/a/b/d_a_b_oh2/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_oh2/%.d @echo [151] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M151_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M151_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M151_D_FILES := $(M151_O_FILES:.o=.d) +$(M151_D_FILES): +include $(wildcard $(M151_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_tn/Makefile b/rel/d/a/b/d_a_b_tn/Makefile index 2597681fd88..9c428f7c271 100644 --- a/rel/d/a/b/d_a_b_tn/Makefile +++ b/rel/d/a/b/d_a_b_tn/Makefile @@ -40,10 +40,17 @@ $(M152_TARGET): $(M152_O_FILES) $(M152_LIBS) @python3 tools/lcf.py rel 152 --output $(M152_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M152_LDFLAGS) -o $(M152_TARGET) @build/M152_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_tn/%.o: rel/d/a/b/d_a_b_tn/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_tn/%.o: rel/d/a/b/d_a_b_tn/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_tn/%.d @echo [152] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M152_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M152_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M152_D_FILES := $(M152_O_FILES:.o=.d) +$(M152_D_FILES): +include $(wildcard $(M152_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_yo/Makefile b/rel/d/a/b/d_a_b_yo/Makefile index f129c068755..b25889c3d74 100644 --- a/rel/d/a/b/d_a_b_yo/Makefile +++ b/rel/d/a/b/d_a_b_yo/Makefile @@ -40,10 +40,17 @@ $(M153_TARGET): $(M153_O_FILES) $(M153_LIBS) @python3 tools/lcf.py rel 153 --output $(M153_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M153_LDFLAGS) -o $(M153_TARGET) @build/M153_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_yo/%.o: rel/d/a/b/d_a_b_yo/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_yo/%.o: rel/d/a/b/d_a_b_yo/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_yo/%.d @echo [153] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M153_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M153_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M153_D_FILES := $(M153_O_FILES:.o=.d) +$(M153_D_FILES): +include $(wildcard $(M153_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_yo_ice/Makefile b/rel/d/a/b/d_a_b_yo_ice/Makefile index 72e381b3d41..c9b4b7f5e42 100644 --- a/rel/d/a/b/d_a_b_yo_ice/Makefile +++ b/rel/d/a/b/d_a_b_yo_ice/Makefile @@ -40,10 +40,17 @@ $(M154_TARGET): $(M154_O_FILES) $(M154_LIBS) @python3 tools/lcf.py rel 154 --output $(M154_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M154_LDFLAGS) -o $(M154_TARGET) @build/M154_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_yo_ice/%.o: rel/d/a/b/d_a_b_yo_ice/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_yo_ice/%.o: rel/d/a/b/d_a_b_yo_ice/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_yo_ice/%.d @echo [154] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M154_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M154_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M154_D_FILES := $(M154_O_FILES:.o=.d) +$(M154_D_FILES): +include $(wildcard $(M154_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_zant/Makefile b/rel/d/a/b/d_a_b_zant/Makefile index 10a9c705de8..2e43b48f361 100644 --- a/rel/d/a/b/d_a_b_zant/Makefile +++ b/rel/d/a/b/d_a_b_zant/Makefile @@ -40,10 +40,17 @@ $(M155_TARGET): $(M155_O_FILES) $(M155_LIBS) @python3 tools/lcf.py rel 155 --output $(M155_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M155_LDFLAGS) -o $(M155_TARGET) @build/M155_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_zant/%.o: rel/d/a/b/d_a_b_zant/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_zant/%.o: rel/d/a/b/d_a_b_zant/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_zant/%.d @echo [155] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M155_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M155_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M155_D_FILES := $(M155_O_FILES:.o=.d) +$(M155_D_FILES): +include $(wildcard $(M155_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_zant_magic/Makefile b/rel/d/a/b/d_a_b_zant_magic/Makefile index a426e7254a0..3c282a419ff 100644 --- a/rel/d/a/b/d_a_b_zant_magic/Makefile +++ b/rel/d/a/b/d_a_b_zant_magic/Makefile @@ -38,10 +38,17 @@ $(M156_TARGET): $(M156_O_FILES) $(M156_LIBS) @python3 tools/lcf.py rel 156 --output $(M156_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M156_LDFLAGS) -o $(M156_TARGET) @build/M156_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_zant_magic/%.o: rel/d/a/b/d_a_b_zant_magic/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_zant_magic/%.o: rel/d/a/b/d_a_b_zant_magic/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_zant_magic/%.d @echo [156] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M156_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M156_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M156_D_FILES := $(M156_O_FILES:.o=.d) +$(M156_D_FILES): +include $(wildcard $(M156_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_zant_mobile/Makefile b/rel/d/a/b/d_a_b_zant_mobile/Makefile index ac6b0c6f073..095eed4c7f6 100644 --- a/rel/d/a/b/d_a_b_zant_mobile/Makefile +++ b/rel/d/a/b/d_a_b_zant_mobile/Makefile @@ -40,10 +40,17 @@ $(M157_TARGET): $(M157_O_FILES) $(M157_LIBS) @python3 tools/lcf.py rel 157 --output $(M157_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M157_LDFLAGS) -o $(M157_TARGET) @build/M157_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_zant_mobile/%.o: rel/d/a/b/d_a_b_zant_mobile/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_zant_mobile/%.o: rel/d/a/b/d_a_b_zant_mobile/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_zant_mobile/%.d @echo [157] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M157_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M157_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M157_D_FILES := $(M157_O_FILES:.o=.d) +$(M157_D_FILES): +include $(wildcard $(M157_D_FILES)) +endif diff --git a/rel/d/a/b/d_a_b_zant_sima/Makefile b/rel/d/a/b/d_a_b_zant_sima/Makefile index 00f1589e2e4..f1051d1ed1d 100644 --- a/rel/d/a/b/d_a_b_zant_sima/Makefile +++ b/rel/d/a/b/d_a_b_zant_sima/Makefile @@ -38,10 +38,17 @@ $(M158_TARGET): $(M158_O_FILES) $(M158_LIBS) @python3 tools/lcf.py rel 158 --output $(M158_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M158_LDFLAGS) -o $(M158_TARGET) @build/M158_ofiles -$(BUILD_DIR)/rel/d/a/b/d_a_b_zant_sima/%.o: rel/d/a/b/d_a_b_zant_sima/%.cpp +$(BUILD_DIR)/rel/d/a/b/d_a_b_zant_sima/%.o: rel/d/a/b/d_a_b_zant_sima/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_zant_sima/%.d @echo [158] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M158_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M158_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M158_D_FILES := $(M158_O_FILES:.o=.d) +$(M158_D_FILES): +include $(wildcard $(M158_D_FILES)) +endif diff --git a/rel/d/a/d_a_L7demo_dr/Makefile b/rel/d/a/d_a_L7demo_dr/Makefile index 488825561c5..7b1359a45b9 100644 --- a/rel/d/a/d_a_L7demo_dr/Makefile +++ b/rel/d/a/d_a_L7demo_dr/Makefile @@ -38,10 +38,17 @@ $(M135_TARGET): $(M135_O_FILES) $(M135_LIBS) @python3 tools/lcf.py rel 135 --output $(M135_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M135_LDFLAGS) -o $(M135_TARGET) @build/M135_ofiles -$(BUILD_DIR)/rel/d/a/d_a_L7demo_dr/%.o: rel/d/a/d_a_L7demo_dr/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_L7demo_dr/%.o: rel/d/a/d_a_L7demo_dr/%.cpp $(BUILD_DIR)/rel/d/a/d_a_L7demo_dr/%.d @echo [135] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M135_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M135_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M135_D_FILES := $(M135_O_FILES:.o=.d) +$(M135_D_FILES): +include $(wildcard $(M135_D_FILES)) +endif diff --git a/rel/d/a/d_a_L7low_dr/Makefile b/rel/d/a/d_a_L7low_dr/Makefile index 978b8ac4e50..846dce1ef29 100644 --- a/rel/d/a/d_a_L7low_dr/Makefile +++ b/rel/d/a/d_a_L7low_dr/Makefile @@ -38,10 +38,17 @@ $(M136_TARGET): $(M136_O_FILES) $(M136_LIBS) @python3 tools/lcf.py rel 136 --output $(M136_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M136_LDFLAGS) -o $(M136_TARGET) @build/M136_ofiles -$(BUILD_DIR)/rel/d/a/d_a_L7low_dr/%.o: rel/d/a/d_a_L7low_dr/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_L7low_dr/%.o: rel/d/a/d_a_L7low_dr/%.cpp $(BUILD_DIR)/rel/d/a/d_a_L7low_dr/%.d @echo [136] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M136_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M136_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M136_D_FILES := $(M136_O_FILES:.o=.d) +$(M136_D_FILES): +include $(wildcard $(M136_D_FILES)) +endif diff --git a/rel/d/a/d_a_L7op_demo_dr/Makefile b/rel/d/a/d_a_L7op_demo_dr/Makefile index d40377001b8..1f69132d4de 100644 --- a/rel/d/a/d_a_L7op_demo_dr/Makefile +++ b/rel/d/a/d_a_L7op_demo_dr/Makefile @@ -38,10 +38,17 @@ $(M137_TARGET): $(M137_O_FILES) $(M137_LIBS) @python3 tools/lcf.py rel 137 --output $(M137_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M137_LDFLAGS) -o $(M137_TARGET) @build/M137_ofiles -$(BUILD_DIR)/rel/d/a/d_a_L7op_demo_dr/%.o: rel/d/a/d_a_L7op_demo_dr/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_L7op_demo_dr/%.o: rel/d/a/d_a_L7op_demo_dr/%.cpp $(BUILD_DIR)/rel/d/a/d_a_L7op_demo_dr/%.d @echo [137] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M137_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M137_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M137_D_FILES := $(M137_O_FILES:.o=.d) +$(M137_D_FILES): +include $(wildcard $(M137_D_FILES)) +endif diff --git a/rel/d/a/d_a_alldie/Makefile b/rel/d/a/d_a_alldie/Makefile index c3a65d428ad..2ee0b34a120 100644 --- a/rel/d/a/d_a_alldie/Makefile +++ b/rel/d/a/d_a_alldie/Makefile @@ -38,10 +38,17 @@ $(M58_TARGET): $(M58_O_FILES) $(M58_LIBS) @python3 tools/lcf.py rel 58 --output $(M58_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M58_LDFLAGS) -o $(M58_TARGET) @build/M58_ofiles -$(BUILD_DIR)/rel/d/a/d_a_alldie/%.o: rel/d/a/d_a_alldie/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_alldie/%.o: rel/d/a/d_a_alldie/%.cpp $(BUILD_DIR)/rel/d/a/d_a_alldie/%.d @echo [ 58] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M58_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M58_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M58_D_FILES := $(M58_O_FILES:.o=.d) +$(M58_D_FILES): +include $(wildcard $(M58_D_FILES)) +endif diff --git a/rel/d/a/d_a_andsw/Makefile b/rel/d/a/d_a_andsw/Makefile index b278436221d..49ab23c43aa 100644 --- a/rel/d/a/d_a_andsw/Makefile +++ b/rel/d/a/d_a_andsw/Makefile @@ -38,10 +38,17 @@ $(M2_TARGET): $(M2_O_FILES) $(M2_LIBS) @python3 tools/lcf.py rel 2 --output $(M2_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M2_LDFLAGS) -o $(M2_TARGET) @build/M2_ofiles -$(BUILD_DIR)/rel/d/a/d_a_andsw/%.o: rel/d/a/d_a_andsw/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_andsw/%.o: rel/d/a/d_a_andsw/%.cpp $(BUILD_DIR)/rel/d/a/d_a_andsw/%.d @echo [ 2] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M2_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M2_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M2_D_FILES := $(M2_O_FILES:.o=.d) +$(M2_D_FILES): +include $(wildcard $(M2_D_FILES)) +endif diff --git a/rel/d/a/d_a_andsw2/Makefile b/rel/d/a/d_a_andsw2/Makefile index f2ffe11073d..6719e0116cb 100644 --- a/rel/d/a/d_a_andsw2/Makefile +++ b/rel/d/a/d_a_andsw2/Makefile @@ -38,10 +38,17 @@ $(M59_TARGET): $(M59_O_FILES) $(M59_LIBS) @python3 tools/lcf.py rel 59 --output $(M59_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M59_LDFLAGS) -o $(M59_TARGET) @build/M59_ofiles -$(BUILD_DIR)/rel/d/a/d_a_andsw2/%.o: rel/d/a/d_a_andsw2/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_andsw2/%.o: rel/d/a/d_a_andsw2/%.cpp $(BUILD_DIR)/rel/d/a/d_a_andsw2/%.d @echo [ 59] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M59_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M59_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M59_D_FILES := $(M59_O_FILES:.o=.d) +$(M59_D_FILES): +include $(wildcard $(M59_D_FILES)) +endif diff --git a/rel/d/a/d_a_arrow/Makefile b/rel/d/a/d_a_arrow/Makefile index a8d5a72f69b..697186304dc 100644 --- a/rel/d/a/d_a_arrow/Makefile +++ b/rel/d/a/d_a_arrow/Makefile @@ -40,10 +40,17 @@ $(M45_TARGET): $(M45_O_FILES) $(M45_LIBS) @python3 tools/lcf.py rel 45 --output $(M45_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M45_LDFLAGS) -o $(M45_TARGET) @build/M45_ofiles -$(BUILD_DIR)/rel/d/a/d_a_arrow/%.o: rel/d/a/d_a_arrow/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_arrow/%.o: rel/d/a/d_a_arrow/%.cpp $(BUILD_DIR)/rel/d/a/d_a_arrow/%.d @echo [ 45] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M45_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M45_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M45_D_FILES := $(M45_O_FILES:.o=.d) +$(M45_D_FILES): +include $(wildcard $(M45_D_FILES)) +endif diff --git a/rel/d/a/d_a_balloon_2D/Makefile b/rel/d/a/d_a_balloon_2D/Makefile index f96f378ef08..f5078d8b7c0 100644 --- a/rel/d/a/d_a_balloon_2D/Makefile +++ b/rel/d/a/d_a_balloon_2D/Makefile @@ -40,10 +40,17 @@ $(M159_TARGET): $(M159_O_FILES) $(M159_LIBS) @python3 tools/lcf.py rel 159 --output $(M159_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M159_LDFLAGS) -o $(M159_TARGET) @build/M159_ofiles -$(BUILD_DIR)/rel/d/a/d_a_balloon_2D/%.o: rel/d/a/d_a_balloon_2D/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_balloon_2D/%.o: rel/d/a/d_a_balloon_2D/%.cpp $(BUILD_DIR)/rel/d/a/d_a_balloon_2D/%.d @echo [159] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M159_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M159_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M159_D_FILES := $(M159_O_FILES:.o=.d) +$(M159_D_FILES): +include $(wildcard $(M159_D_FILES)) +endif diff --git a/rel/d/a/d_a_bd/Makefile b/rel/d/a/d_a_bd/Makefile index 684bf5bd2ba..a72b60874b5 100644 --- a/rel/d/a/d_a_bd/Makefile +++ b/rel/d/a/d_a_bd/Makefile @@ -40,10 +40,17 @@ $(M60_TARGET): $(M60_O_FILES) $(M60_LIBS) @python3 tools/lcf.py rel 60 --output $(M60_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M60_LDFLAGS) -o $(M60_TARGET) @build/M60_ofiles -$(BUILD_DIR)/rel/d/a/d_a_bd/%.o: rel/d/a/d_a_bd/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_bd/%.o: rel/d/a/d_a_bd/%.cpp $(BUILD_DIR)/rel/d/a/d_a_bd/%.d @echo [ 60] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M60_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M60_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M60_D_FILES := $(M60_O_FILES:.o=.d) +$(M60_D_FILES): +include $(wildcard $(M60_D_FILES)) +endif diff --git a/rel/d/a/d_a_bg/Makefile b/rel/d/a/d_a_bg/Makefile index e655d9c8ffc..a4d6d294e30 100644 --- a/rel/d/a/d_a_bg/Makefile +++ b/rel/d/a/d_a_bg/Makefile @@ -39,10 +39,17 @@ $(M3_TARGET): $(M3_O_FILES) $(M3_LIBS) @python3 tools/lcf.py rel 3 --output $(M3_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M3_LDFLAGS) -o $(M3_TARGET) @build/M3_ofiles -$(BUILD_DIR)/rel/d/a/d_a_bg/%.o: rel/d/a/d_a_bg/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_bg/%.o: rel/d/a/d_a_bg/%.cpp $(BUILD_DIR)/rel/d/a/d_a_bg/%.d @echo [ 3] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M3_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M3_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M3_D_FILES := $(M3_O_FILES:.o=.d) +$(M3_D_FILES): +include $(wildcard $(M3_D_FILES)) +endif diff --git a/rel/d/a/d_a_bg_obj/Makefile b/rel/d/a/d_a_bg_obj/Makefile index 16b41d7597e..da7ec9edc89 100644 --- a/rel/d/a/d_a_bg_obj/Makefile +++ b/rel/d/a/d_a_bg_obj/Makefile @@ -38,10 +38,17 @@ $(M4_TARGET): $(M4_O_FILES) $(M4_LIBS) @python3 tools/lcf.py rel 4 --output $(M4_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M4_LDFLAGS) -o $(M4_TARGET) @build/M4_ofiles -$(BUILD_DIR)/rel/d/a/d_a_bg_obj/%.o: rel/d/a/d_a_bg_obj/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_bg_obj/%.o: rel/d/a/d_a_bg_obj/%.cpp $(BUILD_DIR)/rel/d/a/d_a_bg_obj/%.d @echo [ 4] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M4_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M4_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M4_D_FILES := $(M4_O_FILES:.o=.d) +$(M4_D_FILES): +include $(wildcard $(M4_D_FILES)) +endif diff --git a/rel/d/a/d_a_boomerang/Makefile b/rel/d/a/d_a_boomerang/Makefile index fe20a10315a..abc5033318c 100644 --- a/rel/d/a/d_a_boomerang/Makefile +++ b/rel/d/a/d_a_boomerang/Makefile @@ -38,10 +38,17 @@ $(M46_TARGET): $(M46_O_FILES) $(M46_LIBS) @python3 tools/lcf.py rel 46 --output $(M46_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M46_LDFLAGS) -o $(M46_TARGET) @build/M46_ofiles -$(BUILD_DIR)/rel/d/a/d_a_boomerang/%.o: rel/d/a/d_a_boomerang/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_boomerang/%.o: rel/d/a/d_a_boomerang/%.cpp $(BUILD_DIR)/rel/d/a/d_a_boomerang/%.d @echo [ 46] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M46_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M46_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M46_D_FILES := $(M46_O_FILES:.o=.d) +$(M46_D_FILES): +include $(wildcard $(M46_D_FILES)) +endif diff --git a/rel/d/a/d_a_bullet/Makefile b/rel/d/a/d_a_bullet/Makefile index bada40be7ac..628ec0250d2 100644 --- a/rel/d/a/d_a_bullet/Makefile +++ b/rel/d/a/d_a_bullet/Makefile @@ -40,10 +40,17 @@ $(M160_TARGET): $(M160_O_FILES) $(M160_LIBS) @python3 tools/lcf.py rel 160 --output $(M160_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M160_LDFLAGS) -o $(M160_TARGET) @build/M160_ofiles -$(BUILD_DIR)/rel/d/a/d_a_bullet/%.o: rel/d/a/d_a_bullet/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_bullet/%.o: rel/d/a/d_a_bullet/%.cpp $(BUILD_DIR)/rel/d/a/d_a_bullet/%.d @echo [160] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M160_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M160_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M160_D_FILES := $(M160_O_FILES:.o=.d) +$(M160_D_FILES): +include $(wildcard $(M160_D_FILES)) +endif diff --git a/rel/d/a/d_a_canoe/Makefile b/rel/d/a/d_a_canoe/Makefile index a619305ecd7..450816b3799 100644 --- a/rel/d/a/d_a_canoe/Makefile +++ b/rel/d/a/d_a_canoe/Makefile @@ -40,10 +40,17 @@ $(M61_TARGET): $(M61_O_FILES) $(M61_LIBS) @python3 tools/lcf.py rel 61 --output $(M61_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M61_LDFLAGS) -o $(M61_TARGET) @build/M61_ofiles -$(BUILD_DIR)/rel/d/a/d_a_canoe/%.o: rel/d/a/d_a_canoe/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_canoe/%.o: rel/d/a/d_a_canoe/%.cpp $(BUILD_DIR)/rel/d/a/d_a_canoe/%.d @echo [ 61] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M61_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M61_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M61_D_FILES := $(M61_O_FILES:.o=.d) +$(M61_D_FILES): +include $(wildcard $(M61_D_FILES)) +endif diff --git a/rel/d/a/d_a_coach_2D/Makefile b/rel/d/a/d_a_coach_2D/Makefile index 4de7a06500a..bdd276cb069 100644 --- a/rel/d/a/d_a_coach_2D/Makefile +++ b/rel/d/a/d_a_coach_2D/Makefile @@ -40,10 +40,17 @@ $(M161_TARGET): $(M161_O_FILES) $(M161_LIBS) @python3 tools/lcf.py rel 161 --output $(M161_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M161_LDFLAGS) -o $(M161_TARGET) @build/M161_ofiles -$(BUILD_DIR)/rel/d/a/d_a_coach_2D/%.o: rel/d/a/d_a_coach_2D/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_coach_2D/%.o: rel/d/a/d_a_coach_2D/%.cpp $(BUILD_DIR)/rel/d/a/d_a_coach_2D/%.d @echo [161] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M161_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M161_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M161_D_FILES := $(M161_O_FILES:.o=.d) +$(M161_D_FILES): +include $(wildcard $(M161_D_FILES)) +endif diff --git a/rel/d/a/d_a_coach_fire/Makefile b/rel/d/a/d_a_coach_fire/Makefile index 8c2bf5512bf..bdab4d40f1e 100644 --- a/rel/d/a/d_a_coach_fire/Makefile +++ b/rel/d/a/d_a_coach_fire/Makefile @@ -38,10 +38,17 @@ $(M162_TARGET): $(M162_O_FILES) $(M162_LIBS) @python3 tools/lcf.py rel 162 --output $(M162_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M162_LDFLAGS) -o $(M162_TARGET) @build/M162_ofiles -$(BUILD_DIR)/rel/d/a/d_a_coach_fire/%.o: rel/d/a/d_a_coach_fire/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_coach_fire/%.o: rel/d/a/d_a_coach_fire/%.cpp $(BUILD_DIR)/rel/d/a/d_a_coach_fire/%.d @echo [162] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M162_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M162_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M162_D_FILES := $(M162_O_FILES:.o=.d) +$(M162_D_FILES): +include $(wildcard $(M162_D_FILES)) +endif diff --git a/rel/d/a/d_a_cow/Makefile b/rel/d/a/d_a_cow/Makefile index dfd4af00a18..eaf90c13c81 100644 --- a/rel/d/a/d_a_cow/Makefile +++ b/rel/d/a/d_a_cow/Makefile @@ -40,10 +40,17 @@ $(M163_TARGET): $(M163_O_FILES) $(M163_LIBS) @python3 tools/lcf.py rel 163 --output $(M163_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M163_LDFLAGS) -o $(M163_TARGET) @build/M163_ofiles -$(BUILD_DIR)/rel/d/a/d_a_cow/%.o: rel/d/a/d_a_cow/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_cow/%.o: rel/d/a/d_a_cow/%.cpp $(BUILD_DIR)/rel/d/a/d_a_cow/%.d @echo [163] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M163_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M163_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M163_D_FILES := $(M163_O_FILES:.o=.d) +$(M163_D_FILES): +include $(wildcard $(M163_D_FILES)) +endif diff --git a/rel/d/a/d_a_crod/Makefile b/rel/d/a/d_a_crod/Makefile index 0b13a0fa395..c7a8ddb0826 100644 --- a/rel/d/a/d_a_crod/Makefile +++ b/rel/d/a/d_a_crod/Makefile @@ -40,10 +40,17 @@ $(M47_TARGET): $(M47_O_FILES) $(M47_LIBS) @python3 tools/lcf.py rel 47 --output $(M47_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M47_LDFLAGS) -o $(M47_TARGET) @build/M47_ofiles -$(BUILD_DIR)/rel/d/a/d_a_crod/%.o: rel/d/a/d_a_crod/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_crod/%.o: rel/d/a/d_a_crod/%.cpp $(BUILD_DIR)/rel/d/a/d_a_crod/%.d @echo [ 47] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M47_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M47_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M47_D_FILES := $(M47_O_FILES:.o=.d) +$(M47_D_FILES): +include $(wildcard $(M47_D_FILES)) +endif diff --git a/rel/d/a/d_a_cstaf/Makefile b/rel/d/a/d_a_cstaf/Makefile index 1d7d4841c1f..b1641974bc9 100644 --- a/rel/d/a/d_a_cstaf/Makefile +++ b/rel/d/a/d_a_cstaf/Makefile @@ -38,10 +38,17 @@ $(M62_TARGET): $(M62_O_FILES) $(M62_LIBS) @python3 tools/lcf.py rel 62 --output $(M62_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M62_LDFLAGS) -o $(M62_TARGET) @build/M62_ofiles -$(BUILD_DIR)/rel/d/a/d_a_cstaf/%.o: rel/d/a/d_a_cstaf/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_cstaf/%.o: rel/d/a/d_a_cstaf/%.cpp $(BUILD_DIR)/rel/d/a/d_a_cstaf/%.d @echo [ 62] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M62_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M62_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M62_D_FILES := $(M62_O_FILES:.o=.d) +$(M62_D_FILES): +include $(wildcard $(M62_D_FILES)) +endif diff --git a/rel/d/a/d_a_cstatue/Makefile b/rel/d/a/d_a_cstatue/Makefile index eaa041323df..2baee1d2421 100644 --- a/rel/d/a/d_a_cstatue/Makefile +++ b/rel/d/a/d_a_cstatue/Makefile @@ -40,10 +40,17 @@ $(M164_TARGET): $(M164_O_FILES) $(M164_LIBS) @python3 tools/lcf.py rel 164 --output $(M164_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M164_LDFLAGS) -o $(M164_TARGET) @build/M164_ofiles -$(BUILD_DIR)/rel/d/a/d_a_cstatue/%.o: rel/d/a/d_a_cstatue/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_cstatue/%.o: rel/d/a/d_a_cstatue/%.cpp $(BUILD_DIR)/rel/d/a/d_a_cstatue/%.d @echo [164] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M164_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M164_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M164_D_FILES := $(M164_O_FILES:.o=.d) +$(M164_D_FILES): +include $(wildcard $(M164_D_FILES)) +endif diff --git a/rel/d/a/d_a_demo00/Makefile b/rel/d/a/d_a_demo00/Makefile index 6d26e648d0a..a92efd771c2 100644 --- a/rel/d/a/d_a_demo00/Makefile +++ b/rel/d/a/d_a_demo00/Makefile @@ -40,10 +40,17 @@ $(M48_TARGET): $(M48_O_FILES) $(M48_LIBS) @python3 tools/lcf.py rel 48 --output $(M48_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M48_LDFLAGS) -o $(M48_TARGET) @build/M48_ofiles -$(BUILD_DIR)/rel/d/a/d_a_demo00/%.o: rel/d/a/d_a_demo00/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_demo00/%.o: rel/d/a/d_a_demo00/%.cpp $(BUILD_DIR)/rel/d/a/d_a_demo00/%.d @echo [ 48] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M48_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M48_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M48_D_FILES := $(M48_O_FILES:.o=.d) +$(M48_D_FILES): +include $(wildcard $(M48_D_FILES)) +endif diff --git a/rel/d/a/d_a_demo_item/Makefile b/rel/d/a/d_a_demo_item/Makefile index 25f3cb99f64..3e50990fa4d 100644 --- a/rel/d/a/d_a_demo_item/Makefile +++ b/rel/d/a/d_a_demo_item/Makefile @@ -40,10 +40,17 @@ $(M63_TARGET): $(M63_O_FILES) $(M63_LIBS) @python3 tools/lcf.py rel 63 --output $(M63_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M63_LDFLAGS) -o $(M63_TARGET) @build/M63_ofiles -$(BUILD_DIR)/rel/d/a/d_a_demo_item/%.o: rel/d/a/d_a_demo_item/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_demo_item/%.o: rel/d/a/d_a_demo_item/%.cpp $(BUILD_DIR)/rel/d/a/d_a_demo_item/%.d @echo [ 63] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M63_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M63_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M63_D_FILES := $(M63_O_FILES:.o=.d) +$(M63_D_FILES): +include $(wildcard $(M63_D_FILES)) +endif diff --git a/rel/d/a/d_a_disappear/Makefile b/rel/d/a/d_a_disappear/Makefile index 4e680249462..6f549ac0852 100644 --- a/rel/d/a/d_a_disappear/Makefile +++ b/rel/d/a/d_a_disappear/Makefile @@ -38,10 +38,17 @@ $(M49_TARGET): $(M49_O_FILES) $(M49_LIBS) @python3 tools/lcf.py rel 49 --output $(M49_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M49_LDFLAGS) -o $(M49_TARGET) @build/M49_ofiles -$(BUILD_DIR)/rel/d/a/d_a_disappear/%.o: rel/d/a/d_a_disappear/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_disappear/%.o: rel/d/a/d_a_disappear/%.cpp $(BUILD_DIR)/rel/d/a/d_a_disappear/%.d @echo [ 49] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M49_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M49_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M49_D_FILES := $(M49_O_FILES:.o=.d) +$(M49_D_FILES): +include $(wildcard $(M49_D_FILES)) +endif diff --git a/rel/d/a/d_a_dmidna/Makefile b/rel/d/a/d_a_dmidna/Makefile index 1349121c7e3..7925dfff491 100644 --- a/rel/d/a/d_a_dmidna/Makefile +++ b/rel/d/a/d_a_dmidna/Makefile @@ -38,10 +38,17 @@ $(M5_TARGET): $(M5_O_FILES) $(M5_LIBS) @python3 tools/lcf.py rel 5 --output $(M5_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M5_LDFLAGS) -o $(M5_TARGET) @build/M5_ofiles -$(BUILD_DIR)/rel/d/a/d_a_dmidna/%.o: rel/d/a/d_a_dmidna/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_dmidna/%.o: rel/d/a/d_a_dmidna/%.cpp $(BUILD_DIR)/rel/d/a/d_a_dmidna/%.d @echo [ 5] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M5_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M5_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M5_D_FILES := $(M5_O_FILES:.o=.d) +$(M5_D_FILES): +include $(wildcard $(M5_D_FILES)) +endif diff --git a/rel/d/a/d_a_do/Makefile b/rel/d/a/d_a_do/Makefile index 827fdbf8276..e93672ccca2 100644 --- a/rel/d/a/d_a_do/Makefile +++ b/rel/d/a/d_a_do/Makefile @@ -40,10 +40,17 @@ $(M165_TARGET): $(M165_O_FILES) $(M165_LIBS) @python3 tools/lcf.py rel 165 --output $(M165_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M165_LDFLAGS) -o $(M165_TARGET) @build/M165_ofiles -$(BUILD_DIR)/rel/d/a/d_a_do/%.o: rel/d/a/d_a_do/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_do/%.o: rel/d/a/d_a_do/%.cpp $(BUILD_DIR)/rel/d/a/d_a_do/%.d @echo [165] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M165_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M165_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M165_D_FILES := $(M165_O_FILES:.o=.d) +$(M165_D_FILES): +include $(wildcard $(M165_D_FILES)) +endif diff --git a/rel/d/a/d_a_dshutter/Makefile b/rel/d/a/d_a_dshutter/Makefile index 1cfd60b5536..037013ac388 100644 --- a/rel/d/a/d_a_dshutter/Makefile +++ b/rel/d/a/d_a_dshutter/Makefile @@ -38,10 +38,17 @@ $(M10_TARGET): $(M10_O_FILES) $(M10_LIBS) @python3 tools/lcf.py rel 10 --output $(M10_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M10_LDFLAGS) -o $(M10_TARGET) @build/M10_ofiles -$(BUILD_DIR)/rel/d/a/d_a_dshutter/%.o: rel/d/a/d_a_dshutter/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_dshutter/%.o: rel/d/a/d_a_dshutter/%.cpp $(BUILD_DIR)/rel/d/a/d_a_dshutter/%.d @echo [ 10] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M10_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M10_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M10_D_FILES := $(M10_O_FILES:.o=.d) +$(M10_D_FILES): +include $(wildcard $(M10_D_FILES)) +endif diff --git a/rel/d/a/d_a_econt/Makefile b/rel/d/a/d_a_econt/Makefile index 18b889bea95..7232a0138b5 100644 --- a/rel/d/a/d_a_econt/Makefile +++ b/rel/d/a/d_a_econt/Makefile @@ -40,10 +40,17 @@ $(M71_TARGET): $(M71_O_FILES) $(M71_LIBS) @python3 tools/lcf.py rel 71 --output $(M71_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M71_LDFLAGS) -o $(M71_TARGET) @build/M71_ofiles -$(BUILD_DIR)/rel/d/a/d_a_econt/%.o: rel/d/a/d_a_econt/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_econt/%.o: rel/d/a/d_a_econt/%.cpp $(BUILD_DIR)/rel/d/a/d_a_econt/%.d @echo [ 71] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M71_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M71_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M71_D_FILES := $(M71_O_FILES:.o=.d) +$(M71_D_FILES): +include $(wildcard $(M71_D_FILES)) +endif diff --git a/rel/d/a/d_a_ep/Makefile b/rel/d/a/d_a_ep/Makefile index 87e45ccac0b..f2e8b03c794 100644 --- a/rel/d/a/d_a_ep/Makefile +++ b/rel/d/a/d_a_ep/Makefile @@ -38,10 +38,17 @@ $(M11_TARGET): $(M11_O_FILES) $(M11_LIBS) @python3 tools/lcf.py rel 11 --output $(M11_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M11_LDFLAGS) -o $(M11_TARGET) @build/M11_ofiles -$(BUILD_DIR)/rel/d/a/d_a_ep/%.o: rel/d/a/d_a_ep/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_ep/%.o: rel/d/a/d_a_ep/%.cpp $(BUILD_DIR)/rel/d/a/d_a_ep/%.d @echo [ 11] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M11_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M11_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M11_D_FILES := $(M11_O_FILES:.o=.d) +$(M11_D_FILES): +include $(wildcard $(M11_D_FILES)) +endif diff --git a/rel/d/a/d_a_formation_mng/Makefile b/rel/d/a/d_a_formation_mng/Makefile index eac18295d6c..40b01834776 100644 --- a/rel/d/a/d_a_formation_mng/Makefile +++ b/rel/d/a/d_a_formation_mng/Makefile @@ -38,10 +38,17 @@ $(M260_TARGET): $(M260_O_FILES) $(M260_LIBS) @python3 tools/lcf.py rel 260 --output $(M260_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M260_LDFLAGS) -o $(M260_TARGET) @build/M260_ofiles -$(BUILD_DIR)/rel/d/a/d_a_formation_mng/%.o: rel/d/a/d_a_formation_mng/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_formation_mng/%.o: rel/d/a/d_a_formation_mng/%.cpp $(BUILD_DIR)/rel/d/a/d_a_formation_mng/%.d @echo [260] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M260_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M260_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M260_D_FILES := $(M260_O_FILES:.o=.d) +$(M260_D_FILES): +include $(wildcard $(M260_D_FILES)) +endif diff --git a/rel/d/a/d_a_fr/Makefile b/rel/d/a/d_a_fr/Makefile index 7c5a65b5656..58f12b197f5 100644 --- a/rel/d/a/d_a_fr/Makefile +++ b/rel/d/a/d_a_fr/Makefile @@ -40,10 +40,17 @@ $(M72_TARGET): $(M72_O_FILES) $(M72_LIBS) @python3 tools/lcf.py rel 72 --output $(M72_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M72_LDFLAGS) -o $(M72_TARGET) @build/M72_ofiles -$(BUILD_DIR)/rel/d/a/d_a_fr/%.o: rel/d/a/d_a_fr/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_fr/%.o: rel/d/a/d_a_fr/%.cpp $(BUILD_DIR)/rel/d/a/d_a_fr/%.d @echo [ 72] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M72_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M72_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M72_D_FILES := $(M72_O_FILES:.o=.d) +$(M72_D_FILES): +include $(wildcard $(M72_D_FILES)) +endif diff --git a/rel/d/a/d_a_grass/Makefile b/rel/d/a/d_a_grass/Makefile index 1699661a379..e0e90fda502 100644 --- a/rel/d/a/d_a_grass/Makefile +++ b/rel/d/a/d_a_grass/Makefile @@ -40,10 +40,17 @@ $(M73_TARGET): $(M73_O_FILES) $(M73_LIBS) @python3 tools/lcf.py rel 73 --output $(M73_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M73_LDFLAGS) -o $(M73_TARGET) @build/M73_ofiles -$(BUILD_DIR)/rel/d/a/d_a_grass/%.o: rel/d/a/d_a_grass/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_grass/%.o: rel/d/a/d_a_grass/%.cpp $(BUILD_DIR)/rel/d/a/d_a_grass/%.d @echo [ 73] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M73_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M73_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M73_D_FILES := $(M73_O_FILES:.o=.d) +$(M73_D_FILES): +include $(wildcard $(M73_D_FILES)) +endif diff --git a/rel/d/a/d_a_guard_mng/Makefile b/rel/d/a/d_a_guard_mng/Makefile index b7338a73d7b..c314c94a5a3 100644 --- a/rel/d/a/d_a_guard_mng/Makefile +++ b/rel/d/a/d_a_guard_mng/Makefile @@ -38,10 +38,17 @@ $(M261_TARGET): $(M261_O_FILES) $(M261_LIBS) @python3 tools/lcf.py rel 261 --output $(M261_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M261_LDFLAGS) -o $(M261_TARGET) @build/M261_ofiles -$(BUILD_DIR)/rel/d/a/d_a_guard_mng/%.o: rel/d/a/d_a_guard_mng/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_guard_mng/%.o: rel/d/a/d_a_guard_mng/%.cpp $(BUILD_DIR)/rel/d/a/d_a_guard_mng/%.d @echo [261] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M261_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M261_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M261_D_FILES := $(M261_O_FILES:.o=.d) +$(M261_D_FILES): +include $(wildcard $(M261_D_FILES)) +endif diff --git a/rel/d/a/d_a_hitobj/Makefile b/rel/d/a/d_a_hitobj/Makefile index c4666aa6830..12673b16f2d 100644 --- a/rel/d/a/d_a_hitobj/Makefile +++ b/rel/d/a/d_a_hitobj/Makefile @@ -38,10 +38,17 @@ $(M12_TARGET): $(M12_O_FILES) $(M12_LIBS) @python3 tools/lcf.py rel 12 --output $(M12_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M12_LDFLAGS) -o $(M12_TARGET) @build/M12_ofiles -$(BUILD_DIR)/rel/d/a/d_a_hitobj/%.o: rel/d/a/d_a_hitobj/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_hitobj/%.o: rel/d/a/d_a_hitobj/%.cpp $(BUILD_DIR)/rel/d/a/d_a_hitobj/%.d @echo [ 12] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M12_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M12_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M12_D_FILES := $(M12_O_FILES:.o=.d) +$(M12_D_FILES): +include $(wildcard $(M12_D_FILES)) +endif diff --git a/rel/d/a/d_a_horse/Makefile b/rel/d/a/d_a_horse/Makefile index c3056cf7447..7770b58b3f9 100644 --- a/rel/d/a/d_a_horse/Makefile +++ b/rel/d/a/d_a_horse/Makefile @@ -40,10 +40,17 @@ $(M262_TARGET): $(M262_O_FILES) $(M262_LIBS) @python3 tools/lcf.py rel 262 --output $(M262_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M262_LDFLAGS) -o $(M262_TARGET) @build/M262_ofiles -$(BUILD_DIR)/rel/d/a/d_a_horse/%.o: rel/d/a/d_a_horse/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_horse/%.o: rel/d/a/d_a_horse/%.cpp $(BUILD_DIR)/rel/d/a/d_a_horse/%.d @echo [262] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M262_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M262_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M262_D_FILES := $(M262_O_FILES:.o=.d) +$(M262_D_FILES): +include $(wildcard $(M262_D_FILES)) +endif diff --git a/rel/d/a/d_a_hozelda/Makefile b/rel/d/a/d_a_hozelda/Makefile index e2a36efe06a..92e4e56303a 100644 --- a/rel/d/a/d_a_hozelda/Makefile +++ b/rel/d/a/d_a_hozelda/Makefile @@ -40,10 +40,17 @@ $(M263_TARGET): $(M263_O_FILES) $(M263_LIBS) @python3 tools/lcf.py rel 263 --output $(M263_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M263_LDFLAGS) -o $(M263_TARGET) @build/M263_ofiles -$(BUILD_DIR)/rel/d/a/d_a_hozelda/%.o: rel/d/a/d_a_hozelda/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_hozelda/%.o: rel/d/a/d_a_hozelda/%.cpp $(BUILD_DIR)/rel/d/a/d_a_hozelda/%.d @echo [263] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M263_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M263_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M263_D_FILES := $(M263_O_FILES:.o=.d) +$(M263_D_FILES): +include $(wildcard $(M263_D_FILES)) +endif diff --git a/rel/d/a/d_a_izumi_gate/Makefile b/rel/d/a/d_a_izumi_gate/Makefile index 53ad33797ab..cddc07a2096 100644 --- a/rel/d/a/d_a_izumi_gate/Makefile +++ b/rel/d/a/d_a_izumi_gate/Makefile @@ -38,10 +38,17 @@ $(M264_TARGET): $(M264_O_FILES) $(M264_LIBS) @python3 tools/lcf.py rel 264 --output $(M264_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M264_LDFLAGS) -o $(M264_TARGET) @build/M264_ofiles -$(BUILD_DIR)/rel/d/a/d_a_izumi_gate/%.o: rel/d/a/d_a_izumi_gate/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_izumi_gate/%.o: rel/d/a/d_a_izumi_gate/%.cpp $(BUILD_DIR)/rel/d/a/d_a_izumi_gate/%.d @echo [264] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M264_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M264_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M264_D_FILES := $(M264_O_FILES:.o=.d) +$(M264_D_FILES): +include $(wildcard $(M264_D_FILES)) +endif diff --git a/rel/d/a/d_a_kago/Makefile b/rel/d/a/d_a_kago/Makefile index 1fcaac882f4..1a350da5ca0 100644 --- a/rel/d/a/d_a_kago/Makefile +++ b/rel/d/a/d_a_kago/Makefile @@ -40,10 +40,17 @@ $(M265_TARGET): $(M265_O_FILES) $(M265_LIBS) @python3 tools/lcf.py rel 265 --output $(M265_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M265_LDFLAGS) -o $(M265_TARGET) @build/M265_ofiles -$(BUILD_DIR)/rel/d/a/d_a_kago/%.o: rel/d/a/d_a_kago/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_kago/%.o: rel/d/a/d_a_kago/%.cpp $(BUILD_DIR)/rel/d/a/d_a_kago/%.d @echo [265] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M265_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M265_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M265_D_FILES := $(M265_O_FILES:.o=.d) +$(M265_D_FILES): +include $(wildcard $(M265_D_FILES)) +endif diff --git a/rel/d/a/d_a_mant/Makefile b/rel/d/a/d_a_mant/Makefile index 28006bb178b..dfe5ed2929f 100644 --- a/rel/d/a/d_a_mant/Makefile +++ b/rel/d/a/d_a_mant/Makefile @@ -38,10 +38,17 @@ $(M277_TARGET): $(M277_O_FILES) $(M277_LIBS) @python3 tools/lcf.py rel 277 --output $(M277_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M277_LDFLAGS) -o $(M277_TARGET) @build/M277_ofiles -$(BUILD_DIR)/rel/d/a/d_a_mant/%.o: rel/d/a/d_a_mant/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_mant/%.o: rel/d/a/d_a_mant/%.cpp $(BUILD_DIR)/rel/d/a/d_a_mant/%.d @echo [277] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M277_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M277_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M277_D_FILES := $(M277_O_FILES:.o=.d) +$(M277_D_FILES): +include $(wildcard $(M277_D_FILES)) +endif diff --git a/rel/d/a/d_a_mg_fish/Makefile b/rel/d/a/d_a_mg_fish/Makefile index 9e743cd4d66..e63dbbefecc 100644 --- a/rel/d/a/d_a_mg_fish/Makefile +++ b/rel/d/a/d_a_mg_fish/Makefile @@ -40,10 +40,17 @@ $(M78_TARGET): $(M78_O_FILES) $(M78_LIBS) @python3 tools/lcf.py rel 78 --output $(M78_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M78_LDFLAGS) -o $(M78_TARGET) @build/M78_ofiles -$(BUILD_DIR)/rel/d/a/d_a_mg_fish/%.o: rel/d/a/d_a_mg_fish/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_mg_fish/%.o: rel/d/a/d_a_mg_fish/%.cpp $(BUILD_DIR)/rel/d/a/d_a_mg_fish/%.d @echo [ 78] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M78_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M78_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M78_D_FILES := $(M78_O_FILES:.o=.d) +$(M78_D_FILES): +include $(wildcard $(M78_D_FILES)) +endif diff --git a/rel/d/a/d_a_mg_fshop/Makefile b/rel/d/a/d_a_mg_fshop/Makefile index 348e886e6b4..a0adfc309f5 100644 --- a/rel/d/a/d_a_mg_fshop/Makefile +++ b/rel/d/a/d_a_mg_fshop/Makefile @@ -40,10 +40,17 @@ $(M278_TARGET): $(M278_O_FILES) $(M278_LIBS) @python3 tools/lcf.py rel 278 --output $(M278_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M278_LDFLAGS) -o $(M278_TARGET) @build/M278_ofiles -$(BUILD_DIR)/rel/d/a/d_a_mg_fshop/%.o: rel/d/a/d_a_mg_fshop/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_mg_fshop/%.o: rel/d/a/d_a_mg_fshop/%.cpp $(BUILD_DIR)/rel/d/a/d_a_mg_fshop/%.d @echo [278] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M278_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M278_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M278_D_FILES := $(M278_O_FILES:.o=.d) +$(M278_D_FILES): +include $(wildcard $(M278_D_FILES)) +endif diff --git a/rel/d/a/d_a_mg_rod/Makefile b/rel/d/a/d_a_mg_rod/Makefile index 813509f3c10..515c68f8549 100644 --- a/rel/d/a/d_a_mg_rod/Makefile +++ b/rel/d/a/d_a_mg_rod/Makefile @@ -40,10 +40,17 @@ $(M50_TARGET): $(M50_O_FILES) $(M50_LIBS) @python3 tools/lcf.py rel 50 --output $(M50_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M50_LDFLAGS) -o $(M50_TARGET) @build/M50_ofiles -$(BUILD_DIR)/rel/d/a/d_a_mg_rod/%.o: rel/d/a/d_a_mg_rod/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_mg_rod/%.o: rel/d/a/d_a_mg_rod/%.cpp $(BUILD_DIR)/rel/d/a/d_a_mg_rod/%.d @echo [ 50] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M50_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M50_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M50_D_FILES := $(M50_O_FILES:.o=.d) +$(M50_D_FILES): +include $(wildcard $(M50_D_FILES)) +endif diff --git a/rel/d/a/d_a_midna/Makefile b/rel/d/a/d_a_midna/Makefile index 758bdf6fabd..c7cbb20b096 100644 --- a/rel/d/a/d_a_midna/Makefile +++ b/rel/d/a/d_a_midna/Makefile @@ -40,10 +40,17 @@ $(M51_TARGET): $(M51_O_FILES) $(M51_LIBS) @python3 tools/lcf.py rel 51 --output $(M51_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M51_LDFLAGS) -o $(M51_TARGET) @build/M51_ofiles -$(BUILD_DIR)/rel/d/a/d_a_midna/%.o: rel/d/a/d_a_midna/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_midna/%.o: rel/d/a/d_a_midna/%.cpp $(BUILD_DIR)/rel/d/a/d_a_midna/%.d @echo [ 51] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M51_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M51_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M51_D_FILES := $(M51_O_FILES:.o=.d) +$(M51_D_FILES): +include $(wildcard $(M51_D_FILES)) +endif diff --git a/rel/d/a/d_a_mirror/Makefile b/rel/d/a/d_a_mirror/Makefile index 354c81c75a0..3dca9c8bd15 100644 --- a/rel/d/a/d_a_mirror/Makefile +++ b/rel/d/a/d_a_mirror/Makefile @@ -38,10 +38,17 @@ $(M279_TARGET): $(M279_O_FILES) $(M279_LIBS) @python3 tools/lcf.py rel 279 --output $(M279_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M279_LDFLAGS) -o $(M279_TARGET) @build/M279_ofiles -$(BUILD_DIR)/rel/d/a/d_a_mirror/%.o: rel/d/a/d_a_mirror/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_mirror/%.o: rel/d/a/d_a_mirror/%.cpp $(BUILD_DIR)/rel/d/a/d_a_mirror/%.d @echo [279] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M279_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M279_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M279_D_FILES := $(M279_O_FILES:.o=.d) +$(M279_D_FILES): +include $(wildcard $(M279_D_FILES)) +endif diff --git a/rel/d/a/d_a_movie_player/Makefile b/rel/d/a/d_a_movie_player/Makefile index a986028e5ca..14e3ca7ef48 100644 --- a/rel/d/a/d_a_movie_player/Makefile +++ b/rel/d/a/d_a_movie_player/Makefile @@ -38,10 +38,17 @@ $(M280_TARGET): $(M280_O_FILES) $(M280_LIBS) @python3 tools/lcf.py rel 280 --output $(M280_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M280_LDFLAGS) -o $(M280_TARGET) @build/M280_ofiles -$(BUILD_DIR)/rel/d/a/d_a_movie_player/%.o: rel/d/a/d_a_movie_player/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_movie_player/%.o: rel/d/a/d_a_movie_player/%.cpp $(BUILD_DIR)/rel/d/a/d_a_movie_player/%.d @echo [280] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M280_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M280_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M280_D_FILES := $(M280_O_FILES:.o=.d) +$(M280_D_FILES): +include $(wildcard $(M280_D_FILES)) +endif diff --git a/rel/d/a/d_a_myna/Makefile b/rel/d/a/d_a_myna/Makefile index bbf79d19885..3dcd4879650 100644 --- a/rel/d/a/d_a_myna/Makefile +++ b/rel/d/a/d_a_myna/Makefile @@ -40,10 +40,17 @@ $(M281_TARGET): $(M281_O_FILES) $(M281_LIBS) @python3 tools/lcf.py rel 281 --output $(M281_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M281_LDFLAGS) -o $(M281_TARGET) @build/M281_ofiles -$(BUILD_DIR)/rel/d/a/d_a_myna/%.o: rel/d/a/d_a_myna/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_myna/%.o: rel/d/a/d_a_myna/%.cpp $(BUILD_DIR)/rel/d/a/d_a_myna/%.d @echo [281] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M281_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M281_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M281_D_FILES := $(M281_O_FILES:.o=.d) +$(M281_D_FILES): +include $(wildcard $(M281_D_FILES)) +endif diff --git a/rel/d/a/d_a_nbomb/Makefile b/rel/d/a/d_a_nbomb/Makefile index cef21425799..47a57a97ad9 100644 --- a/rel/d/a/d_a_nbomb/Makefile +++ b/rel/d/a/d_a_nbomb/Makefile @@ -40,10 +40,17 @@ $(M52_TARGET): $(M52_O_FILES) $(M52_LIBS) @python3 tools/lcf.py rel 52 --output $(M52_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M52_LDFLAGS) -o $(M52_TARGET) @build/M52_ofiles -$(BUILD_DIR)/rel/d/a/d_a_nbomb/%.o: rel/d/a/d_a_nbomb/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_nbomb/%.o: rel/d/a/d_a_nbomb/%.cpp $(BUILD_DIR)/rel/d/a/d_a_nbomb/%.d @echo [ 52] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M52_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M52_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M52_D_FILES := $(M52_O_FILES:.o=.d) +$(M52_D_FILES): +include $(wildcard $(M52_D_FILES)) +endif diff --git a/rel/d/a/d_a_ni/Makefile b/rel/d/a/d_a_ni/Makefile index d037990d0d2..6a9ca337ba8 100644 --- a/rel/d/a/d_a_ni/Makefile +++ b/rel/d/a/d_a_ni/Makefile @@ -40,10 +40,17 @@ $(M282_TARGET): $(M282_O_FILES) $(M282_LIBS) @python3 tools/lcf.py rel 282 --output $(M282_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M282_LDFLAGS) -o $(M282_TARGET) @build/M282_ofiles -$(BUILD_DIR)/rel/d/a/d_a_ni/%.o: rel/d/a/d_a_ni/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_ni/%.o: rel/d/a/d_a_ni/%.cpp $(BUILD_DIR)/rel/d/a/d_a_ni/%.d @echo [282] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M282_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M282_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M282_D_FILES := $(M282_O_FILES:.o=.d) +$(M282_D_FILES): +include $(wildcard $(M282_D_FILES)) +endif diff --git a/rel/d/a/d_a_passer_mng/Makefile b/rel/d/a/d_a_passer_mng/Makefile index 654551b6a05..1cd4bf25a84 100644 --- a/rel/d/a/d_a_passer_mng/Makefile +++ b/rel/d/a/d_a_passer_mng/Makefile @@ -38,10 +38,17 @@ $(M702_TARGET): $(M702_O_FILES) $(M702_LIBS) @python3 tools/lcf.py rel 702 --output $(M702_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M702_LDFLAGS) -o $(M702_TARGET) @build/M702_ofiles -$(BUILD_DIR)/rel/d/a/d_a_passer_mng/%.o: rel/d/a/d_a_passer_mng/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_passer_mng/%.o: rel/d/a/d_a_passer_mng/%.cpp $(BUILD_DIR)/rel/d/a/d_a_passer_mng/%.d @echo [702] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M702_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M702_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M702_D_FILES := $(M702_O_FILES:.o=.d) +$(M702_D_FILES): +include $(wildcard $(M702_D_FILES)) +endif diff --git a/rel/d/a/d_a_path_line/Makefile b/rel/d/a/d_a_path_line/Makefile index c8ca07fe192..3735a92cca9 100644 --- a/rel/d/a/d_a_path_line/Makefile +++ b/rel/d/a/d_a_path_line/Makefile @@ -38,10 +38,17 @@ $(M23_TARGET): $(M23_O_FILES) $(M23_LIBS) @python3 tools/lcf.py rel 23 --output $(M23_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M23_LDFLAGS) -o $(M23_TARGET) @build/M23_ofiles -$(BUILD_DIR)/rel/d/a/d_a_path_line/%.o: rel/d/a/d_a_path_line/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_path_line/%.o: rel/d/a/d_a_path_line/%.cpp $(BUILD_DIR)/rel/d/a/d_a_path_line/%.d @echo [ 23] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M23_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M23_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M23_D_FILES := $(M23_O_FILES:.o=.d) +$(M23_D_FILES): +include $(wildcard $(M23_D_FILES)) +endif diff --git a/rel/d/a/d_a_peru/Makefile b/rel/d/a/d_a_peru/Makefile index a878614f10e..0489bec53c1 100644 --- a/rel/d/a/d_a_peru/Makefile +++ b/rel/d/a/d_a_peru/Makefile @@ -40,10 +40,17 @@ $(M703_TARGET): $(M703_O_FILES) $(M703_LIBS) @python3 tools/lcf.py rel 703 --output $(M703_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M703_LDFLAGS) -o $(M703_TARGET) @build/M703_ofiles -$(BUILD_DIR)/rel/d/a/d_a_peru/%.o: rel/d/a/d_a_peru/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_peru/%.o: rel/d/a/d_a_peru/%.cpp $(BUILD_DIR)/rel/d/a/d_a_peru/%.d @echo [703] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M703_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M703_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M703_D_FILES := $(M703_O_FILES:.o=.d) +$(M703_D_FILES): +include $(wildcard $(M703_D_FILES)) +endif diff --git a/rel/d/a/d_a_ppolamp/Makefile b/rel/d/a/d_a_ppolamp/Makefile index 3a052e9820e..900b6767997 100644 --- a/rel/d/a/d_a_ppolamp/Makefile +++ b/rel/d/a/d_a_ppolamp/Makefile @@ -38,10 +38,17 @@ $(M704_TARGET): $(M704_O_FILES) $(M704_LIBS) @python3 tools/lcf.py rel 704 --output $(M704_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M704_LDFLAGS) -o $(M704_TARGET) @build/M704_ofiles -$(BUILD_DIR)/rel/d/a/d_a_ppolamp/%.o: rel/d/a/d_a_ppolamp/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_ppolamp/%.o: rel/d/a/d_a_ppolamp/%.cpp $(BUILD_DIR)/rel/d/a/d_a_ppolamp/%.d @echo [704] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M704_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M704_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M704_D_FILES := $(M704_O_FILES:.o=.d) +$(M704_D_FILES): +include $(wildcard $(M704_D_FILES)) +endif diff --git a/rel/d/a/d_a_scene_exit/Makefile b/rel/d/a/d_a_scene_exit/Makefile index 7ef78db2137..5dc19b3aada 100644 --- a/rel/d/a/d_a_scene_exit/Makefile +++ b/rel/d/a/d_a_scene_exit/Makefile @@ -38,10 +38,17 @@ $(M24_TARGET): $(M24_O_FILES) $(M24_LIBS) @python3 tools/lcf.py rel 24 --output $(M24_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M24_LDFLAGS) -o $(M24_TARGET) @build/M24_ofiles -$(BUILD_DIR)/rel/d/a/d_a_scene_exit/%.o: rel/d/a/d_a_scene_exit/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_scene_exit/%.o: rel/d/a/d_a_scene_exit/%.cpp $(BUILD_DIR)/rel/d/a/d_a_scene_exit/%.d @echo [ 24] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M24_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M24_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M24_D_FILES := $(M24_O_FILES:.o=.d) +$(M24_D_FILES): +include $(wildcard $(M24_D_FILES)) +endif diff --git a/rel/d/a/d_a_scene_exit2/Makefile b/rel/d/a/d_a_scene_exit2/Makefile index 3ce4b232d39..611c51dc72b 100644 --- a/rel/d/a/d_a_scene_exit2/Makefile +++ b/rel/d/a/d_a_scene_exit2/Makefile @@ -40,10 +40,17 @@ $(M117_TARGET): $(M117_O_FILES) $(M117_LIBS) @python3 tools/lcf.py rel 117 --output $(M117_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M117_LDFLAGS) -o $(M117_TARGET) @build/M117_ofiles -$(BUILD_DIR)/rel/d/a/d_a_scene_exit2/%.o: rel/d/a/d_a_scene_exit2/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_scene_exit2/%.o: rel/d/a/d_a_scene_exit2/%.cpp $(BUILD_DIR)/rel/d/a/d_a_scene_exit2/%.d @echo [117] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M117_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M117_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M117_D_FILES := $(M117_O_FILES:.o=.d) +$(M117_D_FILES): +include $(wildcard $(M117_D_FILES)) +endif diff --git a/rel/d/a/d_a_set_bgobj/Makefile b/rel/d/a/d_a_set_bgobj/Makefile index 03d439cda4e..a98898cb660 100644 --- a/rel/d/a/d_a_set_bgobj/Makefile +++ b/rel/d/a/d_a_set_bgobj/Makefile @@ -38,10 +38,17 @@ $(M25_TARGET): $(M25_O_FILES) $(M25_LIBS) @python3 tools/lcf.py rel 25 --output $(M25_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M25_LDFLAGS) -o $(M25_TARGET) @build/M25_ofiles -$(BUILD_DIR)/rel/d/a/d_a_set_bgobj/%.o: rel/d/a/d_a_set_bgobj/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_set_bgobj/%.o: rel/d/a/d_a_set_bgobj/%.cpp $(BUILD_DIR)/rel/d/a/d_a_set_bgobj/%.d @echo [ 25] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M25_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M25_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M25_D_FILES := $(M25_O_FILES:.o=.d) +$(M25_D_FILES): +include $(wildcard $(M25_D_FILES)) +endif diff --git a/rel/d/a/d_a_shop_item/Makefile b/rel/d/a/d_a_shop_item/Makefile index ae9f57e2b39..c96cc64a1b1 100644 --- a/rel/d/a/d_a_shop_item/Makefile +++ b/rel/d/a/d_a_shop_item/Makefile @@ -38,10 +38,17 @@ $(M118_TARGET): $(M118_O_FILES) $(M118_LIBS) @python3 tools/lcf.py rel 118 --output $(M118_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M118_LDFLAGS) -o $(M118_TARGET) @build/M118_ofiles -$(BUILD_DIR)/rel/d/a/d_a_shop_item/%.o: rel/d/a/d_a_shop_item/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_shop_item/%.o: rel/d/a/d_a_shop_item/%.cpp $(BUILD_DIR)/rel/d/a/d_a_shop_item/%.d @echo [118] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M118_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M118_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M118_D_FILES := $(M118_O_FILES:.o=.d) +$(M118_D_FILES): +include $(wildcard $(M118_D_FILES)) +endif diff --git a/rel/d/a/d_a_skip_2D/Makefile b/rel/d/a/d_a_skip_2D/Makefile index 29c9a59173c..c24c5f75112 100644 --- a/rel/d/a/d_a_skip_2D/Makefile +++ b/rel/d/a/d_a_skip_2D/Makefile @@ -38,10 +38,17 @@ $(M705_TARGET): $(M705_O_FILES) $(M705_LIBS) @python3 tools/lcf.py rel 705 --output $(M705_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M705_LDFLAGS) -o $(M705_TARGET) @build/M705_ofiles -$(BUILD_DIR)/rel/d/a/d_a_skip_2D/%.o: rel/d/a/d_a_skip_2D/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_skip_2D/%.o: rel/d/a/d_a_skip_2D/%.cpp $(BUILD_DIR)/rel/d/a/d_a_skip_2D/%.d @echo [705] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M705_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M705_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M705_D_FILES := $(M705_O_FILES:.o=.d) +$(M705_D_FILES): +include $(wildcard $(M705_D_FILES)) +endif diff --git a/rel/d/a/d_a_spinner/Makefile b/rel/d/a/d_a_spinner/Makefile index f312183c634..550ec1c8c36 100644 --- a/rel/d/a/d_a_spinner/Makefile +++ b/rel/d/a/d_a_spinner/Makefile @@ -40,10 +40,17 @@ $(M55_TARGET): $(M55_O_FILES) $(M55_LIBS) @python3 tools/lcf.py rel 55 --output $(M55_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M55_LDFLAGS) -o $(M55_TARGET) @build/M55_ofiles -$(BUILD_DIR)/rel/d/a/d_a_spinner/%.o: rel/d/a/d_a_spinner/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_spinner/%.o: rel/d/a/d_a_spinner/%.cpp $(BUILD_DIR)/rel/d/a/d_a_spinner/%.d @echo [ 55] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M55_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M55_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M55_D_FILES := $(M55_O_FILES:.o=.d) +$(M55_D_FILES): +include $(wildcard $(M55_D_FILES)) +endif diff --git a/rel/d/a/d_a_sq/Makefile b/rel/d/a/d_a_sq/Makefile index a5102951e45..21185eb6073 100644 --- a/rel/d/a/d_a_sq/Makefile +++ b/rel/d/a/d_a_sq/Makefile @@ -40,10 +40,17 @@ $(M119_TARGET): $(M119_O_FILES) $(M119_LIBS) @python3 tools/lcf.py rel 119 --output $(M119_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M119_LDFLAGS) -o $(M119_TARGET) @build/M119_ofiles -$(BUILD_DIR)/rel/d/a/d_a_sq/%.o: rel/d/a/d_a_sq/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_sq/%.o: rel/d/a/d_a_sq/%.cpp $(BUILD_DIR)/rel/d/a/d_a_sq/%.d @echo [119] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M119_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M119_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M119_D_FILES := $(M119_O_FILES:.o=.d) +$(M119_D_FILES): +include $(wildcard $(M119_D_FILES)) +endif diff --git a/rel/d/a/d_a_startAndGoal/Makefile b/rel/d/a/d_a_startAndGoal/Makefile index 3b66c04b36a..bb10e5aecd2 100644 --- a/rel/d/a/d_a_startAndGoal/Makefile +++ b/rel/d/a/d_a_startAndGoal/Makefile @@ -38,10 +38,17 @@ $(M706_TARGET): $(M706_O_FILES) $(M706_LIBS) @python3 tools/lcf.py rel 706 --output $(M706_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M706_LDFLAGS) -o $(M706_TARGET) @build/M706_ofiles -$(BUILD_DIR)/rel/d/a/d_a_startAndGoal/%.o: rel/d/a/d_a_startAndGoal/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_startAndGoal/%.o: rel/d/a/d_a_startAndGoal/%.cpp $(BUILD_DIR)/rel/d/a/d_a_startAndGoal/%.d @echo [706] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M706_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M706_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M706_D_FILES := $(M706_O_FILES:.o=.d) +$(M706_D_FILES): +include $(wildcard $(M706_D_FILES)) +endif diff --git a/rel/d/a/d_a_suspend/Makefile b/rel/d/a/d_a_suspend/Makefile index 2c13241b6c1..83c634c97bb 100644 --- a/rel/d/a/d_a_suspend/Makefile +++ b/rel/d/a/d_a_suspend/Makefile @@ -38,10 +38,17 @@ $(M56_TARGET): $(M56_O_FILES) $(M56_LIBS) @python3 tools/lcf.py rel 56 --output $(M56_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M56_LDFLAGS) -o $(M56_TARGET) @build/M56_ofiles -$(BUILD_DIR)/rel/d/a/d_a_suspend/%.o: rel/d/a/d_a_suspend/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_suspend/%.o: rel/d/a/d_a_suspend/%.cpp $(BUILD_DIR)/rel/d/a/d_a_suspend/%.d @echo [ 56] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M56_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M56_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M56_D_FILES := $(M56_O_FILES:.o=.d) +$(M56_D_FILES): +include $(wildcard $(M56_D_FILES)) +endif diff --git a/rel/d/a/d_a_swBall/Makefile b/rel/d/a/d_a_swBall/Makefile index 996bcb9d8b8..9ab1bdebcf9 100644 --- a/rel/d/a/d_a_swBall/Makefile +++ b/rel/d/a/d_a_swBall/Makefile @@ -38,10 +38,17 @@ $(M707_TARGET): $(M707_O_FILES) $(M707_LIBS) @python3 tools/lcf.py rel 707 --output $(M707_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M707_LDFLAGS) -o $(M707_TARGET) @build/M707_ofiles -$(BUILD_DIR)/rel/d/a/d_a_swBall/%.o: rel/d/a/d_a_swBall/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_swBall/%.o: rel/d/a/d_a_swBall/%.cpp $(BUILD_DIR)/rel/d/a/d_a_swBall/%.d @echo [707] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M707_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M707_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M707_D_FILES := $(M707_O_FILES:.o=.d) +$(M707_D_FILES): +include $(wildcard $(M707_D_FILES)) +endif diff --git a/rel/d/a/d_a_swLBall/Makefile b/rel/d/a/d_a_swLBall/Makefile index d09527ad9e4..68a5e26f501 100644 --- a/rel/d/a/d_a_swLBall/Makefile +++ b/rel/d/a/d_a_swLBall/Makefile @@ -38,10 +38,17 @@ $(M708_TARGET): $(M708_O_FILES) $(M708_LIBS) @python3 tools/lcf.py rel 708 --output $(M708_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M708_LDFLAGS) -o $(M708_TARGET) @build/M708_ofiles -$(BUILD_DIR)/rel/d/a/d_a_swLBall/%.o: rel/d/a/d_a_swLBall/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_swLBall/%.o: rel/d/a/d_a_swLBall/%.cpp $(BUILD_DIR)/rel/d/a/d_a_swLBall/%.d @echo [708] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M708_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M708_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M708_D_FILES := $(M708_O_FILES:.o=.d) +$(M708_D_FILES): +include $(wildcard $(M708_D_FILES)) +endif diff --git a/rel/d/a/d_a_swTime/Makefile b/rel/d/a/d_a_swTime/Makefile index 2aac20a1863..33b6d9b423f 100644 --- a/rel/d/a/d_a_swTime/Makefile +++ b/rel/d/a/d_a_swTime/Makefile @@ -38,10 +38,17 @@ $(M709_TARGET): $(M709_O_FILES) $(M709_LIBS) @python3 tools/lcf.py rel 709 --output $(M709_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M709_LDFLAGS) -o $(M709_TARGET) @build/M709_ofiles -$(BUILD_DIR)/rel/d/a/d_a_swTime/%.o: rel/d/a/d_a_swTime/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_swTime/%.o: rel/d/a/d_a_swTime/%.cpp $(BUILD_DIR)/rel/d/a/d_a_swTime/%.d @echo [709] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M709_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M709_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M709_D_FILES := $(M709_O_FILES:.o=.d) +$(M709_D_FILES): +include $(wildcard $(M709_D_FILES)) +endif diff --git a/rel/d/a/d_a_swc00/Makefile b/rel/d/a/d_a_swc00/Makefile index 8cf4e6c1def..d98c9f0b33f 100644 --- a/rel/d/a/d_a_swc00/Makefile +++ b/rel/d/a/d_a_swc00/Makefile @@ -40,10 +40,17 @@ $(M120_TARGET): $(M120_O_FILES) $(M120_LIBS) @python3 tools/lcf.py rel 120 --output $(M120_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M120_LDFLAGS) -o $(M120_TARGET) @build/M120_ofiles -$(BUILD_DIR)/rel/d/a/d_a_swc00/%.o: rel/d/a/d_a_swc00/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_swc00/%.o: rel/d/a/d_a_swc00/%.cpp $(BUILD_DIR)/rel/d/a/d_a_swc00/%.d @echo [120] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M120_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M120_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M120_D_FILES := $(M120_O_FILES:.o=.d) +$(M120_D_FILES): +include $(wildcard $(M120_D_FILES)) +endif diff --git a/rel/d/a/d_a_swhit0/Makefile b/rel/d/a/d_a_swhit0/Makefile index 8ea12cd71aa..252a685d4e3 100644 --- a/rel/d/a/d_a_swhit0/Makefile +++ b/rel/d/a/d_a_swhit0/Makefile @@ -38,10 +38,17 @@ $(M26_TARGET): $(M26_O_FILES) $(M26_LIBS) @python3 tools/lcf.py rel 26 --output $(M26_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M26_LDFLAGS) -o $(M26_TARGET) @build/M26_ofiles -$(BUILD_DIR)/rel/d/a/d_a_swhit0/%.o: rel/d/a/d_a_swhit0/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_swhit0/%.o: rel/d/a/d_a_swhit0/%.cpp $(BUILD_DIR)/rel/d/a/d_a_swhit0/%.d @echo [ 26] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M26_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M26_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M26_D_FILES := $(M26_O_FILES:.o=.d) +$(M26_D_FILES): +include $(wildcard $(M26_D_FILES)) +endif diff --git a/rel/d/a/d_a_talk/Makefile b/rel/d/a/d_a_talk/Makefile index 31c6e3a618e..a74f75012ce 100644 --- a/rel/d/a/d_a_talk/Makefile +++ b/rel/d/a/d_a_talk/Makefile @@ -38,10 +38,17 @@ $(M754_TARGET): $(M754_O_FILES) $(M754_LIBS) @python3 tools/lcf.py rel 754 --output $(M754_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M754_LDFLAGS) -o $(M754_TARGET) @build/M754_ofiles -$(BUILD_DIR)/rel/d/a/d_a_talk/%.o: rel/d/a/d_a_talk/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_talk/%.o: rel/d/a/d_a_talk/%.cpp $(BUILD_DIR)/rel/d/a/d_a_talk/%.d @echo [754] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M754_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M754_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M754_D_FILES := $(M754_O_FILES:.o=.d) +$(M754_D_FILES): +include $(wildcard $(M754_D_FILES)) +endif diff --git a/rel/d/a/d_a_tbox/Makefile b/rel/d/a/d_a_tbox/Makefile index fb0ffce1cdc..01f28f29d71 100644 --- a/rel/d/a/d_a_tbox/Makefile +++ b/rel/d/a/d_a_tbox/Makefile @@ -40,10 +40,17 @@ $(M41_TARGET): $(M41_O_FILES) $(M41_LIBS) @python3 tools/lcf.py rel 41 --output $(M41_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M41_LDFLAGS) -o $(M41_TARGET) @build/M41_ofiles -$(BUILD_DIR)/rel/d/a/d_a_tbox/%.o: rel/d/a/d_a_tbox/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_tbox/%.o: rel/d/a/d_a_tbox/%.cpp $(BUILD_DIR)/rel/d/a/d_a_tbox/%.d @echo [ 41] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M41_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M41_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M41_D_FILES := $(M41_O_FILES:.o=.d) +$(M41_D_FILES): +include $(wildcard $(M41_D_FILES)) +endif diff --git a/rel/d/a/d_a_tbox2/Makefile b/rel/d/a/d_a_tbox2/Makefile index 6c20257f4e3..06bf4a7e81f 100644 --- a/rel/d/a/d_a_tbox2/Makefile +++ b/rel/d/a/d_a_tbox2/Makefile @@ -40,10 +40,17 @@ $(M42_TARGET): $(M42_O_FILES) $(M42_LIBS) @python3 tools/lcf.py rel 42 --output $(M42_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M42_LDFLAGS) -o $(M42_TARGET) @build/M42_ofiles -$(BUILD_DIR)/rel/d/a/d_a_tbox2/%.o: rel/d/a/d_a_tbox2/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_tbox2/%.o: rel/d/a/d_a_tbox2/%.cpp $(BUILD_DIR)/rel/d/a/d_a_tbox2/%.d @echo [ 42] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M42_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M42_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M42_D_FILES := $(M42_O_FILES:.o=.d) +$(M42_D_FILES): +include $(wildcard $(M42_D_FILES)) +endif diff --git a/rel/d/a/d_a_tboxSw/Makefile b/rel/d/a/d_a_tboxSw/Makefile index 95f009a098c..da578c693e9 100644 --- a/rel/d/a/d_a_tboxSw/Makefile +++ b/rel/d/a/d_a_tboxSw/Makefile @@ -38,10 +38,17 @@ $(M755_TARGET): $(M755_O_FILES) $(M755_LIBS) @python3 tools/lcf.py rel 755 --output $(M755_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M755_LDFLAGS) -o $(M755_TARGET) @build/M755_ofiles -$(BUILD_DIR)/rel/d/a/d_a_tboxSw/%.o: rel/d/a/d_a_tboxSw/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_tboxSw/%.o: rel/d/a/d_a_tboxSw/%.cpp $(BUILD_DIR)/rel/d/a/d_a_tboxSw/%.d @echo [755] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M755_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M755_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M755_D_FILES := $(M755_O_FILES:.o=.d) +$(M755_D_FILES): +include $(wildcard $(M755_D_FILES)) +endif diff --git a/rel/d/a/d_a_title/Makefile b/rel/d/a/d_a_title/Makefile index f181cfde405..c4cf15534e2 100644 --- a/rel/d/a/d_a_title/Makefile +++ b/rel/d/a/d_a_title/Makefile @@ -40,10 +40,17 @@ $(M756_TARGET): $(M756_O_FILES) $(M756_LIBS) @python3 tools/lcf.py rel 756 --output $(M756_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M756_LDFLAGS) -o $(M756_TARGET) @build/M756_ofiles -$(BUILD_DIR)/rel/d/a/d_a_title/%.o: rel/d/a/d_a_title/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_title/%.o: rel/d/a/d_a_title/%.cpp $(BUILD_DIR)/rel/d/a/d_a_title/%.d @echo [756] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M756_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M756_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M756_D_FILES := $(M756_O_FILES:.o=.d) +$(M756_D_FILES): +include $(wildcard $(M756_D_FILES)) +endif diff --git a/rel/d/a/d_a_vrbox/Makefile b/rel/d/a/d_a_vrbox/Makefile index 463d51410fc..60012c967a4 100644 --- a/rel/d/a/d_a_vrbox/Makefile +++ b/rel/d/a/d_a_vrbox/Makefile @@ -38,10 +38,17 @@ $(M43_TARGET): $(M43_O_FILES) $(M43_LIBS) @python3 tools/lcf.py rel 43 --output $(M43_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M43_LDFLAGS) -o $(M43_TARGET) @build/M43_ofiles -$(BUILD_DIR)/rel/d/a/d_a_vrbox/%.o: rel/d/a/d_a_vrbox/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_vrbox/%.o: rel/d/a/d_a_vrbox/%.cpp $(BUILD_DIR)/rel/d/a/d_a_vrbox/%.d @echo [ 43] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M43_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M43_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M43_D_FILES := $(M43_O_FILES:.o=.d) +$(M43_D_FILES): +include $(wildcard $(M43_D_FILES)) +endif diff --git a/rel/d/a/d_a_vrbox2/Makefile b/rel/d/a/d_a_vrbox2/Makefile index ab9b5765f66..d8bf1830bf8 100644 --- a/rel/d/a/d_a_vrbox2/Makefile +++ b/rel/d/a/d_a_vrbox2/Makefile @@ -38,10 +38,17 @@ $(M44_TARGET): $(M44_O_FILES) $(M44_LIBS) @python3 tools/lcf.py rel 44 --output $(M44_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M44_LDFLAGS) -o $(M44_TARGET) @build/M44_ofiles -$(BUILD_DIR)/rel/d/a/d_a_vrbox2/%.o: rel/d/a/d_a_vrbox2/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_vrbox2/%.o: rel/d/a/d_a_vrbox2/%.cpp $(BUILD_DIR)/rel/d/a/d_a_vrbox2/%.d @echo [ 44] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M44_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M44_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M44_D_FILES := $(M44_O_FILES:.o=.d) +$(M44_D_FILES): +include $(wildcard $(M44_D_FILES)) +endif diff --git a/rel/d/a/d_a_warp_bug/Makefile b/rel/d/a/d_a_warp_bug/Makefile index 54d8bf11ae1..e9d19553648 100644 --- a/rel/d/a/d_a_warp_bug/Makefile +++ b/rel/d/a/d_a_warp_bug/Makefile @@ -38,10 +38,17 @@ $(M757_TARGET): $(M757_O_FILES) $(M757_LIBS) @python3 tools/lcf.py rel 757 --output $(M757_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M757_LDFLAGS) -o $(M757_TARGET) @build/M757_ofiles -$(BUILD_DIR)/rel/d/a/d_a_warp_bug/%.o: rel/d/a/d_a_warp_bug/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_warp_bug/%.o: rel/d/a/d_a_warp_bug/%.cpp $(BUILD_DIR)/rel/d/a/d_a_warp_bug/%.d @echo [757] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M757_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M757_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M757_D_FILES := $(M757_O_FILES:.o=.d) +$(M757_D_FILES): +include $(wildcard $(M757_D_FILES)) +endif diff --git a/rel/d/a/d_a_ykgr/Makefile b/rel/d/a/d_a_ykgr/Makefile index 6bd9a4d8de0..6959e5a8486 100644 --- a/rel/d/a/d_a_ykgr/Makefile +++ b/rel/d/a/d_a_ykgr/Makefile @@ -40,10 +40,17 @@ $(M134_TARGET): $(M134_O_FILES) $(M134_LIBS) @python3 tools/lcf.py rel 134 --output $(M134_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M134_LDFLAGS) -o $(M134_TARGET) @build/M134_ofiles -$(BUILD_DIR)/rel/d/a/d_a_ykgr/%.o: rel/d/a/d_a_ykgr/%.cpp +$(BUILD_DIR)/rel/d/a/d_a_ykgr/%.o: rel/d/a/d_a_ykgr/%.cpp $(BUILD_DIR)/rel/d/a/d_a_ykgr/%.d @echo [134] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M134_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M134_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M134_D_FILES := $(M134_O_FILES:.o=.d) +$(M134_D_FILES): +include $(wildcard $(M134_D_FILES)) +endif diff --git a/rel/d/a/door/d_a_door_boss/Makefile b/rel/d/a/door/d_a_door_boss/Makefile index 2f10026597d..7fd27f1168d 100644 --- a/rel/d/a/door/d_a_door_boss/Makefile +++ b/rel/d/a/door/d_a_door_boss/Makefile @@ -40,10 +40,17 @@ $(M166_TARGET): $(M166_O_FILES) $(M166_LIBS) @python3 tools/lcf.py rel 166 --output $(M166_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M166_LDFLAGS) -o $(M166_TARGET) @build/M166_ofiles -$(BUILD_DIR)/rel/d/a/door/d_a_door_boss/%.o: rel/d/a/door/d_a_door_boss/%.cpp +$(BUILD_DIR)/rel/d/a/door/d_a_door_boss/%.o: rel/d/a/door/d_a_door_boss/%.cpp $(BUILD_DIR)/rel/d/a/door/d_a_door_boss/%.d @echo [166] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M166_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M166_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M166_D_FILES := $(M166_O_FILES:.o=.d) +$(M166_D_FILES): +include $(wildcard $(M166_D_FILES)) +endif diff --git a/rel/d/a/door/d_a_door_bossL5/Makefile b/rel/d/a/door/d_a_door_bossL5/Makefile index 74cc2d8c957..52439283c2f 100644 --- a/rel/d/a/door/d_a_door_bossL5/Makefile +++ b/rel/d/a/door/d_a_door_bossL5/Makefile @@ -40,10 +40,17 @@ $(M167_TARGET): $(M167_O_FILES) $(M167_LIBS) @python3 tools/lcf.py rel 167 --output $(M167_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M167_LDFLAGS) -o $(M167_TARGET) @build/M167_ofiles -$(BUILD_DIR)/rel/d/a/door/d_a_door_bossL5/%.o: rel/d/a/door/d_a_door_bossL5/%.cpp +$(BUILD_DIR)/rel/d/a/door/d_a_door_bossL5/%.o: rel/d/a/door/d_a_door_bossL5/%.cpp $(BUILD_DIR)/rel/d/a/door/d_a_door_bossL5/%.d @echo [167] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M167_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M167_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M167_D_FILES := $(M167_O_FILES:.o=.d) +$(M167_D_FILES): +include $(wildcard $(M167_D_FILES)) +endif diff --git a/rel/d/a/door/d_a_door_bossl1/Makefile b/rel/d/a/door/d_a_door_bossl1/Makefile index 245ffcd6260..33fc5a261c6 100644 --- a/rel/d/a/door/d_a_door_bossl1/Makefile +++ b/rel/d/a/door/d_a_door_bossl1/Makefile @@ -40,10 +40,17 @@ $(M64_TARGET): $(M64_O_FILES) $(M64_LIBS) @python3 tools/lcf.py rel 64 --output $(M64_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M64_LDFLAGS) -o $(M64_TARGET) @build/M64_ofiles -$(BUILD_DIR)/rel/d/a/door/d_a_door_bossl1/%.o: rel/d/a/door/d_a_door_bossl1/%.cpp +$(BUILD_DIR)/rel/d/a/door/d_a_door_bossl1/%.o: rel/d/a/door/d_a_door_bossl1/%.cpp $(BUILD_DIR)/rel/d/a/door/d_a_door_bossl1/%.d @echo [ 64] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M64_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M64_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M64_D_FILES := $(M64_O_FILES:.o=.d) +$(M64_D_FILES): +include $(wildcard $(M64_D_FILES)) +endif diff --git a/rel/d/a/door/d_a_door_dbdoor00/Makefile b/rel/d/a/door/d_a_door_dbdoor00/Makefile index f0703b12d85..11c492f5e7b 100644 --- a/rel/d/a/door/d_a_door_dbdoor00/Makefile +++ b/rel/d/a/door/d_a_door_dbdoor00/Makefile @@ -38,10 +38,17 @@ $(M6_TARGET): $(M6_O_FILES) $(M6_LIBS) @python3 tools/lcf.py rel 6 --output $(M6_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M6_LDFLAGS) -o $(M6_TARGET) @build/M6_ofiles -$(BUILD_DIR)/rel/d/a/door/d_a_door_dbdoor00/%.o: rel/d/a/door/d_a_door_dbdoor00/%.cpp +$(BUILD_DIR)/rel/d/a/door/d_a_door_dbdoor00/%.o: rel/d/a/door/d_a_door_dbdoor00/%.cpp $(BUILD_DIR)/rel/d/a/door/d_a_door_dbdoor00/%.d @echo [ 6] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M6_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M6_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M6_D_FILES := $(M6_O_FILES:.o=.d) +$(M6_D_FILES): +include $(wildcard $(M6_D_FILES)) +endif diff --git a/rel/d/a/door/d_a_door_knob00/Makefile b/rel/d/a/door/d_a_door_knob00/Makefile index 3ff10f62af4..d9e15bfd242 100644 --- a/rel/d/a/door/d_a_door_knob00/Makefile +++ b/rel/d/a/door/d_a_door_knob00/Makefile @@ -38,10 +38,17 @@ $(M7_TARGET): $(M7_O_FILES) $(M7_LIBS) @python3 tools/lcf.py rel 7 --output $(M7_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M7_LDFLAGS) -o $(M7_TARGET) @build/M7_ofiles -$(BUILD_DIR)/rel/d/a/door/d_a_door_knob00/%.o: rel/d/a/door/d_a_door_knob00/%.cpp +$(BUILD_DIR)/rel/d/a/door/d_a_door_knob00/%.o: rel/d/a/door/d_a_door_knob00/%.cpp $(BUILD_DIR)/rel/d/a/door/d_a_door_knob00/%.d @echo [ 7] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M7_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M7_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M7_D_FILES := $(M7_O_FILES:.o=.d) +$(M7_D_FILES): +include $(wildcard $(M7_D_FILES)) +endif diff --git a/rel/d/a/door/d_a_door_mbossL1/Makefile b/rel/d/a/door/d_a_door_mbossL1/Makefile index 6240478eeb9..935627c04fd 100644 --- a/rel/d/a/door/d_a_door_mbossL1/Makefile +++ b/rel/d/a/door/d_a_door_mbossL1/Makefile @@ -40,10 +40,17 @@ $(M168_TARGET): $(M168_O_FILES) $(M168_LIBS) @python3 tools/lcf.py rel 168 --output $(M168_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M168_LDFLAGS) -o $(M168_TARGET) @build/M168_ofiles -$(BUILD_DIR)/rel/d/a/door/d_a_door_mbossL1/%.o: rel/d/a/door/d_a_door_mbossL1/%.cpp +$(BUILD_DIR)/rel/d/a/door/d_a_door_mbossL1/%.o: rel/d/a/door/d_a_door_mbossL1/%.cpp $(BUILD_DIR)/rel/d/a/door/d_a_door_mbossL1/%.d @echo [168] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M168_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M168_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M168_D_FILES := $(M168_O_FILES:.o=.d) +$(M168_D_FILES): +include $(wildcard $(M168_D_FILES)) +endif diff --git a/rel/d/a/door/d_a_door_push/Makefile b/rel/d/a/door/d_a_door_push/Makefile index e8ebf394072..e440d0a2595 100644 --- a/rel/d/a/door/d_a_door_push/Makefile +++ b/rel/d/a/door/d_a_door_push/Makefile @@ -40,10 +40,17 @@ $(M169_TARGET): $(M169_O_FILES) $(M169_LIBS) @python3 tools/lcf.py rel 169 --output $(M169_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M169_LDFLAGS) -o $(M169_TARGET) @build/M169_ofiles -$(BUILD_DIR)/rel/d/a/door/d_a_door_push/%.o: rel/d/a/door/d_a_door_push/%.cpp +$(BUILD_DIR)/rel/d/a/door/d_a_door_push/%.o: rel/d/a/door/d_a_door_push/%.cpp $(BUILD_DIR)/rel/d/a/door/d_a_door_push/%.d @echo [169] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M169_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M169_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M169_D_FILES := $(M169_O_FILES:.o=.d) +$(M169_D_FILES): +include $(wildcard $(M169_D_FILES)) +endif diff --git a/rel/d/a/door/d_a_door_shutter/Makefile b/rel/d/a/door/d_a_door_shutter/Makefile index 5f1f1bec7ff..0dab7fbf042 100644 --- a/rel/d/a/door/d_a_door_shutter/Makefile +++ b/rel/d/a/door/d_a_door_shutter/Makefile @@ -38,10 +38,17 @@ $(M8_TARGET): $(M8_O_FILES) $(M8_LIBS) @python3 tools/lcf.py rel 8 --output $(M8_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M8_LDFLAGS) -o $(M8_TARGET) @build/M8_ofiles -$(BUILD_DIR)/rel/d/a/door/d_a_door_shutter/%.o: rel/d/a/door/d_a_door_shutter/%.cpp +$(BUILD_DIR)/rel/d/a/door/d_a_door_shutter/%.o: rel/d/a/door/d_a_door_shutter/%.cpp $(BUILD_DIR)/rel/d/a/door/d_a_door_shutter/%.d @echo [ 8] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M8_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M8_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M8_D_FILES := $(M8_O_FILES:.o=.d) +$(M8_D_FILES): +include $(wildcard $(M8_D_FILES)) +endif diff --git a/rel/d/a/door/d_a_door_spiral/Makefile b/rel/d/a/door/d_a_door_spiral/Makefile index c5df689cbfe..e4745c481e1 100644 --- a/rel/d/a/door/d_a_door_spiral/Makefile +++ b/rel/d/a/door/d_a_door_spiral/Makefile @@ -38,10 +38,17 @@ $(M9_TARGET): $(M9_O_FILES) $(M9_LIBS) @python3 tools/lcf.py rel 9 --output $(M9_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M9_LDFLAGS) -o $(M9_TARGET) @build/M9_ofiles -$(BUILD_DIR)/rel/d/a/door/d_a_door_spiral/%.o: rel/d/a/door/d_a_door_spiral/%.cpp +$(BUILD_DIR)/rel/d/a/door/d_a_door_spiral/%.o: rel/d/a/door/d_a_door_spiral/%.cpp $(BUILD_DIR)/rel/d/a/door/d_a_door_spiral/%.d @echo [ 9] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M9_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M9_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M9_D_FILES := $(M9_O_FILES:.o=.d) +$(M9_D_FILES): +include $(wildcard $(M9_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_ai/Makefile b/rel/d/a/e/d_a_e_ai/Makefile index 43a2ede61d9..913eb10dd40 100644 --- a/rel/d/a/e/d_a_e_ai/Makefile +++ b/rel/d/a/e/d_a_e_ai/Makefile @@ -40,10 +40,17 @@ $(M170_TARGET): $(M170_O_FILES) $(M170_LIBS) @python3 tools/lcf.py rel 170 --output $(M170_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M170_LDFLAGS) -o $(M170_TARGET) @build/M170_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_ai/%.o: rel/d/a/e/d_a_e_ai/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_ai/%.o: rel/d/a/e/d_a_e_ai/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ai/%.d @echo [170] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M170_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M170_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M170_D_FILES := $(M170_O_FILES:.o=.d) +$(M170_D_FILES): +include $(wildcard $(M170_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_arrow/Makefile b/rel/d/a/e/d_a_e_arrow/Makefile index b1a693d2cb3..06f8c62525e 100644 --- a/rel/d/a/e/d_a_e_arrow/Makefile +++ b/rel/d/a/e/d_a_e_arrow/Makefile @@ -40,10 +40,17 @@ $(M171_TARGET): $(M171_O_FILES) $(M171_LIBS) @python3 tools/lcf.py rel 171 --output $(M171_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M171_LDFLAGS) -o $(M171_TARGET) @build/M171_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_arrow/%.o: rel/d/a/e/d_a_e_arrow/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_arrow/%.o: rel/d/a/e/d_a_e_arrow/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_arrow/%.d @echo [171] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M171_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M171_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M171_D_FILES := $(M171_O_FILES:.o=.d) +$(M171_D_FILES): +include $(wildcard $(M171_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_ba/Makefile b/rel/d/a/e/d_a_e_ba/Makefile index 795584cb52b..10d837ee801 100644 --- a/rel/d/a/e/d_a_e_ba/Makefile +++ b/rel/d/a/e/d_a_e_ba/Makefile @@ -40,10 +40,17 @@ $(M172_TARGET): $(M172_O_FILES) $(M172_LIBS) @python3 tools/lcf.py rel 172 --output $(M172_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M172_LDFLAGS) -o $(M172_TARGET) @build/M172_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_ba/%.o: rel/d/a/e/d_a_e_ba/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_ba/%.o: rel/d/a/e/d_a_e_ba/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ba/%.d @echo [172] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M172_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M172_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M172_D_FILES := $(M172_O_FILES:.o=.d) +$(M172_D_FILES): +include $(wildcard $(M172_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_bee/Makefile b/rel/d/a/e/d_a_e_bee/Makefile index ef2c8076d80..6b35d5d1ca9 100644 --- a/rel/d/a/e/d_a_e_bee/Makefile +++ b/rel/d/a/e/d_a_e_bee/Makefile @@ -40,10 +40,17 @@ $(M173_TARGET): $(M173_O_FILES) $(M173_LIBS) @python3 tools/lcf.py rel 173 --output $(M173_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M173_LDFLAGS) -o $(M173_TARGET) @build/M173_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_bee/%.o: rel/d/a/e/d_a_e_bee/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_bee/%.o: rel/d/a/e/d_a_e_bee/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_bee/%.d @echo [173] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M173_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M173_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M173_D_FILES := $(M173_O_FILES:.o=.d) +$(M173_D_FILES): +include $(wildcard $(M173_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_bg/Makefile b/rel/d/a/e/d_a_e_bg/Makefile index 2e9908b3345..32c02bc9b67 100644 --- a/rel/d/a/e/d_a_e_bg/Makefile +++ b/rel/d/a/e/d_a_e_bg/Makefile @@ -40,10 +40,17 @@ $(M174_TARGET): $(M174_O_FILES) $(M174_LIBS) @python3 tools/lcf.py rel 174 --output $(M174_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M174_LDFLAGS) -o $(M174_TARGET) @build/M174_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_bg/%.o: rel/d/a/e/d_a_e_bg/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_bg/%.o: rel/d/a/e/d_a_e_bg/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_bg/%.d @echo [174] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M174_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M174_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M174_D_FILES := $(M174_O_FILES:.o=.d) +$(M174_D_FILES): +include $(wildcard $(M174_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_bi/Makefile b/rel/d/a/e/d_a_e_bi/Makefile index 648850adcd8..342b3d976ce 100644 --- a/rel/d/a/e/d_a_e_bi/Makefile +++ b/rel/d/a/e/d_a_e_bi/Makefile @@ -40,10 +40,17 @@ $(M175_TARGET): $(M175_O_FILES) $(M175_LIBS) @python3 tools/lcf.py rel 175 --output $(M175_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M175_LDFLAGS) -o $(M175_TARGET) @build/M175_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_bi/%.o: rel/d/a/e/d_a_e_bi/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_bi/%.o: rel/d/a/e/d_a_e_bi/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_bi/%.d @echo [175] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M175_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M175_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M175_D_FILES := $(M175_O_FILES:.o=.d) +$(M175_D_FILES): +include $(wildcard $(M175_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_bi_leaf/Makefile b/rel/d/a/e/d_a_e_bi_leaf/Makefile index cebcae7615a..7da2964328f 100644 --- a/rel/d/a/e/d_a_e_bi_leaf/Makefile +++ b/rel/d/a/e/d_a_e_bi_leaf/Makefile @@ -38,10 +38,17 @@ $(M176_TARGET): $(M176_O_FILES) $(M176_LIBS) @python3 tools/lcf.py rel 176 --output $(M176_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M176_LDFLAGS) -o $(M176_TARGET) @build/M176_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_bi_leaf/%.o: rel/d/a/e/d_a_e_bi_leaf/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_bi_leaf/%.o: rel/d/a/e/d_a_e_bi_leaf/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_bi_leaf/%.d @echo [176] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M176_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M176_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M176_D_FILES := $(M176_O_FILES:.o=.d) +$(M176_D_FILES): +include $(wildcard $(M176_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_bs/Makefile b/rel/d/a/e/d_a_e_bs/Makefile index d7ba6157e56..29e78c56a9b 100644 --- a/rel/d/a/e/d_a_e_bs/Makefile +++ b/rel/d/a/e/d_a_e_bs/Makefile @@ -40,10 +40,17 @@ $(M177_TARGET): $(M177_O_FILES) $(M177_LIBS) @python3 tools/lcf.py rel 177 --output $(M177_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M177_LDFLAGS) -o $(M177_TARGET) @build/M177_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_bs/%.o: rel/d/a/e/d_a_e_bs/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_bs/%.o: rel/d/a/e/d_a_e_bs/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_bs/%.d @echo [177] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M177_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M177_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M177_D_FILES := $(M177_O_FILES:.o=.d) +$(M177_D_FILES): +include $(wildcard $(M177_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_bu/Makefile b/rel/d/a/e/d_a_e_bu/Makefile index 0ab249f3b63..f5bb228d898 100644 --- a/rel/d/a/e/d_a_e_bu/Makefile +++ b/rel/d/a/e/d_a_e_bu/Makefile @@ -40,10 +40,17 @@ $(M178_TARGET): $(M178_O_FILES) $(M178_LIBS) @python3 tools/lcf.py rel 178 --output $(M178_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M178_LDFLAGS) -o $(M178_TARGET) @build/M178_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_bu/%.o: rel/d/a/e/d_a_e_bu/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_bu/%.o: rel/d/a/e/d_a_e_bu/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_bu/%.d @echo [178] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M178_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M178_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M178_D_FILES := $(M178_O_FILES:.o=.d) +$(M178_D_FILES): +include $(wildcard $(M178_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_bug/Makefile b/rel/d/a/e/d_a_e_bug/Makefile index 3279c0addbe..736dfee5cec 100644 --- a/rel/d/a/e/d_a_e_bug/Makefile +++ b/rel/d/a/e/d_a_e_bug/Makefile @@ -40,10 +40,17 @@ $(M179_TARGET): $(M179_O_FILES) $(M179_LIBS) @python3 tools/lcf.py rel 179 --output $(M179_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M179_LDFLAGS) -o $(M179_TARGET) @build/M179_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_bug/%.o: rel/d/a/e/d_a_e_bug/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_bug/%.o: rel/d/a/e/d_a_e_bug/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_bug/%.d @echo [179] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M179_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M179_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M179_D_FILES := $(M179_O_FILES:.o=.d) +$(M179_D_FILES): +include $(wildcard $(M179_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_cr/Makefile b/rel/d/a/e/d_a_e_cr/Makefile index 64488532390..d812ca5dfab 100644 --- a/rel/d/a/e/d_a_e_cr/Makefile +++ b/rel/d/a/e/d_a_e_cr/Makefile @@ -40,10 +40,17 @@ $(M180_TARGET): $(M180_O_FILES) $(M180_LIBS) @python3 tools/lcf.py rel 180 --output $(M180_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M180_LDFLAGS) -o $(M180_TARGET) @build/M180_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_cr/%.o: rel/d/a/e/d_a_e_cr/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_cr/%.o: rel/d/a/e/d_a_e_cr/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_cr/%.d @echo [180] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M180_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M180_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M180_D_FILES := $(M180_O_FILES:.o=.d) +$(M180_D_FILES): +include $(wildcard $(M180_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_cr_egg/Makefile b/rel/d/a/e/d_a_e_cr_egg/Makefile index 065c6571c1d..7d4927d24cd 100644 --- a/rel/d/a/e/d_a_e_cr_egg/Makefile +++ b/rel/d/a/e/d_a_e_cr_egg/Makefile @@ -38,10 +38,17 @@ $(M181_TARGET): $(M181_O_FILES) $(M181_LIBS) @python3 tools/lcf.py rel 181 --output $(M181_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M181_LDFLAGS) -o $(M181_TARGET) @build/M181_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_cr_egg/%.o: rel/d/a/e/d_a_e_cr_egg/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_cr_egg/%.o: rel/d/a/e/d_a_e_cr_egg/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_cr_egg/%.d @echo [181] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M181_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M181_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M181_D_FILES := $(M181_O_FILES:.o=.d) +$(M181_D_FILES): +include $(wildcard $(M181_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_db/Makefile b/rel/d/a/e/d_a_e_db/Makefile index b6532b20ad5..2da0d0ff041 100644 --- a/rel/d/a/e/d_a_e_db/Makefile +++ b/rel/d/a/e/d_a_e_db/Makefile @@ -40,10 +40,17 @@ $(M182_TARGET): $(M182_O_FILES) $(M182_LIBS) @python3 tools/lcf.py rel 182 --output $(M182_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M182_LDFLAGS) -o $(M182_TARGET) @build/M182_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_db/%.o: rel/d/a/e/d_a_e_db/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_db/%.o: rel/d/a/e/d_a_e_db/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_db/%.d @echo [182] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M182_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M182_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M182_D_FILES := $(M182_O_FILES:.o=.d) +$(M182_D_FILES): +include $(wildcard $(M182_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_db_leaf/Makefile b/rel/d/a/e/d_a_e_db_leaf/Makefile index fbdb8a876f1..85de7888d14 100644 --- a/rel/d/a/e/d_a_e_db_leaf/Makefile +++ b/rel/d/a/e/d_a_e_db_leaf/Makefile @@ -38,10 +38,17 @@ $(M183_TARGET): $(M183_O_FILES) $(M183_LIBS) @python3 tools/lcf.py rel 183 --output $(M183_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M183_LDFLAGS) -o $(M183_TARGET) @build/M183_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_db_leaf/%.o: rel/d/a/e/d_a_e_db_leaf/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_db_leaf/%.o: rel/d/a/e/d_a_e_db_leaf/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_db_leaf/%.d @echo [183] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M183_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M183_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M183_D_FILES := $(M183_O_FILES:.o=.d) +$(M183_D_FILES): +include $(wildcard $(M183_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_dd/Makefile b/rel/d/a/e/d_a_e_dd/Makefile index 6e0fda40a28..9863e846a62 100644 --- a/rel/d/a/e/d_a_e_dd/Makefile +++ b/rel/d/a/e/d_a_e_dd/Makefile @@ -40,10 +40,17 @@ $(M184_TARGET): $(M184_O_FILES) $(M184_LIBS) @python3 tools/lcf.py rel 184 --output $(M184_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M184_LDFLAGS) -o $(M184_TARGET) @build/M184_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_dd/%.o: rel/d/a/e/d_a_e_dd/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_dd/%.o: rel/d/a/e/d_a_e_dd/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_dd/%.d @echo [184] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M184_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M184_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M184_D_FILES := $(M184_O_FILES:.o=.d) +$(M184_D_FILES): +include $(wildcard $(M184_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_df/Makefile b/rel/d/a/e/d_a_e_df/Makefile index b464b59db29..a170368b726 100644 --- a/rel/d/a/e/d_a_e_df/Makefile +++ b/rel/d/a/e/d_a_e_df/Makefile @@ -40,10 +40,17 @@ $(M185_TARGET): $(M185_O_FILES) $(M185_LIBS) @python3 tools/lcf.py rel 185 --output $(M185_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M185_LDFLAGS) -o $(M185_TARGET) @build/M185_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_df/%.o: rel/d/a/e/d_a_e_df/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_df/%.o: rel/d/a/e/d_a_e_df/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_df/%.d @echo [185] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M185_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M185_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M185_D_FILES := $(M185_O_FILES:.o=.d) +$(M185_D_FILES): +include $(wildcard $(M185_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_dk/Makefile b/rel/d/a/e/d_a_e_dk/Makefile index ea2d670e9a3..fa9e2703062 100644 --- a/rel/d/a/e/d_a_e_dk/Makefile +++ b/rel/d/a/e/d_a_e_dk/Makefile @@ -40,10 +40,17 @@ $(M186_TARGET): $(M186_O_FILES) $(M186_LIBS) @python3 tools/lcf.py rel 186 --output $(M186_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M186_LDFLAGS) -o $(M186_TARGET) @build/M186_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_dk/%.o: rel/d/a/e/d_a_e_dk/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_dk/%.o: rel/d/a/e/d_a_e_dk/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_dk/%.d @echo [186] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M186_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M186_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M186_D_FILES := $(M186_O_FILES:.o=.d) +$(M186_D_FILES): +include $(wildcard $(M186_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_dn/Makefile b/rel/d/a/e/d_a_e_dn/Makefile index 5e3ff5b598f..09fbf4f9d1c 100644 --- a/rel/d/a/e/d_a_e_dn/Makefile +++ b/rel/d/a/e/d_a_e_dn/Makefile @@ -40,10 +40,17 @@ $(M65_TARGET): $(M65_O_FILES) $(M65_LIBS) @python3 tools/lcf.py rel 65 --output $(M65_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M65_LDFLAGS) -o $(M65_TARGET) @build/M65_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_dn/%.o: rel/d/a/e/d_a_e_dn/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_dn/%.o: rel/d/a/e/d_a_e_dn/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_dn/%.d @echo [ 65] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M65_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M65_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M65_D_FILES := $(M65_O_FILES:.o=.d) +$(M65_D_FILES): +include $(wildcard $(M65_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_dt/Makefile b/rel/d/a/e/d_a_e_dt/Makefile index 3f56ed34248..9eaf3ab83ee 100644 --- a/rel/d/a/e/d_a_e_dt/Makefile +++ b/rel/d/a/e/d_a_e_dt/Makefile @@ -40,10 +40,17 @@ $(M187_TARGET): $(M187_O_FILES) $(M187_LIBS) @python3 tools/lcf.py rel 187 --output $(M187_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M187_LDFLAGS) -o $(M187_TARGET) @build/M187_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_dt/%.o: rel/d/a/e/d_a_e_dt/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_dt/%.o: rel/d/a/e/d_a_e_dt/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_dt/%.d @echo [187] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M187_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M187_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M187_D_FILES := $(M187_O_FILES:.o=.d) +$(M187_D_FILES): +include $(wildcard $(M187_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_fb/Makefile b/rel/d/a/e/d_a_e_fb/Makefile index 2246d5934dc..dbea74b8862 100644 --- a/rel/d/a/e/d_a_e_fb/Makefile +++ b/rel/d/a/e/d_a_e_fb/Makefile @@ -40,10 +40,17 @@ $(M188_TARGET): $(M188_O_FILES) $(M188_LIBS) @python3 tools/lcf.py rel 188 --output $(M188_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M188_LDFLAGS) -o $(M188_TARGET) @build/M188_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_fb/%.o: rel/d/a/e/d_a_e_fb/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_fb/%.o: rel/d/a/e/d_a_e_fb/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_fb/%.d @echo [188] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M188_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M188_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M188_D_FILES := $(M188_O_FILES:.o=.d) +$(M188_D_FILES): +include $(wildcard $(M188_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_fk/Makefile b/rel/d/a/e/d_a_e_fk/Makefile index 8e10fb756f2..8f0e751d52f 100644 --- a/rel/d/a/e/d_a_e_fk/Makefile +++ b/rel/d/a/e/d_a_e_fk/Makefile @@ -40,10 +40,17 @@ $(M189_TARGET): $(M189_O_FILES) $(M189_LIBS) @python3 tools/lcf.py rel 189 --output $(M189_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M189_LDFLAGS) -o $(M189_TARGET) @build/M189_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_fk/%.o: rel/d/a/e/d_a_e_fk/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_fk/%.o: rel/d/a/e/d_a_e_fk/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_fk/%.d @echo [189] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M189_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M189_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M189_D_FILES := $(M189_O_FILES:.o=.d) +$(M189_D_FILES): +include $(wildcard $(M189_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_fm/Makefile b/rel/d/a/e/d_a_e_fm/Makefile index 6d36024dda1..e3350e63477 100644 --- a/rel/d/a/e/d_a_e_fm/Makefile +++ b/rel/d/a/e/d_a_e_fm/Makefile @@ -40,10 +40,17 @@ $(M66_TARGET): $(M66_O_FILES) $(M66_LIBS) @python3 tools/lcf.py rel 66 --output $(M66_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M66_LDFLAGS) -o $(M66_TARGET) @build/M66_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_fm/%.o: rel/d/a/e/d_a_e_fm/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_fm/%.o: rel/d/a/e/d_a_e_fm/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_fm/%.d @echo [ 66] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M66_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M66_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M66_D_FILES := $(M66_O_FILES:.o=.d) +$(M66_D_FILES): +include $(wildcard $(M66_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_fs/Makefile b/rel/d/a/e/d_a_e_fs/Makefile index 8463fbc1f19..95b02de522d 100644 --- a/rel/d/a/e/d_a_e_fs/Makefile +++ b/rel/d/a/e/d_a_e_fs/Makefile @@ -40,10 +40,17 @@ $(M190_TARGET): $(M190_O_FILES) $(M190_LIBS) @python3 tools/lcf.py rel 190 --output $(M190_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M190_LDFLAGS) -o $(M190_TARGET) @build/M190_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_fs/%.o: rel/d/a/e/d_a_e_fs/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_fs/%.o: rel/d/a/e/d_a_e_fs/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_fs/%.d @echo [190] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M190_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M190_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M190_D_FILES := $(M190_O_FILES:.o=.d) +$(M190_D_FILES): +include $(wildcard $(M190_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_fz/Makefile b/rel/d/a/e/d_a_e_fz/Makefile index be1cc9289a6..60174c4ae1d 100644 --- a/rel/d/a/e/d_a_e_fz/Makefile +++ b/rel/d/a/e/d_a_e_fz/Makefile @@ -40,10 +40,17 @@ $(M191_TARGET): $(M191_O_FILES) $(M191_LIBS) @python3 tools/lcf.py rel 191 --output $(M191_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M191_LDFLAGS) -o $(M191_TARGET) @build/M191_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_fz/%.o: rel/d/a/e/d_a_e_fz/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_fz/%.o: rel/d/a/e/d_a_e_fz/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_fz/%.d @echo [191] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M191_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M191_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M191_D_FILES := $(M191_O_FILES:.o=.d) +$(M191_D_FILES): +include $(wildcard $(M191_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_ga/Makefile b/rel/d/a/e/d_a_e_ga/Makefile index 33198e7c7b2..242c34e0036 100644 --- a/rel/d/a/e/d_a_e_ga/Makefile +++ b/rel/d/a/e/d_a_e_ga/Makefile @@ -40,10 +40,17 @@ $(M67_TARGET): $(M67_O_FILES) $(M67_LIBS) @python3 tools/lcf.py rel 67 --output $(M67_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M67_LDFLAGS) -o $(M67_TARGET) @build/M67_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_ga/%.o: rel/d/a/e/d_a_e_ga/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_ga/%.o: rel/d/a/e/d_a_e_ga/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ga/%.d @echo [ 67] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M67_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M67_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M67_D_FILES := $(M67_O_FILES:.o=.d) +$(M67_D_FILES): +include $(wildcard $(M67_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_gb/Makefile b/rel/d/a/e/d_a_e_gb/Makefile index f8ea4cbabee..4985179292b 100644 --- a/rel/d/a/e/d_a_e_gb/Makefile +++ b/rel/d/a/e/d_a_e_gb/Makefile @@ -40,10 +40,17 @@ $(M192_TARGET): $(M192_O_FILES) $(M192_LIBS) @python3 tools/lcf.py rel 192 --output $(M192_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M192_LDFLAGS) -o $(M192_TARGET) @build/M192_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_gb/%.o: rel/d/a/e/d_a_e_gb/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_gb/%.o: rel/d/a/e/d_a_e_gb/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_gb/%.d @echo [192] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M192_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M192_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M192_D_FILES := $(M192_O_FILES:.o=.d) +$(M192_D_FILES): +include $(wildcard $(M192_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_ge/Makefile b/rel/d/a/e/d_a_e_ge/Makefile index d72ac834f3e..f9aa9cc5f6d 100644 --- a/rel/d/a/e/d_a_e_ge/Makefile +++ b/rel/d/a/e/d_a_e_ge/Makefile @@ -40,10 +40,17 @@ $(M193_TARGET): $(M193_O_FILES) $(M193_LIBS) @python3 tools/lcf.py rel 193 --output $(M193_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M193_LDFLAGS) -o $(M193_TARGET) @build/M193_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_ge/%.o: rel/d/a/e/d_a_e_ge/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_ge/%.o: rel/d/a/e/d_a_e_ge/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ge/%.d @echo [193] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M193_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M193_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M193_D_FILES := $(M193_O_FILES:.o=.d) +$(M193_D_FILES): +include $(wildcard $(M193_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_gi/Makefile b/rel/d/a/e/d_a_e_gi/Makefile index 7b2748dc00d..b83625aa32b 100644 --- a/rel/d/a/e/d_a_e_gi/Makefile +++ b/rel/d/a/e/d_a_e_gi/Makefile @@ -40,10 +40,17 @@ $(M194_TARGET): $(M194_O_FILES) $(M194_LIBS) @python3 tools/lcf.py rel 194 --output $(M194_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M194_LDFLAGS) -o $(M194_TARGET) @build/M194_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_gi/%.o: rel/d/a/e/d_a_e_gi/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_gi/%.o: rel/d/a/e/d_a_e_gi/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_gi/%.d @echo [194] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M194_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M194_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M194_D_FILES := $(M194_O_FILES:.o=.d) +$(M194_D_FILES): +include $(wildcard $(M194_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_gm/Makefile b/rel/d/a/e/d_a_e_gm/Makefile index 8333aa9c2f1..ec877cee259 100644 --- a/rel/d/a/e/d_a_e_gm/Makefile +++ b/rel/d/a/e/d_a_e_gm/Makefile @@ -40,10 +40,17 @@ $(M195_TARGET): $(M195_O_FILES) $(M195_LIBS) @python3 tools/lcf.py rel 195 --output $(M195_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M195_LDFLAGS) -o $(M195_TARGET) @build/M195_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_gm/%.o: rel/d/a/e/d_a_e_gm/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_gm/%.o: rel/d/a/e/d_a_e_gm/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_gm/%.d @echo [195] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M195_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M195_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M195_D_FILES := $(M195_O_FILES:.o=.d) +$(M195_D_FILES): +include $(wildcard $(M195_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_gob/Makefile b/rel/d/a/e/d_a_e_gob/Makefile index 855a295dba4..5dffa7db977 100644 --- a/rel/d/a/e/d_a_e_gob/Makefile +++ b/rel/d/a/e/d_a_e_gob/Makefile @@ -40,10 +40,17 @@ $(M196_TARGET): $(M196_O_FILES) $(M196_LIBS) @python3 tools/lcf.py rel 196 --output $(M196_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M196_LDFLAGS) -o $(M196_TARGET) @build/M196_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_gob/%.o: rel/d/a/e/d_a_e_gob/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_gob/%.o: rel/d/a/e/d_a_e_gob/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_gob/%.d @echo [196] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M196_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M196_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M196_D_FILES := $(M196_O_FILES:.o=.d) +$(M196_D_FILES): +include $(wildcard $(M196_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_gs/Makefile b/rel/d/a/e/d_a_e_gs/Makefile index aaadae072e7..772ab6d6594 100644 --- a/rel/d/a/e/d_a_e_gs/Makefile +++ b/rel/d/a/e/d_a_e_gs/Makefile @@ -40,10 +40,17 @@ $(M197_TARGET): $(M197_O_FILES) $(M197_LIBS) @python3 tools/lcf.py rel 197 --output $(M197_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M197_LDFLAGS) -o $(M197_TARGET) @build/M197_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_gs/%.o: rel/d/a/e/d_a_e_gs/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_gs/%.o: rel/d/a/e/d_a_e_gs/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_gs/%.d @echo [197] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M197_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M197_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M197_D_FILES := $(M197_O_FILES:.o=.d) +$(M197_D_FILES): +include $(wildcard $(M197_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_hb/Makefile b/rel/d/a/e/d_a_e_hb/Makefile index 234b6dea435..895eaa71613 100644 --- a/rel/d/a/e/d_a_e_hb/Makefile +++ b/rel/d/a/e/d_a_e_hb/Makefile @@ -40,10 +40,17 @@ $(M68_TARGET): $(M68_O_FILES) $(M68_LIBS) @python3 tools/lcf.py rel 68 --output $(M68_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M68_LDFLAGS) -o $(M68_TARGET) @build/M68_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_hb/%.o: rel/d/a/e/d_a_e_hb/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_hb/%.o: rel/d/a/e/d_a_e_hb/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_hb/%.d @echo [ 68] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M68_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M68_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M68_D_FILES := $(M68_O_FILES:.o=.d) +$(M68_D_FILES): +include $(wildcard $(M68_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_hb_leaf/Makefile b/rel/d/a/e/d_a_e_hb_leaf/Makefile index 4503a140389..b6d28bb3b06 100644 --- a/rel/d/a/e/d_a_e_hb_leaf/Makefile +++ b/rel/d/a/e/d_a_e_hb_leaf/Makefile @@ -38,10 +38,17 @@ $(M198_TARGET): $(M198_O_FILES) $(M198_LIBS) @python3 tools/lcf.py rel 198 --output $(M198_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M198_LDFLAGS) -o $(M198_TARGET) @build/M198_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_hb_leaf/%.o: rel/d/a/e/d_a_e_hb_leaf/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_hb_leaf/%.o: rel/d/a/e/d_a_e_hb_leaf/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_hb_leaf/%.d @echo [198] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M198_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M198_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M198_D_FILES := $(M198_O_FILES:.o=.d) +$(M198_D_FILES): +include $(wildcard $(M198_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_hm/Makefile b/rel/d/a/e/d_a_e_hm/Makefile index 397930686dc..81cb0d046fe 100644 --- a/rel/d/a/e/d_a_e_hm/Makefile +++ b/rel/d/a/e/d_a_e_hm/Makefile @@ -40,10 +40,17 @@ $(M199_TARGET): $(M199_O_FILES) $(M199_LIBS) @python3 tools/lcf.py rel 199 --output $(M199_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M199_LDFLAGS) -o $(M199_TARGET) @build/M199_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_hm/%.o: rel/d/a/e/d_a_e_hm/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_hm/%.o: rel/d/a/e/d_a_e_hm/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_hm/%.d @echo [199] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M199_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M199_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M199_D_FILES := $(M199_O_FILES:.o=.d) +$(M199_D_FILES): +include $(wildcard $(M199_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_hp/Makefile b/rel/d/a/e/d_a_e_hp/Makefile index 7f31d45fd3f..02dbaa165e3 100644 --- a/rel/d/a/e/d_a_e_hp/Makefile +++ b/rel/d/a/e/d_a_e_hp/Makefile @@ -40,10 +40,17 @@ $(M200_TARGET): $(M200_O_FILES) $(M200_LIBS) @python3 tools/lcf.py rel 200 --output $(M200_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M200_LDFLAGS) -o $(M200_TARGET) @build/M200_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_hp/%.o: rel/d/a/e/d_a_e_hp/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_hp/%.o: rel/d/a/e/d_a_e_hp/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_hp/%.d @echo [200] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M200_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M200_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M200_D_FILES := $(M200_O_FILES:.o=.d) +$(M200_D_FILES): +include $(wildcard $(M200_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_hz/Makefile b/rel/d/a/e/d_a_e_hz/Makefile index fe34706b968..1871e6da64e 100644 --- a/rel/d/a/e/d_a_e_hz/Makefile +++ b/rel/d/a/e/d_a_e_hz/Makefile @@ -40,10 +40,17 @@ $(M201_TARGET): $(M201_O_FILES) $(M201_LIBS) @python3 tools/lcf.py rel 201 --output $(M201_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M201_LDFLAGS) -o $(M201_TARGET) @build/M201_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_hz/%.o: rel/d/a/e/d_a_e_hz/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_hz/%.o: rel/d/a/e/d_a_e_hz/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_hz/%.d @echo [201] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M201_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M201_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M201_D_FILES := $(M201_O_FILES:.o=.d) +$(M201_D_FILES): +include $(wildcard $(M201_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_hzelda/Makefile b/rel/d/a/e/d_a_e_hzelda/Makefile index c16199cd08b..2ca7d2848f9 100644 --- a/rel/d/a/e/d_a_e_hzelda/Makefile +++ b/rel/d/a/e/d_a_e_hzelda/Makefile @@ -40,10 +40,17 @@ $(M202_TARGET): $(M202_O_FILES) $(M202_LIBS) @python3 tools/lcf.py rel 202 --output $(M202_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M202_LDFLAGS) -o $(M202_TARGET) @build/M202_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_hzelda/%.o: rel/d/a/e/d_a_e_hzelda/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_hzelda/%.o: rel/d/a/e/d_a_e_hzelda/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_hzelda/%.d @echo [202] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M202_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M202_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M202_D_FILES := $(M202_O_FILES:.o=.d) +$(M202_D_FILES): +include $(wildcard $(M202_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_is/Makefile b/rel/d/a/e/d_a_e_is/Makefile index aa8d306f8b6..f5cca9d9ba4 100644 --- a/rel/d/a/e/d_a_e_is/Makefile +++ b/rel/d/a/e/d_a_e_is/Makefile @@ -40,10 +40,17 @@ $(M203_TARGET): $(M203_O_FILES) $(M203_LIBS) @python3 tools/lcf.py rel 203 --output $(M203_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M203_LDFLAGS) -o $(M203_TARGET) @build/M203_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_is/%.o: rel/d/a/e/d_a_e_is/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_is/%.o: rel/d/a/e/d_a_e_is/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_is/%.d @echo [203] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M203_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M203_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M203_D_FILES := $(M203_O_FILES:.o=.d) +$(M203_D_FILES): +include $(wildcard $(M203_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_kg/Makefile b/rel/d/a/e/d_a_e_kg/Makefile index 68323d81bf9..4bc1d7ad22f 100644 --- a/rel/d/a/e/d_a_e_kg/Makefile +++ b/rel/d/a/e/d_a_e_kg/Makefile @@ -40,10 +40,17 @@ $(M204_TARGET): $(M204_O_FILES) $(M204_LIBS) @python3 tools/lcf.py rel 204 --output $(M204_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M204_LDFLAGS) -o $(M204_TARGET) @build/M204_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_kg/%.o: rel/d/a/e/d_a_e_kg/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_kg/%.o: rel/d/a/e/d_a_e_kg/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_kg/%.d @echo [204] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M204_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M204_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M204_D_FILES := $(M204_O_FILES:.o=.d) +$(M204_D_FILES): +include $(wildcard $(M204_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_kk/Makefile b/rel/d/a/e/d_a_e_kk/Makefile index 9866363c9d1..f39fa47b186 100644 --- a/rel/d/a/e/d_a_e_kk/Makefile +++ b/rel/d/a/e/d_a_e_kk/Makefile @@ -40,10 +40,17 @@ $(M205_TARGET): $(M205_O_FILES) $(M205_LIBS) @python3 tools/lcf.py rel 205 --output $(M205_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M205_LDFLAGS) -o $(M205_TARGET) @build/M205_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_kk/%.o: rel/d/a/e/d_a_e_kk/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_kk/%.o: rel/d/a/e/d_a_e_kk/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_kk/%.d @echo [205] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M205_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M205_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M205_D_FILES := $(M205_O_FILES:.o=.d) +$(M205_D_FILES): +include $(wildcard $(M205_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_kr/Makefile b/rel/d/a/e/d_a_e_kr/Makefile index 13e57b6609f..2d2ca64103a 100644 --- a/rel/d/a/e/d_a_e_kr/Makefile +++ b/rel/d/a/e/d_a_e_kr/Makefile @@ -40,10 +40,17 @@ $(M206_TARGET): $(M206_O_FILES) $(M206_LIBS) @python3 tools/lcf.py rel 206 --output $(M206_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M206_LDFLAGS) -o $(M206_TARGET) @build/M206_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_kr/%.o: rel/d/a/e/d_a_e_kr/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_kr/%.o: rel/d/a/e/d_a_e_kr/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_kr/%.d @echo [206] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M206_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M206_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M206_D_FILES := $(M206_O_FILES:.o=.d) +$(M206_D_FILES): +include $(wildcard $(M206_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_mb/Makefile b/rel/d/a/e/d_a_e_mb/Makefile index 0f0e5a54609..26329b48c57 100644 --- a/rel/d/a/e/d_a_e_mb/Makefile +++ b/rel/d/a/e/d_a_e_mb/Makefile @@ -40,10 +40,17 @@ $(M207_TARGET): $(M207_O_FILES) $(M207_LIBS) @python3 tools/lcf.py rel 207 --output $(M207_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M207_LDFLAGS) -o $(M207_TARGET) @build/M207_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_mb/%.o: rel/d/a/e/d_a_e_mb/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_mb/%.o: rel/d/a/e/d_a_e_mb/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_mb/%.d @echo [207] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M207_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M207_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M207_D_FILES := $(M207_O_FILES:.o=.d) +$(M207_D_FILES): +include $(wildcard $(M207_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_md/Makefile b/rel/d/a/e/d_a_e_md/Makefile index 370145fb562..f3391dcc8f3 100644 --- a/rel/d/a/e/d_a_e_md/Makefile +++ b/rel/d/a/e/d_a_e_md/Makefile @@ -38,10 +38,17 @@ $(M208_TARGET): $(M208_O_FILES) $(M208_LIBS) @python3 tools/lcf.py rel 208 --output $(M208_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M208_LDFLAGS) -o $(M208_TARGET) @build/M208_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_md/%.o: rel/d/a/e/d_a_e_md/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_md/%.o: rel/d/a/e/d_a_e_md/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_md/%.d @echo [208] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M208_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M208_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M208_D_FILES := $(M208_O_FILES:.o=.d) +$(M208_D_FILES): +include $(wildcard $(M208_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_mf/Makefile b/rel/d/a/e/d_a_e_mf/Makefile index 329f44872c9..540051faec6 100644 --- a/rel/d/a/e/d_a_e_mf/Makefile +++ b/rel/d/a/e/d_a_e_mf/Makefile @@ -40,10 +40,17 @@ $(M209_TARGET): $(M209_O_FILES) $(M209_LIBS) @python3 tools/lcf.py rel 209 --output $(M209_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M209_LDFLAGS) -o $(M209_TARGET) @build/M209_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_mf/%.o: rel/d/a/e/d_a_e_mf/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_mf/%.o: rel/d/a/e/d_a_e_mf/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_mf/%.d @echo [209] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M209_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M209_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M209_D_FILES := $(M209_O_FILES:.o=.d) +$(M209_D_FILES): +include $(wildcard $(M209_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_mk/Makefile b/rel/d/a/e/d_a_e_mk/Makefile index 8a7ea84ed00..a8d5048d4d1 100644 --- a/rel/d/a/e/d_a_e_mk/Makefile +++ b/rel/d/a/e/d_a_e_mk/Makefile @@ -40,10 +40,17 @@ $(M210_TARGET): $(M210_O_FILES) $(M210_LIBS) @python3 tools/lcf.py rel 210 --output $(M210_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M210_LDFLAGS) -o $(M210_TARGET) @build/M210_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_mk/%.o: rel/d/a/e/d_a_e_mk/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_mk/%.o: rel/d/a/e/d_a_e_mk/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_mk/%.d @echo [210] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M210_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M210_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M210_D_FILES := $(M210_O_FILES:.o=.d) +$(M210_D_FILES): +include $(wildcard $(M210_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_mk_bo/Makefile b/rel/d/a/e/d_a_e_mk_bo/Makefile index ef1cf421c02..1bd3f915e60 100644 --- a/rel/d/a/e/d_a_e_mk_bo/Makefile +++ b/rel/d/a/e/d_a_e_mk_bo/Makefile @@ -40,10 +40,17 @@ $(M211_TARGET): $(M211_O_FILES) $(M211_LIBS) @python3 tools/lcf.py rel 211 --output $(M211_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M211_LDFLAGS) -o $(M211_TARGET) @build/M211_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_mk_bo/%.o: rel/d/a/e/d_a_e_mk_bo/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_mk_bo/%.o: rel/d/a/e/d_a_e_mk_bo/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_mk_bo/%.d @echo [211] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M211_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M211_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M211_D_FILES := $(M211_O_FILES:.o=.d) +$(M211_D_FILES): +include $(wildcard $(M211_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_mm/Makefile b/rel/d/a/e/d_a_e_mm/Makefile index 60b9c62cc60..b878098eff4 100644 --- a/rel/d/a/e/d_a_e_mm/Makefile +++ b/rel/d/a/e/d_a_e_mm/Makefile @@ -40,10 +40,17 @@ $(M212_TARGET): $(M212_O_FILES) $(M212_LIBS) @python3 tools/lcf.py rel 212 --output $(M212_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M212_LDFLAGS) -o $(M212_TARGET) @build/M212_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_mm/%.o: rel/d/a/e/d_a_e_mm/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_mm/%.o: rel/d/a/e/d_a_e_mm/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_mm/%.d @echo [212] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M212_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M212_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M212_D_FILES := $(M212_O_FILES:.o=.d) +$(M212_D_FILES): +include $(wildcard $(M212_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_mm_mt/Makefile b/rel/d/a/e/d_a_e_mm_mt/Makefile index 9864d7670a7..6651d72f77e 100644 --- a/rel/d/a/e/d_a_e_mm_mt/Makefile +++ b/rel/d/a/e/d_a_e_mm_mt/Makefile @@ -38,10 +38,17 @@ $(M213_TARGET): $(M213_O_FILES) $(M213_LIBS) @python3 tools/lcf.py rel 213 --output $(M213_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M213_LDFLAGS) -o $(M213_TARGET) @build/M213_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_mm_mt/%.o: rel/d/a/e/d_a_e_mm_mt/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_mm_mt/%.o: rel/d/a/e/d_a_e_mm_mt/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_mm_mt/%.d @echo [213] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M213_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M213_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M213_D_FILES := $(M213_O_FILES:.o=.d) +$(M213_D_FILES): +include $(wildcard $(M213_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_ms/Makefile b/rel/d/a/e/d_a_e_ms/Makefile index 776c39bcb74..74f57b3d3ee 100644 --- a/rel/d/a/e/d_a_e_ms/Makefile +++ b/rel/d/a/e/d_a_e_ms/Makefile @@ -40,10 +40,17 @@ $(M214_TARGET): $(M214_O_FILES) $(M214_LIBS) @python3 tools/lcf.py rel 214 --output $(M214_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M214_LDFLAGS) -o $(M214_TARGET) @build/M214_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_ms/%.o: rel/d/a/e/d_a_e_ms/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_ms/%.o: rel/d/a/e/d_a_e_ms/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ms/%.d @echo [214] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M214_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M214_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M214_D_FILES := $(M214_O_FILES:.o=.d) +$(M214_D_FILES): +include $(wildcard $(M214_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_nest/Makefile b/rel/d/a/e/d_a_e_nest/Makefile index 567c657e33d..c80e4e52a86 100644 --- a/rel/d/a/e/d_a_e_nest/Makefile +++ b/rel/d/a/e/d_a_e_nest/Makefile @@ -40,10 +40,17 @@ $(M69_TARGET): $(M69_O_FILES) $(M69_LIBS) @python3 tools/lcf.py rel 69 --output $(M69_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M69_LDFLAGS) -o $(M69_TARGET) @build/M69_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_nest/%.o: rel/d/a/e/d_a_e_nest/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_nest/%.o: rel/d/a/e/d_a_e_nest/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_nest/%.d @echo [ 69] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M69_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M69_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M69_D_FILES := $(M69_O_FILES:.o=.d) +$(M69_D_FILES): +include $(wildcard $(M69_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_nz/Makefile b/rel/d/a/e/d_a_e_nz/Makefile index 5553906f3f3..c0186ddd94c 100644 --- a/rel/d/a/e/d_a_e_nz/Makefile +++ b/rel/d/a/e/d_a_e_nz/Makefile @@ -40,10 +40,17 @@ $(M215_TARGET): $(M215_O_FILES) $(M215_LIBS) @python3 tools/lcf.py rel 215 --output $(M215_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M215_LDFLAGS) -o $(M215_TARGET) @build/M215_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_nz/%.o: rel/d/a/e/d_a_e_nz/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_nz/%.o: rel/d/a/e/d_a_e_nz/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_nz/%.d @echo [215] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M215_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M215_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M215_D_FILES := $(M215_O_FILES:.o=.d) +$(M215_D_FILES): +include $(wildcard $(M215_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_oc/Makefile b/rel/d/a/e/d_a_e_oc/Makefile index e4b02872641..40f5d629177 100644 --- a/rel/d/a/e/d_a_e_oc/Makefile +++ b/rel/d/a/e/d_a_e_oc/Makefile @@ -40,10 +40,17 @@ $(M216_TARGET): $(M216_O_FILES) $(M216_LIBS) @python3 tools/lcf.py rel 216 --output $(M216_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M216_LDFLAGS) -o $(M216_TARGET) @build/M216_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_oc/%.o: rel/d/a/e/d_a_e_oc/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_oc/%.o: rel/d/a/e/d_a_e_oc/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_oc/%.d @echo [216] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M216_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M216_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M216_D_FILES := $(M216_O_FILES:.o=.d) +$(M216_D_FILES): +include $(wildcard $(M216_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_oct_bg/Makefile b/rel/d/a/e/d_a_e_oct_bg/Makefile index 529c3b04da0..9581b1007ee 100644 --- a/rel/d/a/e/d_a_e_oct_bg/Makefile +++ b/rel/d/a/e/d_a_e_oct_bg/Makefile @@ -40,10 +40,17 @@ $(M217_TARGET): $(M217_O_FILES) $(M217_LIBS) @python3 tools/lcf.py rel 217 --output $(M217_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M217_LDFLAGS) -o $(M217_TARGET) @build/M217_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_oct_bg/%.o: rel/d/a/e/d_a_e_oct_bg/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_oct_bg/%.o: rel/d/a/e/d_a_e_oct_bg/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_oct_bg/%.d @echo [217] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M217_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M217_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M217_D_FILES := $(M217_O_FILES:.o=.d) +$(M217_D_FILES): +include $(wildcard $(M217_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_ot/Makefile b/rel/d/a/e/d_a_e_ot/Makefile index 48c85f59494..f890b6370e5 100644 --- a/rel/d/a/e/d_a_e_ot/Makefile +++ b/rel/d/a/e/d_a_e_ot/Makefile @@ -40,10 +40,17 @@ $(M218_TARGET): $(M218_O_FILES) $(M218_LIBS) @python3 tools/lcf.py rel 218 --output $(M218_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M218_LDFLAGS) -o $(M218_TARGET) @build/M218_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_ot/%.o: rel/d/a/e/d_a_e_ot/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_ot/%.o: rel/d/a/e/d_a_e_ot/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ot/%.d @echo [218] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M218_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M218_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M218_D_FILES := $(M218_O_FILES:.o=.d) +$(M218_D_FILES): +include $(wildcard $(M218_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_ph/Makefile b/rel/d/a/e/d_a_e_ph/Makefile index 8db9ab59084..26ab5f80039 100644 --- a/rel/d/a/e/d_a_e_ph/Makefile +++ b/rel/d/a/e/d_a_e_ph/Makefile @@ -40,10 +40,17 @@ $(M219_TARGET): $(M219_O_FILES) $(M219_LIBS) @python3 tools/lcf.py rel 219 --output $(M219_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M219_LDFLAGS) -o $(M219_TARGET) @build/M219_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_ph/%.o: rel/d/a/e/d_a_e_ph/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_ph/%.o: rel/d/a/e/d_a_e_ph/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ph/%.d @echo [219] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M219_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M219_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M219_D_FILES := $(M219_O_FILES:.o=.d) +$(M219_D_FILES): +include $(wildcard $(M219_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_pm/Makefile b/rel/d/a/e/d_a_e_pm/Makefile index dfad11b9b61..bef5ab50838 100644 --- a/rel/d/a/e/d_a_e_pm/Makefile +++ b/rel/d/a/e/d_a_e_pm/Makefile @@ -40,10 +40,17 @@ $(M220_TARGET): $(M220_O_FILES) $(M220_LIBS) @python3 tools/lcf.py rel 220 --output $(M220_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M220_LDFLAGS) -o $(M220_TARGET) @build/M220_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_pm/%.o: rel/d/a/e/d_a_e_pm/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_pm/%.o: rel/d/a/e/d_a_e_pm/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_pm/%.d @echo [220] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M220_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M220_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M220_D_FILES := $(M220_O_FILES:.o=.d) +$(M220_D_FILES): +include $(wildcard $(M220_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_po/Makefile b/rel/d/a/e/d_a_e_po/Makefile index 03582a6cad5..6af3a9a3e83 100644 --- a/rel/d/a/e/d_a_e_po/Makefile +++ b/rel/d/a/e/d_a_e_po/Makefile @@ -40,10 +40,17 @@ $(M221_TARGET): $(M221_O_FILES) $(M221_LIBS) @python3 tools/lcf.py rel 221 --output $(M221_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M221_LDFLAGS) -o $(M221_TARGET) @build/M221_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_po/%.o: rel/d/a/e/d_a_e_po/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_po/%.o: rel/d/a/e/d_a_e_po/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_po/%.d @echo [221] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M221_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M221_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M221_D_FILES := $(M221_O_FILES:.o=.d) +$(M221_D_FILES): +include $(wildcard $(M221_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_pz/Makefile b/rel/d/a/e/d_a_e_pz/Makefile index 54e088910b6..29fb74c1a19 100644 --- a/rel/d/a/e/d_a_e_pz/Makefile +++ b/rel/d/a/e/d_a_e_pz/Makefile @@ -40,10 +40,17 @@ $(M222_TARGET): $(M222_O_FILES) $(M222_LIBS) @python3 tools/lcf.py rel 222 --output $(M222_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M222_LDFLAGS) -o $(M222_TARGET) @build/M222_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_pz/%.o: rel/d/a/e/d_a_e_pz/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_pz/%.o: rel/d/a/e/d_a_e_pz/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_pz/%.d @echo [222] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M222_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M222_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M222_D_FILES := $(M222_O_FILES:.o=.d) +$(M222_D_FILES): +include $(wildcard $(M222_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_rb/Makefile b/rel/d/a/e/d_a_e_rb/Makefile index 85cf3414aeb..efd17ce4478 100644 --- a/rel/d/a/e/d_a_e_rb/Makefile +++ b/rel/d/a/e/d_a_e_rb/Makefile @@ -40,10 +40,17 @@ $(M223_TARGET): $(M223_O_FILES) $(M223_LIBS) @python3 tools/lcf.py rel 223 --output $(M223_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M223_LDFLAGS) -o $(M223_TARGET) @build/M223_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_rb/%.o: rel/d/a/e/d_a_e_rb/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_rb/%.o: rel/d/a/e/d_a_e_rb/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_rb/%.d @echo [223] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M223_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M223_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M223_D_FILES := $(M223_O_FILES:.o=.d) +$(M223_D_FILES): +include $(wildcard $(M223_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_rd/Makefile b/rel/d/a/e/d_a_e_rd/Makefile index ae84743e9bb..04be4152ae8 100644 --- a/rel/d/a/e/d_a_e_rd/Makefile +++ b/rel/d/a/e/d_a_e_rd/Makefile @@ -40,10 +40,17 @@ $(M70_TARGET): $(M70_O_FILES) $(M70_LIBS) @python3 tools/lcf.py rel 70 --output $(M70_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M70_LDFLAGS) -o $(M70_TARGET) @build/M70_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_rd/%.o: rel/d/a/e/d_a_e_rd/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_rd/%.o: rel/d/a/e/d_a_e_rd/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_rd/%.d @echo [ 70] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M70_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M70_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M70_D_FILES := $(M70_O_FILES:.o=.d) +$(M70_D_FILES): +include $(wildcard $(M70_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_rdb/Makefile b/rel/d/a/e/d_a_e_rdb/Makefile index 1d41b509fd9..f49caceca0b 100644 --- a/rel/d/a/e/d_a_e_rdb/Makefile +++ b/rel/d/a/e/d_a_e_rdb/Makefile @@ -40,10 +40,17 @@ $(M224_TARGET): $(M224_O_FILES) $(M224_LIBS) @python3 tools/lcf.py rel 224 --output $(M224_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M224_LDFLAGS) -o $(M224_TARGET) @build/M224_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_rdb/%.o: rel/d/a/e/d_a_e_rdb/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_rdb/%.o: rel/d/a/e/d_a_e_rdb/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_rdb/%.d @echo [224] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M224_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M224_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M224_D_FILES := $(M224_O_FILES:.o=.d) +$(M224_D_FILES): +include $(wildcard $(M224_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_rdy/Makefile b/rel/d/a/e/d_a_e_rdy/Makefile index b2fef54db2d..084574f3dcb 100644 --- a/rel/d/a/e/d_a_e_rdy/Makefile +++ b/rel/d/a/e/d_a_e_rdy/Makefile @@ -40,10 +40,17 @@ $(M225_TARGET): $(M225_O_FILES) $(M225_LIBS) @python3 tools/lcf.py rel 225 --output $(M225_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M225_LDFLAGS) -o $(M225_TARGET) @build/M225_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_rdy/%.o: rel/d/a/e/d_a_e_rdy/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_rdy/%.o: rel/d/a/e/d_a_e_rdy/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_rdy/%.d @echo [225] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M225_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M225_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M225_D_FILES := $(M225_O_FILES:.o=.d) +$(M225_D_FILES): +include $(wildcard $(M225_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_s1/Makefile b/rel/d/a/e/d_a_e_s1/Makefile index 16604a3a0ac..b7539c692dd 100644 --- a/rel/d/a/e/d_a_e_s1/Makefile +++ b/rel/d/a/e/d_a_e_s1/Makefile @@ -40,10 +40,17 @@ $(M226_TARGET): $(M226_O_FILES) $(M226_LIBS) @python3 tools/lcf.py rel 226 --output $(M226_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M226_LDFLAGS) -o $(M226_TARGET) @build/M226_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_s1/%.o: rel/d/a/e/d_a_e_s1/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_s1/%.o: rel/d/a/e/d_a_e_s1/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_s1/%.d @echo [226] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M226_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M226_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M226_D_FILES := $(M226_O_FILES:.o=.d) +$(M226_D_FILES): +include $(wildcard $(M226_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_sb/Makefile b/rel/d/a/e/d_a_e_sb/Makefile index 446e022e2a7..cd8c327b096 100644 --- a/rel/d/a/e/d_a_e_sb/Makefile +++ b/rel/d/a/e/d_a_e_sb/Makefile @@ -40,10 +40,17 @@ $(M227_TARGET): $(M227_O_FILES) $(M227_LIBS) @python3 tools/lcf.py rel 227 --output $(M227_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M227_LDFLAGS) -o $(M227_TARGET) @build/M227_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_sb/%.o: rel/d/a/e/d_a_e_sb/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_sb/%.o: rel/d/a/e/d_a_e_sb/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_sb/%.d @echo [227] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M227_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M227_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M227_D_FILES := $(M227_O_FILES:.o=.d) +$(M227_D_FILES): +include $(wildcard $(M227_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_sf/Makefile b/rel/d/a/e/d_a_e_sf/Makefile index 87a1b75f266..378f1956379 100644 --- a/rel/d/a/e/d_a_e_sf/Makefile +++ b/rel/d/a/e/d_a_e_sf/Makefile @@ -40,10 +40,17 @@ $(M228_TARGET): $(M228_O_FILES) $(M228_LIBS) @python3 tools/lcf.py rel 228 --output $(M228_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M228_LDFLAGS) -o $(M228_TARGET) @build/M228_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_sf/%.o: rel/d/a/e/d_a_e_sf/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_sf/%.o: rel/d/a/e/d_a_e_sf/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_sf/%.d @echo [228] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M228_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M228_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M228_D_FILES := $(M228_O_FILES:.o=.d) +$(M228_D_FILES): +include $(wildcard $(M228_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_sg/Makefile b/rel/d/a/e/d_a_e_sg/Makefile index 9be23266c39..cd986efb041 100644 --- a/rel/d/a/e/d_a_e_sg/Makefile +++ b/rel/d/a/e/d_a_e_sg/Makefile @@ -40,10 +40,17 @@ $(M229_TARGET): $(M229_O_FILES) $(M229_LIBS) @python3 tools/lcf.py rel 229 --output $(M229_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M229_LDFLAGS) -o $(M229_TARGET) @build/M229_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_sg/%.o: rel/d/a/e/d_a_e_sg/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_sg/%.o: rel/d/a/e/d_a_e_sg/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_sg/%.d @echo [229] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M229_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M229_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M229_D_FILES := $(M229_O_FILES:.o=.d) +$(M229_D_FILES): +include $(wildcard $(M229_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_sh/Makefile b/rel/d/a/e/d_a_e_sh/Makefile index 63f6bfea2de..3f4a27ac9ed 100644 --- a/rel/d/a/e/d_a_e_sh/Makefile +++ b/rel/d/a/e/d_a_e_sh/Makefile @@ -40,10 +40,17 @@ $(M230_TARGET): $(M230_O_FILES) $(M230_LIBS) @python3 tools/lcf.py rel 230 --output $(M230_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M230_LDFLAGS) -o $(M230_TARGET) @build/M230_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_sh/%.o: rel/d/a/e/d_a_e_sh/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_sh/%.o: rel/d/a/e/d_a_e_sh/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_sh/%.d @echo [230] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M230_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M230_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M230_D_FILES := $(M230_O_FILES:.o=.d) +$(M230_D_FILES): +include $(wildcard $(M230_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_sm/Makefile b/rel/d/a/e/d_a_e_sm/Makefile index 160e7e76699..e173f2adf11 100644 --- a/rel/d/a/e/d_a_e_sm/Makefile +++ b/rel/d/a/e/d_a_e_sm/Makefile @@ -40,10 +40,17 @@ $(M231_TARGET): $(M231_O_FILES) $(M231_LIBS) @python3 tools/lcf.py rel 231 --output $(M231_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M231_LDFLAGS) -o $(M231_TARGET) @build/M231_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_sm/%.o: rel/d/a/e/d_a_e_sm/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_sm/%.o: rel/d/a/e/d_a_e_sm/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_sm/%.d @echo [231] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M231_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M231_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M231_D_FILES := $(M231_O_FILES:.o=.d) +$(M231_D_FILES): +include $(wildcard $(M231_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_sm2/Makefile b/rel/d/a/e/d_a_e_sm2/Makefile index 4c0ed55ddcf..6f4bfe31e37 100644 --- a/rel/d/a/e/d_a_e_sm2/Makefile +++ b/rel/d/a/e/d_a_e_sm2/Makefile @@ -40,10 +40,17 @@ $(M232_TARGET): $(M232_O_FILES) $(M232_LIBS) @python3 tools/lcf.py rel 232 --output $(M232_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M232_LDFLAGS) -o $(M232_TARGET) @build/M232_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_sm2/%.o: rel/d/a/e/d_a_e_sm2/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_sm2/%.o: rel/d/a/e/d_a_e_sm2/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_sm2/%.d @echo [232] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M232_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M232_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M232_D_FILES := $(M232_O_FILES:.o=.d) +$(M232_D_FILES): +include $(wildcard $(M232_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_st/Makefile b/rel/d/a/e/d_a_e_st/Makefile index 5b1cdd046c3..ea54a9553b1 100644 --- a/rel/d/a/e/d_a_e_st/Makefile +++ b/rel/d/a/e/d_a_e_st/Makefile @@ -40,10 +40,17 @@ $(M233_TARGET): $(M233_O_FILES) $(M233_LIBS) @python3 tools/lcf.py rel 233 --output $(M233_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M233_LDFLAGS) -o $(M233_TARGET) @build/M233_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_st/%.o: rel/d/a/e/d_a_e_st/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_st/%.o: rel/d/a/e/d_a_e_st/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_st/%.d @echo [233] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M233_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M233_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M233_D_FILES := $(M233_O_FILES:.o=.d) +$(M233_D_FILES): +include $(wildcard $(M233_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_st_line/Makefile b/rel/d/a/e/d_a_e_st_line/Makefile index 7d0fc47e6af..adbe8c43073 100644 --- a/rel/d/a/e/d_a_e_st_line/Makefile +++ b/rel/d/a/e/d_a_e_st_line/Makefile @@ -38,10 +38,17 @@ $(M234_TARGET): $(M234_O_FILES) $(M234_LIBS) @python3 tools/lcf.py rel 234 --output $(M234_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M234_LDFLAGS) -o $(M234_TARGET) @build/M234_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_st_line/%.o: rel/d/a/e/d_a_e_st_line/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_st_line/%.o: rel/d/a/e/d_a_e_st_line/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_st_line/%.d @echo [234] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M234_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M234_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M234_D_FILES := $(M234_O_FILES:.o=.d) +$(M234_D_FILES): +include $(wildcard $(M234_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_sw/Makefile b/rel/d/a/e/d_a_e_sw/Makefile index 23b05abc772..9177b1c1a7b 100644 --- a/rel/d/a/e/d_a_e_sw/Makefile +++ b/rel/d/a/e/d_a_e_sw/Makefile @@ -40,10 +40,17 @@ $(M235_TARGET): $(M235_O_FILES) $(M235_LIBS) @python3 tools/lcf.py rel 235 --output $(M235_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M235_LDFLAGS) -o $(M235_TARGET) @build/M235_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_sw/%.o: rel/d/a/e/d_a_e_sw/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_sw/%.o: rel/d/a/e/d_a_e_sw/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_sw/%.d @echo [235] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M235_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M235_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M235_D_FILES := $(M235_O_FILES:.o=.d) +$(M235_D_FILES): +include $(wildcard $(M235_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_th/Makefile b/rel/d/a/e/d_a_e_th/Makefile index 6aabcf56c33..6d9b569637a 100644 --- a/rel/d/a/e/d_a_e_th/Makefile +++ b/rel/d/a/e/d_a_e_th/Makefile @@ -40,10 +40,17 @@ $(M236_TARGET): $(M236_O_FILES) $(M236_LIBS) @python3 tools/lcf.py rel 236 --output $(M236_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M236_LDFLAGS) -o $(M236_TARGET) @build/M236_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_th/%.o: rel/d/a/e/d_a_e_th/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_th/%.o: rel/d/a/e/d_a_e_th/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_th/%.d @echo [236] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M236_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M236_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M236_D_FILES := $(M236_O_FILES:.o=.d) +$(M236_D_FILES): +include $(wildcard $(M236_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_th_ball/Makefile b/rel/d/a/e/d_a_e_th_ball/Makefile index 0e1530fe523..3eaec6dca9a 100644 --- a/rel/d/a/e/d_a_e_th_ball/Makefile +++ b/rel/d/a/e/d_a_e_th_ball/Makefile @@ -38,10 +38,17 @@ $(M237_TARGET): $(M237_O_FILES) $(M237_LIBS) @python3 tools/lcf.py rel 237 --output $(M237_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M237_LDFLAGS) -o $(M237_TARGET) @build/M237_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_th_ball/%.o: rel/d/a/e/d_a_e_th_ball/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_th_ball/%.o: rel/d/a/e/d_a_e_th_ball/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_th_ball/%.d @echo [237] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M237_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M237_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M237_D_FILES := $(M237_O_FILES:.o=.d) +$(M237_D_FILES): +include $(wildcard $(M237_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_tk/Makefile b/rel/d/a/e/d_a_e_tk/Makefile index 6effd8d78d4..5e7743555ac 100644 --- a/rel/d/a/e/d_a_e_tk/Makefile +++ b/rel/d/a/e/d_a_e_tk/Makefile @@ -40,10 +40,17 @@ $(M238_TARGET): $(M238_O_FILES) $(M238_LIBS) @python3 tools/lcf.py rel 238 --output $(M238_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M238_LDFLAGS) -o $(M238_TARGET) @build/M238_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_tk/%.o: rel/d/a/e/d_a_e_tk/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_tk/%.o: rel/d/a/e/d_a_e_tk/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_tk/%.d @echo [238] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M238_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M238_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M238_D_FILES := $(M238_O_FILES:.o=.d) +$(M238_D_FILES): +include $(wildcard $(M238_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_tk2/Makefile b/rel/d/a/e/d_a_e_tk2/Makefile index afa58bab68e..2e5e08df0fb 100644 --- a/rel/d/a/e/d_a_e_tk2/Makefile +++ b/rel/d/a/e/d_a_e_tk2/Makefile @@ -40,10 +40,17 @@ $(M239_TARGET): $(M239_O_FILES) $(M239_LIBS) @python3 tools/lcf.py rel 239 --output $(M239_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M239_LDFLAGS) -o $(M239_TARGET) @build/M239_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_tk2/%.o: rel/d/a/e/d_a_e_tk2/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_tk2/%.o: rel/d/a/e/d_a_e_tk2/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_tk2/%.d @echo [239] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M239_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M239_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M239_D_FILES := $(M239_O_FILES:.o=.d) +$(M239_D_FILES): +include $(wildcard $(M239_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_tk_ball/Makefile b/rel/d/a/e/d_a_e_tk_ball/Makefile index eee541eef77..9df07737ae0 100644 --- a/rel/d/a/e/d_a_e_tk_ball/Makefile +++ b/rel/d/a/e/d_a_e_tk_ball/Makefile @@ -38,10 +38,17 @@ $(M240_TARGET): $(M240_O_FILES) $(M240_LIBS) @python3 tools/lcf.py rel 240 --output $(M240_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M240_LDFLAGS) -o $(M240_TARGET) @build/M240_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_tk_ball/%.o: rel/d/a/e/d_a_e_tk_ball/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_tk_ball/%.o: rel/d/a/e/d_a_e_tk_ball/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_tk_ball/%.d @echo [240] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M240_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M240_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M240_D_FILES := $(M240_O_FILES:.o=.d) +$(M240_D_FILES): +include $(wildcard $(M240_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_tt/Makefile b/rel/d/a/e/d_a_e_tt/Makefile index 1c53636ab53..2058dc645eb 100644 --- a/rel/d/a/e/d_a_e_tt/Makefile +++ b/rel/d/a/e/d_a_e_tt/Makefile @@ -40,10 +40,17 @@ $(M241_TARGET): $(M241_O_FILES) $(M241_LIBS) @python3 tools/lcf.py rel 241 --output $(M241_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M241_LDFLAGS) -o $(M241_TARGET) @build/M241_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_tt/%.o: rel/d/a/e/d_a_e_tt/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_tt/%.o: rel/d/a/e/d_a_e_tt/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_tt/%.d @echo [241] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M241_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M241_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M241_D_FILES := $(M241_O_FILES:.o=.d) +$(M241_D_FILES): +include $(wildcard $(M241_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_vt/Makefile b/rel/d/a/e/d_a_e_vt/Makefile index 7fcfd43622f..71a7f56a7e6 100644 --- a/rel/d/a/e/d_a_e_vt/Makefile +++ b/rel/d/a/e/d_a_e_vt/Makefile @@ -40,10 +40,17 @@ $(M242_TARGET): $(M242_O_FILES) $(M242_LIBS) @python3 tools/lcf.py rel 242 --output $(M242_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M242_LDFLAGS) -o $(M242_TARGET) @build/M242_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_vt/%.o: rel/d/a/e/d_a_e_vt/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_vt/%.o: rel/d/a/e/d_a_e_vt/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_vt/%.d @echo [242] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M242_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M242_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M242_D_FILES := $(M242_O_FILES:.o=.d) +$(M242_D_FILES): +include $(wildcard $(M242_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_warpappear/Makefile b/rel/d/a/e/d_a_e_warpappear/Makefile index 7f4ef776287..43b805d5cf7 100644 --- a/rel/d/a/e/d_a_e_warpappear/Makefile +++ b/rel/d/a/e/d_a_e_warpappear/Makefile @@ -38,10 +38,17 @@ $(M243_TARGET): $(M243_O_FILES) $(M243_LIBS) @python3 tools/lcf.py rel 243 --output $(M243_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M243_LDFLAGS) -o $(M243_TARGET) @build/M243_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_warpappear/%.o: rel/d/a/e/d_a_e_warpappear/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_warpappear/%.o: rel/d/a/e/d_a_e_warpappear/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_warpappear/%.d @echo [243] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M243_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M243_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M243_D_FILES := $(M243_O_FILES:.o=.d) +$(M243_D_FILES): +include $(wildcard $(M243_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_wb/Makefile b/rel/d/a/e/d_a_e_wb/Makefile index 64a9eb061e6..4d10f33ed3e 100644 --- a/rel/d/a/e/d_a_e_wb/Makefile +++ b/rel/d/a/e/d_a_e_wb/Makefile @@ -40,10 +40,17 @@ $(M244_TARGET): $(M244_O_FILES) $(M244_LIBS) @python3 tools/lcf.py rel 244 --output $(M244_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M244_LDFLAGS) -o $(M244_TARGET) @build/M244_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_wb/%.o: rel/d/a/e/d_a_e_wb/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_wb/%.o: rel/d/a/e/d_a_e_wb/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_wb/%.d @echo [244] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M244_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M244_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M244_D_FILES := $(M244_O_FILES:.o=.d) +$(M244_D_FILES): +include $(wildcard $(M244_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_ws/Makefile b/rel/d/a/e/d_a_e_ws/Makefile index 749fcc00392..fe9254584dc 100644 --- a/rel/d/a/e/d_a_e_ws/Makefile +++ b/rel/d/a/e/d_a_e_ws/Makefile @@ -40,10 +40,17 @@ $(M245_TARGET): $(M245_O_FILES) $(M245_LIBS) @python3 tools/lcf.py rel 245 --output $(M245_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M245_LDFLAGS) -o $(M245_TARGET) @build/M245_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_ws/%.o: rel/d/a/e/d_a_e_ws/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_ws/%.o: rel/d/a/e/d_a_e_ws/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ws/%.d @echo [245] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M245_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M245_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M245_D_FILES := $(M245_O_FILES:.o=.d) +$(M245_D_FILES): +include $(wildcard $(M245_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_ww/Makefile b/rel/d/a/e/d_a_e_ww/Makefile index badacf87d94..7ae482d512a 100644 --- a/rel/d/a/e/d_a_e_ww/Makefile +++ b/rel/d/a/e/d_a_e_ww/Makefile @@ -40,10 +40,17 @@ $(M246_TARGET): $(M246_O_FILES) $(M246_LIBS) @python3 tools/lcf.py rel 246 --output $(M246_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M246_LDFLAGS) -o $(M246_TARGET) @build/M246_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_ww/%.o: rel/d/a/e/d_a_e_ww/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_ww/%.o: rel/d/a/e/d_a_e_ww/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ww/%.d @echo [246] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M246_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M246_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M246_D_FILES := $(M246_O_FILES:.o=.d) +$(M246_D_FILES): +include $(wildcard $(M246_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_yc/Makefile b/rel/d/a/e/d_a_e_yc/Makefile index 95d966e6b26..583eaf3ff31 100644 --- a/rel/d/a/e/d_a_e_yc/Makefile +++ b/rel/d/a/e/d_a_e_yc/Makefile @@ -40,10 +40,17 @@ $(M247_TARGET): $(M247_O_FILES) $(M247_LIBS) @python3 tools/lcf.py rel 247 --output $(M247_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M247_LDFLAGS) -o $(M247_TARGET) @build/M247_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_yc/%.o: rel/d/a/e/d_a_e_yc/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_yc/%.o: rel/d/a/e/d_a_e_yc/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_yc/%.d @echo [247] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M247_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M247_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M247_D_FILES := $(M247_O_FILES:.o=.d) +$(M247_D_FILES): +include $(wildcard $(M247_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_yd/Makefile b/rel/d/a/e/d_a_e_yd/Makefile index 09e4b42d2ff..487210190b1 100644 --- a/rel/d/a/e/d_a_e_yd/Makefile +++ b/rel/d/a/e/d_a_e_yd/Makefile @@ -40,10 +40,17 @@ $(M248_TARGET): $(M248_O_FILES) $(M248_LIBS) @python3 tools/lcf.py rel 248 --output $(M248_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M248_LDFLAGS) -o $(M248_TARGET) @build/M248_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_yd/%.o: rel/d/a/e/d_a_e_yd/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_yd/%.o: rel/d/a/e/d_a_e_yd/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_yd/%.d @echo [248] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M248_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M248_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M248_D_FILES := $(M248_O_FILES:.o=.d) +$(M248_D_FILES): +include $(wildcard $(M248_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_yd_leaf/Makefile b/rel/d/a/e/d_a_e_yd_leaf/Makefile index 71f2efafeb3..7a61dc07b8e 100644 --- a/rel/d/a/e/d_a_e_yd_leaf/Makefile +++ b/rel/d/a/e/d_a_e_yd_leaf/Makefile @@ -38,10 +38,17 @@ $(M249_TARGET): $(M249_O_FILES) $(M249_LIBS) @python3 tools/lcf.py rel 249 --output $(M249_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M249_LDFLAGS) -o $(M249_TARGET) @build/M249_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_yd_leaf/%.o: rel/d/a/e/d_a_e_yd_leaf/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_yd_leaf/%.o: rel/d/a/e/d_a_e_yd_leaf/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_yd_leaf/%.d @echo [249] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M249_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M249_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M249_D_FILES := $(M249_O_FILES:.o=.d) +$(M249_D_FILES): +include $(wildcard $(M249_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_yg/Makefile b/rel/d/a/e/d_a_e_yg/Makefile index a96e61d48b7..d466fe38687 100644 --- a/rel/d/a/e/d_a_e_yg/Makefile +++ b/rel/d/a/e/d_a_e_yg/Makefile @@ -40,10 +40,17 @@ $(M250_TARGET): $(M250_O_FILES) $(M250_LIBS) @python3 tools/lcf.py rel 250 --output $(M250_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M250_LDFLAGS) -o $(M250_TARGET) @build/M250_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_yg/%.o: rel/d/a/e/d_a_e_yg/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_yg/%.o: rel/d/a/e/d_a_e_yg/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_yg/%.d @echo [250] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M250_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M250_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M250_D_FILES := $(M250_O_FILES:.o=.d) +$(M250_D_FILES): +include $(wildcard $(M250_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_yh/Makefile b/rel/d/a/e/d_a_e_yh/Makefile index 5bdc371caf3..26e7576c2d5 100644 --- a/rel/d/a/e/d_a_e_yh/Makefile +++ b/rel/d/a/e/d_a_e_yh/Makefile @@ -40,10 +40,17 @@ $(M251_TARGET): $(M251_O_FILES) $(M251_LIBS) @python3 tools/lcf.py rel 251 --output $(M251_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M251_LDFLAGS) -o $(M251_TARGET) @build/M251_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_yh/%.o: rel/d/a/e/d_a_e_yh/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_yh/%.o: rel/d/a/e/d_a_e_yh/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_yh/%.d @echo [251] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M251_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M251_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M251_D_FILES := $(M251_O_FILES:.o=.d) +$(M251_D_FILES): +include $(wildcard $(M251_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_yk/Makefile b/rel/d/a/e/d_a_e_yk/Makefile index 0333b561083..9897cc6b137 100644 --- a/rel/d/a/e/d_a_e_yk/Makefile +++ b/rel/d/a/e/d_a_e_yk/Makefile @@ -40,10 +40,17 @@ $(M252_TARGET): $(M252_O_FILES) $(M252_LIBS) @python3 tools/lcf.py rel 252 --output $(M252_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M252_LDFLAGS) -o $(M252_TARGET) @build/M252_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_yk/%.o: rel/d/a/e/d_a_e_yk/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_yk/%.o: rel/d/a/e/d_a_e_yk/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_yk/%.d @echo [252] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M252_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M252_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M252_D_FILES := $(M252_O_FILES:.o=.d) +$(M252_D_FILES): +include $(wildcard $(M252_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_ym/Makefile b/rel/d/a/e/d_a_e_ym/Makefile index c636ae1ae59..8eda1a64aae 100644 --- a/rel/d/a/e/d_a_e_ym/Makefile +++ b/rel/d/a/e/d_a_e_ym/Makefile @@ -40,10 +40,17 @@ $(M253_TARGET): $(M253_O_FILES) $(M253_LIBS) @python3 tools/lcf.py rel 253 --output $(M253_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M253_LDFLAGS) -o $(M253_TARGET) @build/M253_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_ym/%.o: rel/d/a/e/d_a_e_ym/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_ym/%.o: rel/d/a/e/d_a_e_ym/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ym/%.d @echo [253] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M253_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M253_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M253_D_FILES := $(M253_O_FILES:.o=.d) +$(M253_D_FILES): +include $(wildcard $(M253_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_ym_tag/Makefile b/rel/d/a/e/d_a_e_ym_tag/Makefile index 64df183ce87..37326f8aceb 100644 --- a/rel/d/a/e/d_a_e_ym_tag/Makefile +++ b/rel/d/a/e/d_a_e_ym_tag/Makefile @@ -38,10 +38,17 @@ $(M254_TARGET): $(M254_O_FILES) $(M254_LIBS) @python3 tools/lcf.py rel 254 --output $(M254_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M254_LDFLAGS) -o $(M254_TARGET) @build/M254_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_ym_tag/%.o: rel/d/a/e/d_a_e_ym_tag/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_ym_tag/%.o: rel/d/a/e/d_a_e_ym_tag/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ym_tag/%.d @echo [254] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M254_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M254_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M254_D_FILES := $(M254_O_FILES:.o=.d) +$(M254_D_FILES): +include $(wildcard $(M254_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_ymb/Makefile b/rel/d/a/e/d_a_e_ymb/Makefile index ff1a062978a..a1ba3b00f8b 100644 --- a/rel/d/a/e/d_a_e_ymb/Makefile +++ b/rel/d/a/e/d_a_e_ymb/Makefile @@ -40,10 +40,17 @@ $(M255_TARGET): $(M255_O_FILES) $(M255_LIBS) @python3 tools/lcf.py rel 255 --output $(M255_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M255_LDFLAGS) -o $(M255_TARGET) @build/M255_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_ymb/%.o: rel/d/a/e/d_a_e_ymb/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_ymb/%.o: rel/d/a/e/d_a_e_ymb/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ymb/%.d @echo [255] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M255_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M255_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M255_D_FILES := $(M255_O_FILES:.o=.d) +$(M255_D_FILES): +include $(wildcard $(M255_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_yr/Makefile b/rel/d/a/e/d_a_e_yr/Makefile index 616e03d99dd..c3649b1a2af 100644 --- a/rel/d/a/e/d_a_e_yr/Makefile +++ b/rel/d/a/e/d_a_e_yr/Makefile @@ -40,10 +40,17 @@ $(M256_TARGET): $(M256_O_FILES) $(M256_LIBS) @python3 tools/lcf.py rel 256 --output $(M256_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M256_LDFLAGS) -o $(M256_TARGET) @build/M256_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_yr/%.o: rel/d/a/e/d_a_e_yr/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_yr/%.o: rel/d/a/e/d_a_e_yr/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_yr/%.d @echo [256] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M256_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M256_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M256_D_FILES := $(M256_O_FILES:.o=.d) +$(M256_D_FILES): +include $(wildcard $(M256_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_zh/Makefile b/rel/d/a/e/d_a_e_zh/Makefile index 687d62e1b60..07ea47c5c62 100644 --- a/rel/d/a/e/d_a_e_zh/Makefile +++ b/rel/d/a/e/d_a_e_zh/Makefile @@ -40,10 +40,17 @@ $(M257_TARGET): $(M257_O_FILES) $(M257_LIBS) @python3 tools/lcf.py rel 257 --output $(M257_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M257_LDFLAGS) -o $(M257_TARGET) @build/M257_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_zh/%.o: rel/d/a/e/d_a_e_zh/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_zh/%.o: rel/d/a/e/d_a_e_zh/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_zh/%.d @echo [257] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M257_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M257_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M257_D_FILES := $(M257_O_FILES:.o=.d) +$(M257_D_FILES): +include $(wildcard $(M257_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_zm/Makefile b/rel/d/a/e/d_a_e_zm/Makefile index 95b68ef5e5d..0a50aa6507d 100644 --- a/rel/d/a/e/d_a_e_zm/Makefile +++ b/rel/d/a/e/d_a_e_zm/Makefile @@ -40,10 +40,17 @@ $(M258_TARGET): $(M258_O_FILES) $(M258_LIBS) @python3 tools/lcf.py rel 258 --output $(M258_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M258_LDFLAGS) -o $(M258_TARGET) @build/M258_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_zm/%.o: rel/d/a/e/d_a_e_zm/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_zm/%.o: rel/d/a/e/d_a_e_zm/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_zm/%.d @echo [258] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M258_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M258_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M258_D_FILES := $(M258_O_FILES:.o=.d) +$(M258_D_FILES): +include $(wildcard $(M258_D_FILES)) +endif diff --git a/rel/d/a/e/d_a_e_zs/Makefile b/rel/d/a/e/d_a_e_zs/Makefile index 0c47d76fb6c..b43a1689974 100644 --- a/rel/d/a/e/d_a_e_zs/Makefile +++ b/rel/d/a/e/d_a_e_zs/Makefile @@ -40,10 +40,17 @@ $(M259_TARGET): $(M259_O_FILES) $(M259_LIBS) @python3 tools/lcf.py rel 259 --output $(M259_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M259_LDFLAGS) -o $(M259_TARGET) @build/M259_ofiles -$(BUILD_DIR)/rel/d/a/e/d_a_e_zs/%.o: rel/d/a/e/d_a_e_zs/%.cpp +$(BUILD_DIR)/rel/d/a/e/d_a_e_zs/%.o: rel/d/a/e/d_a_e_zs/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_zs/%.d @echo [259] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M259_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M259_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M259_D_FILES := $(M259_O_FILES:.o=.d) +$(M259_D_FILES): +include $(wildcard $(M259_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag00/Makefile b/rel/d/a/kytag/d_a_kytag00/Makefile index a93aa1d70d1..997b2a21650 100644 --- a/rel/d/a/kytag/d_a_kytag00/Makefile +++ b/rel/d/a/kytag/d_a_kytag00/Makefile @@ -38,10 +38,17 @@ $(M13_TARGET): $(M13_O_FILES) $(M13_LIBS) @python3 tools/lcf.py rel 13 --output $(M13_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M13_LDFLAGS) -o $(M13_TARGET) @build/M13_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag00/%.o: rel/d/a/kytag/d_a_kytag00/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag00/%.o: rel/d/a/kytag/d_a_kytag00/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag00/%.d @echo [ 13] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M13_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M13_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M13_D_FILES := $(M13_O_FILES:.o=.d) +$(M13_D_FILES): +include $(wildcard $(M13_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag01/Makefile b/rel/d/a/kytag/d_a_kytag01/Makefile index 6e73704f133..dded05868af 100644 --- a/rel/d/a/kytag/d_a_kytag01/Makefile +++ b/rel/d/a/kytag/d_a_kytag01/Makefile @@ -38,10 +38,17 @@ $(M266_TARGET): $(M266_O_FILES) $(M266_LIBS) @python3 tools/lcf.py rel 266 --output $(M266_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M266_LDFLAGS) -o $(M266_TARGET) @build/M266_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag01/%.o: rel/d/a/kytag/d_a_kytag01/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag01/%.o: rel/d/a/kytag/d_a_kytag01/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag01/%.d @echo [266] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M266_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M266_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M266_D_FILES := $(M266_O_FILES:.o=.d) +$(M266_D_FILES): +include $(wildcard $(M266_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag02/Makefile b/rel/d/a/kytag/d_a_kytag02/Makefile index a28228608d1..3d2ca7c65d7 100644 --- a/rel/d/a/kytag/d_a_kytag02/Makefile +++ b/rel/d/a/kytag/d_a_kytag02/Makefile @@ -38,10 +38,17 @@ $(M267_TARGET): $(M267_O_FILES) $(M267_LIBS) @python3 tools/lcf.py rel 267 --output $(M267_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M267_LDFLAGS) -o $(M267_TARGET) @build/M267_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag02/%.o: rel/d/a/kytag/d_a_kytag02/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag02/%.o: rel/d/a/kytag/d_a_kytag02/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag02/%.d @echo [267] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M267_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M267_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M267_D_FILES := $(M267_O_FILES:.o=.d) +$(M267_D_FILES): +include $(wildcard $(M267_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag03/Makefile b/rel/d/a/kytag/d_a_kytag03/Makefile index 524668e919a..9d22228f1ad 100644 --- a/rel/d/a/kytag/d_a_kytag03/Makefile +++ b/rel/d/a/kytag/d_a_kytag03/Makefile @@ -38,10 +38,17 @@ $(M268_TARGET): $(M268_O_FILES) $(M268_LIBS) @python3 tools/lcf.py rel 268 --output $(M268_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M268_LDFLAGS) -o $(M268_TARGET) @build/M268_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag03/%.o: rel/d/a/kytag/d_a_kytag03/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag03/%.o: rel/d/a/kytag/d_a_kytag03/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag03/%.d @echo [268] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M268_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M268_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M268_D_FILES := $(M268_O_FILES:.o=.d) +$(M268_D_FILES): +include $(wildcard $(M268_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag04/Makefile b/rel/d/a/kytag/d_a_kytag04/Makefile index b683edef173..269109c6a29 100644 --- a/rel/d/a/kytag/d_a_kytag04/Makefile +++ b/rel/d/a/kytag/d_a_kytag04/Makefile @@ -38,10 +38,17 @@ $(M14_TARGET): $(M14_O_FILES) $(M14_LIBS) @python3 tools/lcf.py rel 14 --output $(M14_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M14_LDFLAGS) -o $(M14_TARGET) @build/M14_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag04/%.o: rel/d/a/kytag/d_a_kytag04/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag04/%.o: rel/d/a/kytag/d_a_kytag04/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag04/%.d @echo [ 14] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M14_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M14_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M14_D_FILES := $(M14_O_FILES:.o=.d) +$(M14_D_FILES): +include $(wildcard $(M14_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag05/Makefile b/rel/d/a/kytag/d_a_kytag05/Makefile index 943229b7c62..9570a571485 100644 --- a/rel/d/a/kytag/d_a_kytag05/Makefile +++ b/rel/d/a/kytag/d_a_kytag05/Makefile @@ -38,10 +38,17 @@ $(M74_TARGET): $(M74_O_FILES) $(M74_LIBS) @python3 tools/lcf.py rel 74 --output $(M74_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M74_LDFLAGS) -o $(M74_TARGET) @build/M74_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag05/%.o: rel/d/a/kytag/d_a_kytag05/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag05/%.o: rel/d/a/kytag/d_a_kytag05/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag05/%.d @echo [ 74] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M74_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M74_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M74_D_FILES := $(M74_O_FILES:.o=.d) +$(M74_D_FILES): +include $(wildcard $(M74_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag06/Makefile b/rel/d/a/kytag/d_a_kytag06/Makefile index 55177803550..ae188e9d181 100644 --- a/rel/d/a/kytag/d_a_kytag06/Makefile +++ b/rel/d/a/kytag/d_a_kytag06/Makefile @@ -40,10 +40,17 @@ $(M269_TARGET): $(M269_O_FILES) $(M269_LIBS) @python3 tools/lcf.py rel 269 --output $(M269_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M269_LDFLAGS) -o $(M269_TARGET) @build/M269_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag06/%.o: rel/d/a/kytag/d_a_kytag06/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag06/%.o: rel/d/a/kytag/d_a_kytag06/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag06/%.d @echo [269] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M269_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M269_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M269_D_FILES := $(M269_O_FILES:.o=.d) +$(M269_D_FILES): +include $(wildcard $(M269_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag07/Makefile b/rel/d/a/kytag/d_a_kytag07/Makefile index aa50c6e84a1..807dba9af07 100644 --- a/rel/d/a/kytag/d_a_kytag07/Makefile +++ b/rel/d/a/kytag/d_a_kytag07/Makefile @@ -38,10 +38,17 @@ $(M270_TARGET): $(M270_O_FILES) $(M270_LIBS) @python3 tools/lcf.py rel 270 --output $(M270_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M270_LDFLAGS) -o $(M270_TARGET) @build/M270_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag07/%.o: rel/d/a/kytag/d_a_kytag07/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag07/%.o: rel/d/a/kytag/d_a_kytag07/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag07/%.d @echo [270] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M270_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M270_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M270_D_FILES := $(M270_O_FILES:.o=.d) +$(M270_D_FILES): +include $(wildcard $(M270_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag08/Makefile b/rel/d/a/kytag/d_a_kytag08/Makefile index e7b00e00308..5d14e7765f5 100644 --- a/rel/d/a/kytag/d_a_kytag08/Makefile +++ b/rel/d/a/kytag/d_a_kytag08/Makefile @@ -38,10 +38,17 @@ $(M271_TARGET): $(M271_O_FILES) $(M271_LIBS) @python3 tools/lcf.py rel 271 --output $(M271_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M271_LDFLAGS) -o $(M271_TARGET) @build/M271_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag08/%.o: rel/d/a/kytag/d_a_kytag08/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag08/%.o: rel/d/a/kytag/d_a_kytag08/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag08/%.d @echo [271] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M271_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M271_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M271_D_FILES := $(M271_O_FILES:.o=.d) +$(M271_D_FILES): +include $(wildcard $(M271_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag09/Makefile b/rel/d/a/kytag/d_a_kytag09/Makefile index 42c54056d9c..5b17815e0f2 100644 --- a/rel/d/a/kytag/d_a_kytag09/Makefile +++ b/rel/d/a/kytag/d_a_kytag09/Makefile @@ -38,10 +38,17 @@ $(M272_TARGET): $(M272_O_FILES) $(M272_LIBS) @python3 tools/lcf.py rel 272 --output $(M272_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M272_LDFLAGS) -o $(M272_TARGET) @build/M272_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag09/%.o: rel/d/a/kytag/d_a_kytag09/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag09/%.o: rel/d/a/kytag/d_a_kytag09/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag09/%.d @echo [272] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M272_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M272_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M272_D_FILES := $(M272_O_FILES:.o=.d) +$(M272_D_FILES): +include $(wildcard $(M272_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag10/Makefile b/rel/d/a/kytag/d_a_kytag10/Makefile index caac9e96372..8975d7ab9b3 100644 --- a/rel/d/a/kytag/d_a_kytag10/Makefile +++ b/rel/d/a/kytag/d_a_kytag10/Makefile @@ -38,10 +38,17 @@ $(M75_TARGET): $(M75_O_FILES) $(M75_LIBS) @python3 tools/lcf.py rel 75 --output $(M75_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M75_LDFLAGS) -o $(M75_TARGET) @build/M75_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag10/%.o: rel/d/a/kytag/d_a_kytag10/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag10/%.o: rel/d/a/kytag/d_a_kytag10/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag10/%.d @echo [ 75] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M75_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M75_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M75_D_FILES := $(M75_O_FILES:.o=.d) +$(M75_D_FILES): +include $(wildcard $(M75_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag11/Makefile b/rel/d/a/kytag/d_a_kytag11/Makefile index fe2ae6e6b81..1606e6c89c0 100644 --- a/rel/d/a/kytag/d_a_kytag11/Makefile +++ b/rel/d/a/kytag/d_a_kytag11/Makefile @@ -38,10 +38,17 @@ $(M76_TARGET): $(M76_O_FILES) $(M76_LIBS) @python3 tools/lcf.py rel 76 --output $(M76_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M76_LDFLAGS) -o $(M76_TARGET) @build/M76_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag11/%.o: rel/d/a/kytag/d_a_kytag11/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag11/%.o: rel/d/a/kytag/d_a_kytag11/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag11/%.d @echo [ 76] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M76_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M76_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M76_D_FILES := $(M76_O_FILES:.o=.d) +$(M76_D_FILES): +include $(wildcard $(M76_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag12/Makefile b/rel/d/a/kytag/d_a_kytag12/Makefile index 312487ec436..e479411c742 100644 --- a/rel/d/a/kytag/d_a_kytag12/Makefile +++ b/rel/d/a/kytag/d_a_kytag12/Makefile @@ -38,10 +38,17 @@ $(M273_TARGET): $(M273_O_FILES) $(M273_LIBS) @python3 tools/lcf.py rel 273 --output $(M273_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M273_LDFLAGS) -o $(M273_TARGET) @build/M273_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag12/%.o: rel/d/a/kytag/d_a_kytag12/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag12/%.o: rel/d/a/kytag/d_a_kytag12/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag12/%.d @echo [273] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M273_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M273_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M273_D_FILES := $(M273_O_FILES:.o=.d) +$(M273_D_FILES): +include $(wildcard $(M273_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag13/Makefile b/rel/d/a/kytag/d_a_kytag13/Makefile index f4f6087272a..239239b7a37 100644 --- a/rel/d/a/kytag/d_a_kytag13/Makefile +++ b/rel/d/a/kytag/d_a_kytag13/Makefile @@ -38,10 +38,17 @@ $(M274_TARGET): $(M274_O_FILES) $(M274_LIBS) @python3 tools/lcf.py rel 274 --output $(M274_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M274_LDFLAGS) -o $(M274_TARGET) @build/M274_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag13/%.o: rel/d/a/kytag/d_a_kytag13/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag13/%.o: rel/d/a/kytag/d_a_kytag13/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag13/%.d @echo [274] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M274_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M274_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M274_D_FILES := $(M274_O_FILES:.o=.d) +$(M274_D_FILES): +include $(wildcard $(M274_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag14/Makefile b/rel/d/a/kytag/d_a_kytag14/Makefile index 0f1dcfcbae3..7a848840f08 100644 --- a/rel/d/a/kytag/d_a_kytag14/Makefile +++ b/rel/d/a/kytag/d_a_kytag14/Makefile @@ -38,10 +38,17 @@ $(M77_TARGET): $(M77_O_FILES) $(M77_LIBS) @python3 tools/lcf.py rel 77 --output $(M77_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M77_LDFLAGS) -o $(M77_TARGET) @build/M77_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag14/%.o: rel/d/a/kytag/d_a_kytag14/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag14/%.o: rel/d/a/kytag/d_a_kytag14/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag14/%.d @echo [ 77] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M77_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M77_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M77_D_FILES := $(M77_O_FILES:.o=.d) +$(M77_D_FILES): +include $(wildcard $(M77_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag15/Makefile b/rel/d/a/kytag/d_a_kytag15/Makefile index 518c5000f93..3d10a3e1a41 100644 --- a/rel/d/a/kytag/d_a_kytag15/Makefile +++ b/rel/d/a/kytag/d_a_kytag15/Makefile @@ -38,10 +38,17 @@ $(M275_TARGET): $(M275_O_FILES) $(M275_LIBS) @python3 tools/lcf.py rel 275 --output $(M275_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M275_LDFLAGS) -o $(M275_TARGET) @build/M275_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag15/%.o: rel/d/a/kytag/d_a_kytag15/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag15/%.o: rel/d/a/kytag/d_a_kytag15/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag15/%.d @echo [275] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M275_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M275_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M275_D_FILES := $(M275_O_FILES:.o=.d) +$(M275_D_FILES): +include $(wildcard $(M275_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag16/Makefile b/rel/d/a/kytag/d_a_kytag16/Makefile index 6929ffc0926..d4071fdd258 100644 --- a/rel/d/a/kytag/d_a_kytag16/Makefile +++ b/rel/d/a/kytag/d_a_kytag16/Makefile @@ -38,10 +38,17 @@ $(M276_TARGET): $(M276_O_FILES) $(M276_LIBS) @python3 tools/lcf.py rel 276 --output $(M276_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M276_LDFLAGS) -o $(M276_TARGET) @build/M276_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag16/%.o: rel/d/a/kytag/d_a_kytag16/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag16/%.o: rel/d/a/kytag/d_a_kytag16/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag16/%.d @echo [276] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M276_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M276_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M276_D_FILES := $(M276_O_FILES:.o=.d) +$(M276_D_FILES): +include $(wildcard $(M276_D_FILES)) +endif diff --git a/rel/d/a/kytag/d_a_kytag17/Makefile b/rel/d/a/kytag/d_a_kytag17/Makefile index 701c9072411..705b8a1c8c1 100644 --- a/rel/d/a/kytag/d_a_kytag17/Makefile +++ b/rel/d/a/kytag/d_a_kytag17/Makefile @@ -38,10 +38,17 @@ $(M15_TARGET): $(M15_O_FILES) $(M15_LIBS) @python3 tools/lcf.py rel 15 --output $(M15_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M15_LDFLAGS) -o $(M15_TARGET) @build/M15_ofiles -$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag17/%.o: rel/d/a/kytag/d_a_kytag17/%.cpp +$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag17/%.o: rel/d/a/kytag/d_a_kytag17/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag17/%.d @echo [ 15] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M15_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M15_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M15_D_FILES := $(M15_O_FILES:.o=.d) +$(M15_D_FILES): +include $(wildcard $(M15_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_aru/Makefile b/rel/d/a/npc/d_a_npc_aru/Makefile index fd39e3da86f..1828576a3b3 100644 --- a/rel/d/a/npc/d_a_npc_aru/Makefile +++ b/rel/d/a/npc/d_a_npc_aru/Makefile @@ -40,10 +40,17 @@ $(M283_TARGET): $(M283_O_FILES) $(M283_LIBS) @python3 tools/lcf.py rel 283 --output $(M283_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M283_LDFLAGS) -o $(M283_TARGET) @build/M283_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_aru/%.o: rel/d/a/npc/d_a_npc_aru/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_aru/%.o: rel/d/a/npc/d_a_npc_aru/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_aru/%.d @echo [283] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M283_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M283_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M283_D_FILES := $(M283_O_FILES:.o=.d) +$(M283_D_FILES): +include $(wildcard $(M283_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_ash/Makefile b/rel/d/a/npc/d_a_npc_ash/Makefile index 9d14bdd9b85..7dccc7918e8 100644 --- a/rel/d/a/npc/d_a_npc_ash/Makefile +++ b/rel/d/a/npc/d_a_npc_ash/Makefile @@ -40,10 +40,17 @@ $(M284_TARGET): $(M284_O_FILES) $(M284_LIBS) @python3 tools/lcf.py rel 284 --output $(M284_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M284_LDFLAGS) -o $(M284_TARGET) @build/M284_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ash/%.o: rel/d/a/npc/d_a_npc_ash/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ash/%.o: rel/d/a/npc/d_a_npc_ash/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ash/%.d @echo [284] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M284_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M284_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M284_D_FILES := $(M284_O_FILES:.o=.d) +$(M284_D_FILES): +include $(wildcard $(M284_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_ashB/Makefile b/rel/d/a/npc/d_a_npc_ashB/Makefile index 09802841fd8..6ad86f3cc2f 100644 --- a/rel/d/a/npc/d_a_npc_ashB/Makefile +++ b/rel/d/a/npc/d_a_npc_ashB/Makefile @@ -40,10 +40,17 @@ $(M285_TARGET): $(M285_O_FILES) $(M285_LIBS) @python3 tools/lcf.py rel 285 --output $(M285_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M285_LDFLAGS) -o $(M285_TARGET) @build/M285_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ashB/%.o: rel/d/a/npc/d_a_npc_ashB/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ashB/%.o: rel/d/a/npc/d_a_npc_ashB/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ashB/%.d @echo [285] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M285_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M285_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M285_D_FILES := $(M285_O_FILES:.o=.d) +$(M285_D_FILES): +include $(wildcard $(M285_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_bans/Makefile b/rel/d/a/npc/d_a_npc_bans/Makefile index 1ed8959ba3f..2a3980c6d43 100644 --- a/rel/d/a/npc/d_a_npc_bans/Makefile +++ b/rel/d/a/npc/d_a_npc_bans/Makefile @@ -40,10 +40,17 @@ $(M286_TARGET): $(M286_O_FILES) $(M286_LIBS) @python3 tools/lcf.py rel 286 --output $(M286_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M286_LDFLAGS) -o $(M286_TARGET) @build/M286_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_bans/%.o: rel/d/a/npc/d_a_npc_bans/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_bans/%.o: rel/d/a/npc/d_a_npc_bans/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_bans/%.d @echo [286] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M286_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M286_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M286_D_FILES := $(M286_O_FILES:.o=.d) +$(M286_D_FILES): +include $(wildcard $(M286_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_besu/Makefile b/rel/d/a/npc/d_a_npc_besu/Makefile index 829f2dc489f..e60824deb71 100644 --- a/rel/d/a/npc/d_a_npc_besu/Makefile +++ b/rel/d/a/npc/d_a_npc_besu/Makefile @@ -40,10 +40,17 @@ $(M79_TARGET): $(M79_O_FILES) $(M79_LIBS) @python3 tools/lcf.py rel 79 --output $(M79_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M79_LDFLAGS) -o $(M79_TARGET) @build/M79_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_besu/%.o: rel/d/a/npc/d_a_npc_besu/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_besu/%.o: rel/d/a/npc/d_a_npc_besu/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_besu/%.d @echo [ 79] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M79_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M79_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M79_D_FILES := $(M79_O_FILES:.o=.d) +$(M79_D_FILES): +include $(wildcard $(M79_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_blue_ns/Makefile b/rel/d/a/npc/d_a_npc_blue_ns/Makefile index 2fd01897da3..bc5157e5091 100644 --- a/rel/d/a/npc/d_a_npc_blue_ns/Makefile +++ b/rel/d/a/npc/d_a_npc_blue_ns/Makefile @@ -40,10 +40,17 @@ $(M287_TARGET): $(M287_O_FILES) $(M287_LIBS) @python3 tools/lcf.py rel 287 --output $(M287_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M287_LDFLAGS) -o $(M287_TARGET) @build/M287_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_blue_ns/%.o: rel/d/a/npc/d_a_npc_blue_ns/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_blue_ns/%.o: rel/d/a/npc/d_a_npc_blue_ns/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_blue_ns/%.d @echo [287] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M287_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M287_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M287_D_FILES := $(M287_O_FILES:.o=.d) +$(M287_D_FILES): +include $(wildcard $(M287_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_bou/Makefile b/rel/d/a/npc/d_a_npc_bou/Makefile index 0301141751e..a6f314a3482 100644 --- a/rel/d/a/npc/d_a_npc_bou/Makefile +++ b/rel/d/a/npc/d_a_npc_bou/Makefile @@ -40,10 +40,17 @@ $(M288_TARGET): $(M288_O_FILES) $(M288_LIBS) @python3 tools/lcf.py rel 288 --output $(M288_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M288_LDFLAGS) -o $(M288_TARGET) @build/M288_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_bou/%.o: rel/d/a/npc/d_a_npc_bou/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_bou/%.o: rel/d/a/npc/d_a_npc_bou/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_bou/%.d @echo [288] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M288_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M288_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M288_D_FILES := $(M288_O_FILES:.o=.d) +$(M288_D_FILES): +include $(wildcard $(M288_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_bouS/Makefile b/rel/d/a/npc/d_a_npc_bouS/Makefile index fda4d3699b0..05ae3e256f5 100644 --- a/rel/d/a/npc/d_a_npc_bouS/Makefile +++ b/rel/d/a/npc/d_a_npc_bouS/Makefile @@ -40,10 +40,17 @@ $(M289_TARGET): $(M289_O_FILES) $(M289_LIBS) @python3 tools/lcf.py rel 289 --output $(M289_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M289_LDFLAGS) -o $(M289_TARGET) @build/M289_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_bouS/%.o: rel/d/a/npc/d_a_npc_bouS/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_bouS/%.o: rel/d/a/npc/d_a_npc_bouS/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_bouS/%.d @echo [289] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M289_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M289_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M289_D_FILES := $(M289_O_FILES:.o=.d) +$(M289_D_FILES): +include $(wildcard $(M289_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_cdn3/Makefile b/rel/d/a/npc/d_a_npc_cdn3/Makefile index 0b782f1b0a0..f83f1dc542f 100644 --- a/rel/d/a/npc/d_a_npc_cdn3/Makefile +++ b/rel/d/a/npc/d_a_npc_cdn3/Makefile @@ -38,10 +38,17 @@ $(M290_TARGET): $(M290_O_FILES) $(M290_LIBS) @python3 tools/lcf.py rel 290 --output $(M290_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M290_LDFLAGS) -o $(M290_TARGET) @build/M290_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_cdn3/%.o: rel/d/a/npc/d_a_npc_cdn3/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_cdn3/%.o: rel/d/a/npc/d_a_npc_cdn3/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_cdn3/%.d @echo [290] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M290_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M290_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M290_D_FILES := $(M290_O_FILES:.o=.d) +$(M290_D_FILES): +include $(wildcard $(M290_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_chat/Makefile b/rel/d/a/npc/d_a_npc_chat/Makefile index 602b0a86bd0..f149bc29578 100644 --- a/rel/d/a/npc/d_a_npc_chat/Makefile +++ b/rel/d/a/npc/d_a_npc_chat/Makefile @@ -40,10 +40,17 @@ $(M291_TARGET): $(M291_O_FILES) $(M291_LIBS) @python3 tools/lcf.py rel 291 --output $(M291_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M291_LDFLAGS) -o $(M291_TARGET) @build/M291_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_chat/%.o: rel/d/a/npc/d_a_npc_chat/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_chat/%.o: rel/d/a/npc/d_a_npc_chat/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_chat/%.d @echo [291] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M291_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M291_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M291_D_FILES := $(M291_O_FILES:.o=.d) +$(M291_D_FILES): +include $(wildcard $(M291_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_chin/Makefile b/rel/d/a/npc/d_a_npc_chin/Makefile index 0658ab2b204..b3c2505c0f8 100644 --- a/rel/d/a/npc/d_a_npc_chin/Makefile +++ b/rel/d/a/npc/d_a_npc_chin/Makefile @@ -40,10 +40,17 @@ $(M292_TARGET): $(M292_O_FILES) $(M292_LIBS) @python3 tools/lcf.py rel 292 --output $(M292_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M292_LDFLAGS) -o $(M292_TARGET) @build/M292_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_chin/%.o: rel/d/a/npc/d_a_npc_chin/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_chin/%.o: rel/d/a/npc/d_a_npc_chin/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_chin/%.d @echo [292] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M292_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M292_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M292_D_FILES := $(M292_O_FILES:.o=.d) +$(M292_D_FILES): +include $(wildcard $(M292_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_clerka/Makefile b/rel/d/a/npc/d_a_npc_clerka/Makefile index d7269c3fc2e..871365237d1 100644 --- a/rel/d/a/npc/d_a_npc_clerka/Makefile +++ b/rel/d/a/npc/d_a_npc_clerka/Makefile @@ -40,10 +40,17 @@ $(M293_TARGET): $(M293_O_FILES) $(M293_LIBS) @python3 tools/lcf.py rel 293 --output $(M293_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M293_LDFLAGS) -o $(M293_TARGET) @build/M293_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerka/%.o: rel/d/a/npc/d_a_npc_clerka/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerka/%.o: rel/d/a/npc/d_a_npc_clerka/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerka/%.d @echo [293] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M293_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M293_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M293_D_FILES := $(M293_O_FILES:.o=.d) +$(M293_D_FILES): +include $(wildcard $(M293_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_clerkb/Makefile b/rel/d/a/npc/d_a_npc_clerkb/Makefile index 640bb005dee..5fc8220ca52 100644 --- a/rel/d/a/npc/d_a_npc_clerkb/Makefile +++ b/rel/d/a/npc/d_a_npc_clerkb/Makefile @@ -40,10 +40,17 @@ $(M294_TARGET): $(M294_O_FILES) $(M294_LIBS) @python3 tools/lcf.py rel 294 --output $(M294_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M294_LDFLAGS) -o $(M294_TARGET) @build/M294_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerkb/%.o: rel/d/a/npc/d_a_npc_clerkb/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerkb/%.o: rel/d/a/npc/d_a_npc_clerkb/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerkb/%.d @echo [294] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M294_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M294_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M294_D_FILES := $(M294_O_FILES:.o=.d) +$(M294_D_FILES): +include $(wildcard $(M294_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_clerkt/Makefile b/rel/d/a/npc/d_a_npc_clerkt/Makefile index 94354deed90..a41ffa4f8c7 100644 --- a/rel/d/a/npc/d_a_npc_clerkt/Makefile +++ b/rel/d/a/npc/d_a_npc_clerkt/Makefile @@ -40,10 +40,17 @@ $(M295_TARGET): $(M295_O_FILES) $(M295_LIBS) @python3 tools/lcf.py rel 295 --output $(M295_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M295_LDFLAGS) -o $(M295_TARGET) @build/M295_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerkt/%.o: rel/d/a/npc/d_a_npc_clerkt/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerkt/%.o: rel/d/a/npc/d_a_npc_clerkt/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerkt/%.d @echo [295] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M295_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M295_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M295_D_FILES := $(M295_O_FILES:.o=.d) +$(M295_D_FILES): +include $(wildcard $(M295_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_coach/Makefile b/rel/d/a/npc/d_a_npc_coach/Makefile index d43cd98450a..d83b5e7bb7b 100644 --- a/rel/d/a/npc/d_a_npc_coach/Makefile +++ b/rel/d/a/npc/d_a_npc_coach/Makefile @@ -38,10 +38,17 @@ $(M296_TARGET): $(M296_O_FILES) $(M296_LIBS) @python3 tools/lcf.py rel 296 --output $(M296_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M296_LDFLAGS) -o $(M296_TARGET) @build/M296_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_coach/%.o: rel/d/a/npc/d_a_npc_coach/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_coach/%.o: rel/d/a/npc/d_a_npc_coach/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_coach/%.d @echo [296] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M296_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M296_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M296_D_FILES := $(M296_O_FILES:.o=.d) +$(M296_D_FILES): +include $(wildcard $(M296_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_df/Makefile b/rel/d/a/npc/d_a_npc_df/Makefile index 41523241bd8..b4f4582b57e 100644 --- a/rel/d/a/npc/d_a_npc_df/Makefile +++ b/rel/d/a/npc/d_a_npc_df/Makefile @@ -40,10 +40,17 @@ $(M297_TARGET): $(M297_O_FILES) $(M297_LIBS) @python3 tools/lcf.py rel 297 --output $(M297_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M297_LDFLAGS) -o $(M297_TARGET) @build/M297_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_df/%.o: rel/d/a/npc/d_a_npc_df/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_df/%.o: rel/d/a/npc/d_a_npc_df/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_df/%.d @echo [297] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M297_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M297_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M297_D_FILES := $(M297_O_FILES:.o=.d) +$(M297_D_FILES): +include $(wildcard $(M297_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_doc/Makefile b/rel/d/a/npc/d_a_npc_doc/Makefile index 8e25d179a5d..e28d8b4a321 100644 --- a/rel/d/a/npc/d_a_npc_doc/Makefile +++ b/rel/d/a/npc/d_a_npc_doc/Makefile @@ -40,10 +40,17 @@ $(M298_TARGET): $(M298_O_FILES) $(M298_LIBS) @python3 tools/lcf.py rel 298 --output $(M298_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M298_LDFLAGS) -o $(M298_TARGET) @build/M298_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_doc/%.o: rel/d/a/npc/d_a_npc_doc/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_doc/%.o: rel/d/a/npc/d_a_npc_doc/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_doc/%.d @echo [298] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M298_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M298_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M298_D_FILES := $(M298_O_FILES:.o=.d) +$(M298_D_FILES): +include $(wildcard $(M298_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_doorboy/Makefile b/rel/d/a/npc/d_a_npc_doorboy/Makefile index cf268a60d88..893ff473407 100644 --- a/rel/d/a/npc/d_a_npc_doorboy/Makefile +++ b/rel/d/a/npc/d_a_npc_doorboy/Makefile @@ -40,10 +40,17 @@ $(M299_TARGET): $(M299_O_FILES) $(M299_LIBS) @python3 tools/lcf.py rel 299 --output $(M299_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M299_LDFLAGS) -o $(M299_TARGET) @build/M299_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_doorboy/%.o: rel/d/a/npc/d_a_npc_doorboy/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_doorboy/%.o: rel/d/a/npc/d_a_npc_doorboy/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_doorboy/%.d @echo [299] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M299_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M299_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M299_D_FILES := $(M299_O_FILES:.o=.d) +$(M299_D_FILES): +include $(wildcard $(M299_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_drainSol/Makefile b/rel/d/a/npc/d_a_npc_drainSol/Makefile index 6e31ee475fe..782bf408326 100644 --- a/rel/d/a/npc/d_a_npc_drainSol/Makefile +++ b/rel/d/a/npc/d_a_npc_drainSol/Makefile @@ -40,10 +40,17 @@ $(M300_TARGET): $(M300_O_FILES) $(M300_LIBS) @python3 tools/lcf.py rel 300 --output $(M300_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M300_LDFLAGS) -o $(M300_TARGET) @build/M300_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_drainSol/%.o: rel/d/a/npc/d_a_npc_drainSol/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_drainSol/%.o: rel/d/a/npc/d_a_npc_drainSol/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_drainSol/%.d @echo [300] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M300_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M300_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M300_D_FILES := $(M300_O_FILES:.o=.d) +$(M300_D_FILES): +include $(wildcard $(M300_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_du/Makefile b/rel/d/a/npc/d_a_npc_du/Makefile index ddd3938be6c..59ef405666d 100644 --- a/rel/d/a/npc/d_a_npc_du/Makefile +++ b/rel/d/a/npc/d_a_npc_du/Makefile @@ -40,10 +40,17 @@ $(M301_TARGET): $(M301_O_FILES) $(M301_LIBS) @python3 tools/lcf.py rel 301 --output $(M301_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M301_LDFLAGS) -o $(M301_TARGET) @build/M301_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_du/%.o: rel/d/a/npc/d_a_npc_du/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_du/%.o: rel/d/a/npc/d_a_npc_du/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_du/%.d @echo [301] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M301_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M301_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M301_D_FILES := $(M301_O_FILES:.o=.d) +$(M301_D_FILES): +include $(wildcard $(M301_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_fairy/Makefile b/rel/d/a/npc/d_a_npc_fairy/Makefile index 41393194c30..e9aa8e5a684 100644 --- a/rel/d/a/npc/d_a_npc_fairy/Makefile +++ b/rel/d/a/npc/d_a_npc_fairy/Makefile @@ -40,10 +40,17 @@ $(M302_TARGET): $(M302_O_FILES) $(M302_LIBS) @python3 tools/lcf.py rel 302 --output $(M302_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M302_LDFLAGS) -o $(M302_TARGET) @build/M302_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_fairy/%.o: rel/d/a/npc/d_a_npc_fairy/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_fairy/%.o: rel/d/a/npc/d_a_npc_fairy/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_fairy/%.d @echo [302] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M302_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M302_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M302_D_FILES := $(M302_O_FILES:.o=.d) +$(M302_D_FILES): +include $(wildcard $(M302_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_fairy_seirei/Makefile b/rel/d/a/npc/d_a_npc_fairy_seirei/Makefile index 6164f9b5cd3..408127d9ab2 100644 --- a/rel/d/a/npc/d_a_npc_fairy_seirei/Makefile +++ b/rel/d/a/npc/d_a_npc_fairy_seirei/Makefile @@ -40,10 +40,17 @@ $(M80_TARGET): $(M80_O_FILES) $(M80_LIBS) @python3 tools/lcf.py rel 80 --output $(M80_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M80_LDFLAGS) -o $(M80_TARGET) @build/M80_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_fairy_seirei/%.o: rel/d/a/npc/d_a_npc_fairy_seirei/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_fairy_seirei/%.o: rel/d/a/npc/d_a_npc_fairy_seirei/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_fairy_seirei/%.d @echo [ 80] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M80_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M80_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M80_D_FILES := $(M80_O_FILES:.o=.d) +$(M80_D_FILES): +include $(wildcard $(M80_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_fguard/Makefile b/rel/d/a/npc/d_a_npc_fguard/Makefile index 424955ded0d..5e237a3d400 100644 --- a/rel/d/a/npc/d_a_npc_fguard/Makefile +++ b/rel/d/a/npc/d_a_npc_fguard/Makefile @@ -38,10 +38,17 @@ $(M303_TARGET): $(M303_O_FILES) $(M303_LIBS) @python3 tools/lcf.py rel 303 --output $(M303_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M303_LDFLAGS) -o $(M303_TARGET) @build/M303_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_fguard/%.o: rel/d/a/npc/d_a_npc_fguard/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_fguard/%.o: rel/d/a/npc/d_a_npc_fguard/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_fguard/%.d @echo [303] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M303_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M303_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M303_D_FILES := $(M303_O_FILES:.o=.d) +$(M303_D_FILES): +include $(wildcard $(M303_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_fish/Makefile b/rel/d/a/npc/d_a_npc_fish/Makefile index d9c137eccaf..e78658f43ea 100644 --- a/rel/d/a/npc/d_a_npc_fish/Makefile +++ b/rel/d/a/npc/d_a_npc_fish/Makefile @@ -38,10 +38,17 @@ $(M81_TARGET): $(M81_O_FILES) $(M81_LIBS) @python3 tools/lcf.py rel 81 --output $(M81_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M81_LDFLAGS) -o $(M81_TARGET) @build/M81_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_fish/%.o: rel/d/a/npc/d_a_npc_fish/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_fish/%.o: rel/d/a/npc/d_a_npc_fish/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_fish/%.d @echo [ 81] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M81_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M81_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M81_D_FILES := $(M81_O_FILES:.o=.d) +$(M81_D_FILES): +include $(wildcard $(M81_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_gnd/Makefile b/rel/d/a/npc/d_a_npc_gnd/Makefile index a7be477c610..0220010acfd 100644 --- a/rel/d/a/npc/d_a_npc_gnd/Makefile +++ b/rel/d/a/npc/d_a_npc_gnd/Makefile @@ -40,10 +40,17 @@ $(M304_TARGET): $(M304_O_FILES) $(M304_LIBS) @python3 tools/lcf.py rel 304 --output $(M304_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M304_LDFLAGS) -o $(M304_TARGET) @build/M304_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_gnd/%.o: rel/d/a/npc/d_a_npc_gnd/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_gnd/%.o: rel/d/a/npc/d_a_npc_gnd/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gnd/%.d @echo [304] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M304_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M304_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M304_D_FILES := $(M304_O_FILES:.o=.d) +$(M304_D_FILES): +include $(wildcard $(M304_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_gra/Makefile b/rel/d/a/npc/d_a_npc_gra/Makefile index 0d9e3cde020..42bc58af20f 100644 --- a/rel/d/a/npc/d_a_npc_gra/Makefile +++ b/rel/d/a/npc/d_a_npc_gra/Makefile @@ -40,10 +40,17 @@ $(M305_TARGET): $(M305_O_FILES) $(M305_LIBS) @python3 tools/lcf.py rel 305 --output $(M305_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M305_LDFLAGS) -o $(M305_TARGET) @build/M305_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_gra/%.o: rel/d/a/npc/d_a_npc_gra/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_gra/%.o: rel/d/a/npc/d_a_npc_gra/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gra/%.d @echo [305] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M305_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M305_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M305_D_FILES := $(M305_O_FILES:.o=.d) +$(M305_D_FILES): +include $(wildcard $(M305_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_grc/Makefile b/rel/d/a/npc/d_a_npc_grc/Makefile index ff3b3fbf379..692cdfa7418 100644 --- a/rel/d/a/npc/d_a_npc_grc/Makefile +++ b/rel/d/a/npc/d_a_npc_grc/Makefile @@ -40,10 +40,17 @@ $(M306_TARGET): $(M306_O_FILES) $(M306_LIBS) @python3 tools/lcf.py rel 306 --output $(M306_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M306_LDFLAGS) -o $(M306_TARGET) @build/M306_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grc/%.o: rel/d/a/npc/d_a_npc_grc/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grc/%.o: rel/d/a/npc/d_a_npc_grc/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_grc/%.d @echo [306] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M306_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M306_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M306_D_FILES := $(M306_O_FILES:.o=.d) +$(M306_D_FILES): +include $(wildcard $(M306_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_grd/Makefile b/rel/d/a/npc/d_a_npc_grd/Makefile index 7aeed65e5b8..ed8fd19af5b 100644 --- a/rel/d/a/npc/d_a_npc_grd/Makefile +++ b/rel/d/a/npc/d_a_npc_grd/Makefile @@ -40,10 +40,17 @@ $(M307_TARGET): $(M307_O_FILES) $(M307_LIBS) @python3 tools/lcf.py rel 307 --output $(M307_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M307_LDFLAGS) -o $(M307_TARGET) @build/M307_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grd/%.o: rel/d/a/npc/d_a_npc_grd/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grd/%.o: rel/d/a/npc/d_a_npc_grd/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_grd/%.d @echo [307] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M307_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M307_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M307_D_FILES := $(M307_O_FILES:.o=.d) +$(M307_D_FILES): +include $(wildcard $(M307_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_grm/Makefile b/rel/d/a/npc/d_a_npc_grm/Makefile index faecdcab5d2..7b3ce6d6594 100644 --- a/rel/d/a/npc/d_a_npc_grm/Makefile +++ b/rel/d/a/npc/d_a_npc_grm/Makefile @@ -40,10 +40,17 @@ $(M308_TARGET): $(M308_O_FILES) $(M308_LIBS) @python3 tools/lcf.py rel 308 --output $(M308_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M308_LDFLAGS) -o $(M308_TARGET) @build/M308_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grm/%.o: rel/d/a/npc/d_a_npc_grm/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grm/%.o: rel/d/a/npc/d_a_npc_grm/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_grm/%.d @echo [308] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M308_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M308_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M308_D_FILES := $(M308_O_FILES:.o=.d) +$(M308_D_FILES): +include $(wildcard $(M308_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_grmc/Makefile b/rel/d/a/npc/d_a_npc_grmc/Makefile index 0325212cc2e..b4000d5a0da 100644 --- a/rel/d/a/npc/d_a_npc_grmc/Makefile +++ b/rel/d/a/npc/d_a_npc_grmc/Makefile @@ -40,10 +40,17 @@ $(M309_TARGET): $(M309_O_FILES) $(M309_LIBS) @python3 tools/lcf.py rel 309 --output $(M309_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M309_LDFLAGS) -o $(M309_TARGET) @build/M309_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grmc/%.o: rel/d/a/npc/d_a_npc_grmc/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grmc/%.o: rel/d/a/npc/d_a_npc_grmc/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_grmc/%.d @echo [309] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M309_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M309_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M309_D_FILES := $(M309_O_FILES:.o=.d) +$(M309_D_FILES): +include $(wildcard $(M309_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_gro/Makefile b/rel/d/a/npc/d_a_npc_gro/Makefile index fe4d2acef26..7c9f8c9c457 100644 --- a/rel/d/a/npc/d_a_npc_gro/Makefile +++ b/rel/d/a/npc/d_a_npc_gro/Makefile @@ -40,10 +40,17 @@ $(M310_TARGET): $(M310_O_FILES) $(M310_LIBS) @python3 tools/lcf.py rel 310 --output $(M310_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M310_LDFLAGS) -o $(M310_TARGET) @build/M310_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_gro/%.o: rel/d/a/npc/d_a_npc_gro/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_gro/%.o: rel/d/a/npc/d_a_npc_gro/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gro/%.d @echo [310] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M310_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M310_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M310_D_FILES := $(M310_O_FILES:.o=.d) +$(M310_D_FILES): +include $(wildcard $(M310_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_grr/Makefile b/rel/d/a/npc/d_a_npc_grr/Makefile index 35250322e6a..dda52274cb4 100644 --- a/rel/d/a/npc/d_a_npc_grr/Makefile +++ b/rel/d/a/npc/d_a_npc_grr/Makefile @@ -40,10 +40,17 @@ $(M311_TARGET): $(M311_O_FILES) $(M311_LIBS) @python3 tools/lcf.py rel 311 --output $(M311_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M311_LDFLAGS) -o $(M311_TARGET) @build/M311_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grr/%.o: rel/d/a/npc/d_a_npc_grr/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grr/%.o: rel/d/a/npc/d_a_npc_grr/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_grr/%.d @echo [311] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M311_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M311_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M311_D_FILES := $(M311_O_FILES:.o=.d) +$(M311_D_FILES): +include $(wildcard $(M311_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_grs/Makefile b/rel/d/a/npc/d_a_npc_grs/Makefile index f452bb7ac69..4c29c82588a 100644 --- a/rel/d/a/npc/d_a_npc_grs/Makefile +++ b/rel/d/a/npc/d_a_npc_grs/Makefile @@ -40,10 +40,17 @@ $(M312_TARGET): $(M312_O_FILES) $(M312_LIBS) @python3 tools/lcf.py rel 312 --output $(M312_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M312_LDFLAGS) -o $(M312_TARGET) @build/M312_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grs/%.o: rel/d/a/npc/d_a_npc_grs/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grs/%.o: rel/d/a/npc/d_a_npc_grs/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_grs/%.d @echo [312] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M312_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M312_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M312_D_FILES := $(M312_O_FILES:.o=.d) +$(M312_D_FILES): +include $(wildcard $(M312_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_grz/Makefile b/rel/d/a/npc/d_a_npc_grz/Makefile index d8ab788809f..58beba45e05 100644 --- a/rel/d/a/npc/d_a_npc_grz/Makefile +++ b/rel/d/a/npc/d_a_npc_grz/Makefile @@ -40,10 +40,17 @@ $(M313_TARGET): $(M313_O_FILES) $(M313_LIBS) @python3 tools/lcf.py rel 313 --output $(M313_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M313_LDFLAGS) -o $(M313_TARGET) @build/M313_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grz/%.o: rel/d/a/npc/d_a_npc_grz/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_grz/%.o: rel/d/a/npc/d_a_npc_grz/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_grz/%.d @echo [313] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M313_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M313_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M313_D_FILES := $(M313_O_FILES:.o=.d) +$(M313_D_FILES): +include $(wildcard $(M313_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_guard/Makefile b/rel/d/a/npc/d_a_npc_guard/Makefile index 5cd897055e1..a9c6ce2e22a 100644 --- a/rel/d/a/npc/d_a_npc_guard/Makefile +++ b/rel/d/a/npc/d_a_npc_guard/Makefile @@ -38,10 +38,17 @@ $(M314_TARGET): $(M314_O_FILES) $(M314_LIBS) @python3 tools/lcf.py rel 314 --output $(M314_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M314_LDFLAGS) -o $(M314_TARGET) @build/M314_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_guard/%.o: rel/d/a/npc/d_a_npc_guard/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_guard/%.o: rel/d/a/npc/d_a_npc_guard/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_guard/%.d @echo [314] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M314_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M314_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M314_D_FILES := $(M314_O_FILES:.o=.d) +$(M314_D_FILES): +include $(wildcard $(M314_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_gwolf/Makefile b/rel/d/a/npc/d_a_npc_gwolf/Makefile index 5d90c3fdb3e..87bd616fb20 100644 --- a/rel/d/a/npc/d_a_npc_gwolf/Makefile +++ b/rel/d/a/npc/d_a_npc_gwolf/Makefile @@ -40,10 +40,17 @@ $(M315_TARGET): $(M315_O_FILES) $(M315_LIBS) @python3 tools/lcf.py rel 315 --output $(M315_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M315_LDFLAGS) -o $(M315_TARGET) @build/M315_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_gwolf/%.o: rel/d/a/npc/d_a_npc_gwolf/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_gwolf/%.o: rel/d/a/npc/d_a_npc_gwolf/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gwolf/%.d @echo [315] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M315_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M315_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M315_D_FILES := $(M315_O_FILES:.o=.d) +$(M315_D_FILES): +include $(wildcard $(M315_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_hanjo/Makefile b/rel/d/a/npc/d_a_npc_hanjo/Makefile index 1be029e954f..ebcc5ef81b1 100644 --- a/rel/d/a/npc/d_a_npc_hanjo/Makefile +++ b/rel/d/a/npc/d_a_npc_hanjo/Makefile @@ -40,10 +40,17 @@ $(M316_TARGET): $(M316_O_FILES) $(M316_LIBS) @python3 tools/lcf.py rel 316 --output $(M316_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M316_LDFLAGS) -o $(M316_TARGET) @build/M316_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_hanjo/%.o: rel/d/a/npc/d_a_npc_hanjo/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_hanjo/%.o: rel/d/a/npc/d_a_npc_hanjo/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_hanjo/%.d @echo [316] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M316_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M316_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M316_D_FILES := $(M316_O_FILES:.o=.d) +$(M316_D_FILES): +include $(wildcard $(M316_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_henna/Makefile b/rel/d/a/npc/d_a_npc_henna/Makefile index 6a2be443852..a5e9841523b 100644 --- a/rel/d/a/npc/d_a_npc_henna/Makefile +++ b/rel/d/a/npc/d_a_npc_henna/Makefile @@ -40,10 +40,17 @@ $(M82_TARGET): $(M82_O_FILES) $(M82_LIBS) @python3 tools/lcf.py rel 82 --output $(M82_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M82_LDFLAGS) -o $(M82_TARGET) @build/M82_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna/%.o: rel/d/a/npc/d_a_npc_henna/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna/%.o: rel/d/a/npc/d_a_npc_henna/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna/%.d @echo [ 82] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M82_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M82_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M82_D_FILES := $(M82_O_FILES:.o=.d) +$(M82_D_FILES): +include $(wildcard $(M82_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_henna0/Makefile b/rel/d/a/npc/d_a_npc_henna0/Makefile index 872563dec6f..180bb56b16f 100644 --- a/rel/d/a/npc/d_a_npc_henna0/Makefile +++ b/rel/d/a/npc/d_a_npc_henna0/Makefile @@ -38,10 +38,17 @@ $(M317_TARGET): $(M317_O_FILES) $(M317_LIBS) @python3 tools/lcf.py rel 317 --output $(M317_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M317_LDFLAGS) -o $(M317_TARGET) @build/M317_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna0/%.o: rel/d/a/npc/d_a_npc_henna0/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna0/%.o: rel/d/a/npc/d_a_npc_henna0/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna0/%.d @echo [317] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M317_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M317_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M317_D_FILES := $(M317_O_FILES:.o=.d) +$(M317_D_FILES): +include $(wildcard $(M317_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_hoz/Makefile b/rel/d/a/npc/d_a_npc_hoz/Makefile index 111d4ed552b..94e2ee791a7 100644 --- a/rel/d/a/npc/d_a_npc_hoz/Makefile +++ b/rel/d/a/npc/d_a_npc_hoz/Makefile @@ -40,10 +40,17 @@ $(M318_TARGET): $(M318_O_FILES) $(M318_LIBS) @python3 tools/lcf.py rel 318 --output $(M318_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M318_LDFLAGS) -o $(M318_TARGET) @build/M318_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_hoz/%.o: rel/d/a/npc/d_a_npc_hoz/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_hoz/%.o: rel/d/a/npc/d_a_npc_hoz/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_hoz/%.d @echo [318] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M318_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M318_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M318_D_FILES := $(M318_O_FILES:.o=.d) +$(M318_D_FILES): +include $(wildcard $(M318_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_impal/Makefile b/rel/d/a/npc/d_a_npc_impal/Makefile index 16818c80c16..174b9298a94 100644 --- a/rel/d/a/npc/d_a_npc_impal/Makefile +++ b/rel/d/a/npc/d_a_npc_impal/Makefile @@ -40,10 +40,17 @@ $(M319_TARGET): $(M319_O_FILES) $(M319_LIBS) @python3 tools/lcf.py rel 319 --output $(M319_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M319_LDFLAGS) -o $(M319_TARGET) @build/M319_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_impal/%.o: rel/d/a/npc/d_a_npc_impal/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_impal/%.o: rel/d/a/npc/d_a_npc_impal/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_impal/%.d @echo [319] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M319_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M319_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M319_D_FILES := $(M319_O_FILES:.o=.d) +$(M319_D_FILES): +include $(wildcard $(M319_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_inko/Makefile b/rel/d/a/npc/d_a_npc_inko/Makefile index 3bac7730618..0f965eb61c2 100644 --- a/rel/d/a/npc/d_a_npc_inko/Makefile +++ b/rel/d/a/npc/d_a_npc_inko/Makefile @@ -38,10 +38,17 @@ $(M320_TARGET): $(M320_O_FILES) $(M320_LIBS) @python3 tools/lcf.py rel 320 --output $(M320_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M320_LDFLAGS) -o $(M320_TARGET) @build/M320_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_inko/%.o: rel/d/a/npc/d_a_npc_inko/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_inko/%.o: rel/d/a/npc/d_a_npc_inko/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_inko/%.d @echo [320] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M320_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M320_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M320_D_FILES := $(M320_O_FILES:.o=.d) +$(M320_D_FILES): +include $(wildcard $(M320_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_ins/Makefile b/rel/d/a/npc/d_a_npc_ins/Makefile index 4c277da9863..279a944eda3 100644 --- a/rel/d/a/npc/d_a_npc_ins/Makefile +++ b/rel/d/a/npc/d_a_npc_ins/Makefile @@ -40,10 +40,17 @@ $(M321_TARGET): $(M321_O_FILES) $(M321_LIBS) @python3 tools/lcf.py rel 321 --output $(M321_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M321_LDFLAGS) -o $(M321_TARGET) @build/M321_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ins/%.o: rel/d/a/npc/d_a_npc_ins/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ins/%.o: rel/d/a/npc/d_a_npc_ins/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ins/%.d @echo [321] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M321_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M321_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M321_D_FILES := $(M321_O_FILES:.o=.d) +$(M321_D_FILES): +include $(wildcard $(M321_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_jagar/Makefile b/rel/d/a/npc/d_a_npc_jagar/Makefile index 54a0e75ae7d..189518bc2b9 100644 --- a/rel/d/a/npc/d_a_npc_jagar/Makefile +++ b/rel/d/a/npc/d_a_npc_jagar/Makefile @@ -40,10 +40,17 @@ $(M322_TARGET): $(M322_O_FILES) $(M322_LIBS) @python3 tools/lcf.py rel 322 --output $(M322_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M322_LDFLAGS) -o $(M322_TARGET) @build/M322_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_jagar/%.o: rel/d/a/npc/d_a_npc_jagar/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_jagar/%.o: rel/d/a/npc/d_a_npc_jagar/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_jagar/%.d @echo [322] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M322_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M322_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M322_D_FILES := $(M322_O_FILES:.o=.d) +$(M322_D_FILES): +include $(wildcard $(M322_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_kakashi/Makefile b/rel/d/a/npc/d_a_npc_kakashi/Makefile index fdbf0228239..bd44a9a0b98 100644 --- a/rel/d/a/npc/d_a_npc_kakashi/Makefile +++ b/rel/d/a/npc/d_a_npc_kakashi/Makefile @@ -40,10 +40,17 @@ $(M83_TARGET): $(M83_O_FILES) $(M83_LIBS) @python3 tools/lcf.py rel 83 --output $(M83_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M83_LDFLAGS) -o $(M83_TARGET) @build/M83_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kakashi/%.o: rel/d/a/npc/d_a_npc_kakashi/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kakashi/%.o: rel/d/a/npc/d_a_npc_kakashi/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kakashi/%.d @echo [ 83] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M83_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M83_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M83_D_FILES := $(M83_O_FILES:.o=.d) +$(M83_D_FILES): +include $(wildcard $(M83_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_kasi_hana/Makefile b/rel/d/a/npc/d_a_npc_kasi_hana/Makefile index 0cb1c37e6ff..02129f25c01 100644 --- a/rel/d/a/npc/d_a_npc_kasi_hana/Makefile +++ b/rel/d/a/npc/d_a_npc_kasi_hana/Makefile @@ -40,10 +40,17 @@ $(M323_TARGET): $(M323_O_FILES) $(M323_LIBS) @python3 tools/lcf.py rel 323 --output $(M323_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M323_LDFLAGS) -o $(M323_TARGET) @build/M323_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_hana/%.o: rel/d/a/npc/d_a_npc_kasi_hana/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_hana/%.o: rel/d/a/npc/d_a_npc_kasi_hana/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_hana/%.d @echo [323] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M323_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M323_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M323_D_FILES := $(M323_O_FILES:.o=.d) +$(M323_D_FILES): +include $(wildcard $(M323_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_kasi_kyu/Makefile b/rel/d/a/npc/d_a_npc_kasi_kyu/Makefile index 2ceb55e5e70..19c46c3cfc4 100644 --- a/rel/d/a/npc/d_a_npc_kasi_kyu/Makefile +++ b/rel/d/a/npc/d_a_npc_kasi_kyu/Makefile @@ -40,10 +40,17 @@ $(M324_TARGET): $(M324_O_FILES) $(M324_LIBS) @python3 tools/lcf.py rel 324 --output $(M324_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M324_LDFLAGS) -o $(M324_TARGET) @build/M324_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_kyu/%.o: rel/d/a/npc/d_a_npc_kasi_kyu/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_kyu/%.o: rel/d/a/npc/d_a_npc_kasi_kyu/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_kyu/%.d @echo [324] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M324_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M324_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M324_D_FILES := $(M324_O_FILES:.o=.d) +$(M324_D_FILES): +include $(wildcard $(M324_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_kasi_mich/Makefile b/rel/d/a/npc/d_a_npc_kasi_mich/Makefile index 60c779085ad..98404ae7289 100644 --- a/rel/d/a/npc/d_a_npc_kasi_mich/Makefile +++ b/rel/d/a/npc/d_a_npc_kasi_mich/Makefile @@ -40,10 +40,17 @@ $(M325_TARGET): $(M325_O_FILES) $(M325_LIBS) @python3 tools/lcf.py rel 325 --output $(M325_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M325_LDFLAGS) -o $(M325_TARGET) @build/M325_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_mich/%.o: rel/d/a/npc/d_a_npc_kasi_mich/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_mich/%.o: rel/d/a/npc/d_a_npc_kasi_mich/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_mich/%.d @echo [325] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M325_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M325_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M325_D_FILES := $(M325_O_FILES:.o=.d) +$(M325_D_FILES): +include $(wildcard $(M325_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_kdk/Makefile b/rel/d/a/npc/d_a_npc_kdk/Makefile index e7b1a4085db..646a40bd5fa 100644 --- a/rel/d/a/npc/d_a_npc_kdk/Makefile +++ b/rel/d/a/npc/d_a_npc_kdk/Makefile @@ -38,10 +38,17 @@ $(M326_TARGET): $(M326_O_FILES) $(M326_LIBS) @python3 tools/lcf.py rel 326 --output $(M326_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M326_LDFLAGS) -o $(M326_TARGET) @build/M326_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kdk/%.o: rel/d/a/npc/d_a_npc_kdk/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kdk/%.o: rel/d/a/npc/d_a_npc_kdk/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kdk/%.d @echo [326] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M326_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M326_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M326_D_FILES := $(M326_O_FILES:.o=.d) +$(M326_D_FILES): +include $(wildcard $(M326_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_kkri/Makefile b/rel/d/a/npc/d_a_npc_kkri/Makefile index 27e4111d143..029c7ef0cd2 100644 --- a/rel/d/a/npc/d_a_npc_kkri/Makefile +++ b/rel/d/a/npc/d_a_npc_kkri/Makefile @@ -40,10 +40,17 @@ $(M84_TARGET): $(M84_O_FILES) $(M84_LIBS) @python3 tools/lcf.py rel 84 --output $(M84_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M84_LDFLAGS) -o $(M84_TARGET) @build/M84_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kkri/%.o: rel/d/a/npc/d_a_npc_kkri/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kkri/%.o: rel/d/a/npc/d_a_npc_kkri/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kkri/%.d @echo [ 84] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M84_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M84_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M84_D_FILES := $(M84_O_FILES:.o=.d) +$(M84_D_FILES): +include $(wildcard $(M84_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_kn/Makefile b/rel/d/a/npc/d_a_npc_kn/Makefile index 7938ffe0f94..f05c15426c3 100644 --- a/rel/d/a/npc/d_a_npc_kn/Makefile +++ b/rel/d/a/npc/d_a_npc_kn/Makefile @@ -40,10 +40,17 @@ $(M327_TARGET): $(M327_O_FILES) $(M327_LIBS) @python3 tools/lcf.py rel 327 --output $(M327_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M327_LDFLAGS) -o $(M327_TARGET) @build/M327_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kn/%.o: rel/d/a/npc/d_a_npc_kn/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kn/%.o: rel/d/a/npc/d_a_npc_kn/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kn/%.d @echo [327] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M327_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M327_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M327_D_FILES := $(M327_O_FILES:.o=.d) +$(M327_D_FILES): +include $(wildcard $(M327_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_knj/Makefile b/rel/d/a/npc/d_a_npc_knj/Makefile index 1037e4805dc..7cfd07c6737 100644 --- a/rel/d/a/npc/d_a_npc_knj/Makefile +++ b/rel/d/a/npc/d_a_npc_knj/Makefile @@ -40,10 +40,17 @@ $(M328_TARGET): $(M328_O_FILES) $(M328_LIBS) @python3 tools/lcf.py rel 328 --output $(M328_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M328_LDFLAGS) -o $(M328_TARGET) @build/M328_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_knj/%.o: rel/d/a/npc/d_a_npc_knj/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_knj/%.o: rel/d/a/npc/d_a_npc_knj/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_knj/%.d @echo [328] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M328_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M328_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M328_D_FILES := $(M328_O_FILES:.o=.d) +$(M328_D_FILES): +include $(wildcard $(M328_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_kolin/Makefile b/rel/d/a/npc/d_a_npc_kolin/Makefile index 6eba2944d45..1fa04c6a1fe 100644 --- a/rel/d/a/npc/d_a_npc_kolin/Makefile +++ b/rel/d/a/npc/d_a_npc_kolin/Makefile @@ -40,10 +40,17 @@ $(M85_TARGET): $(M85_O_FILES) $(M85_LIBS) @python3 tools/lcf.py rel 85 --output $(M85_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M85_LDFLAGS) -o $(M85_TARGET) @build/M85_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kolin/%.o: rel/d/a/npc/d_a_npc_kolin/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kolin/%.o: rel/d/a/npc/d_a_npc_kolin/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kolin/%.d @echo [ 85] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M85_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M85_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M85_D_FILES := $(M85_O_FILES:.o=.d) +$(M85_D_FILES): +include $(wildcard $(M85_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_kolinb/Makefile b/rel/d/a/npc/d_a_npc_kolinb/Makefile index 29d63baf258..03580ff45ac 100644 --- a/rel/d/a/npc/d_a_npc_kolinb/Makefile +++ b/rel/d/a/npc/d_a_npc_kolinb/Makefile @@ -40,10 +40,17 @@ $(M329_TARGET): $(M329_O_FILES) $(M329_LIBS) @python3 tools/lcf.py rel 329 --output $(M329_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M329_LDFLAGS) -o $(M329_TARGET) @build/M329_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kolinb/%.o: rel/d/a/npc/d_a_npc_kolinb/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kolinb/%.o: rel/d/a/npc/d_a_npc_kolinb/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kolinb/%.d @echo [329] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M329_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M329_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M329_D_FILES := $(M329_O_FILES:.o=.d) +$(M329_D_FILES): +include $(wildcard $(M329_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_ks/Makefile b/rel/d/a/npc/d_a_npc_ks/Makefile index 4c772348ea4..66be99653ae 100644 --- a/rel/d/a/npc/d_a_npc_ks/Makefile +++ b/rel/d/a/npc/d_a_npc_ks/Makefile @@ -40,10 +40,17 @@ $(M330_TARGET): $(M330_O_FILES) $(M330_LIBS) @python3 tools/lcf.py rel 330 --output $(M330_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M330_LDFLAGS) -o $(M330_TARGET) @build/M330_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ks/%.o: rel/d/a/npc/d_a_npc_ks/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ks/%.o: rel/d/a/npc/d_a_npc_ks/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ks/%.d @echo [330] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M330_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M330_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M330_D_FILES := $(M330_O_FILES:.o=.d) +$(M330_D_FILES): +include $(wildcard $(M330_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_kyury/Makefile b/rel/d/a/npc/d_a_npc_kyury/Makefile index 15561371127..0e8b223f912 100644 --- a/rel/d/a/npc/d_a_npc_kyury/Makefile +++ b/rel/d/a/npc/d_a_npc_kyury/Makefile @@ -40,10 +40,17 @@ $(M331_TARGET): $(M331_O_FILES) $(M331_LIBS) @python3 tools/lcf.py rel 331 --output $(M331_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M331_LDFLAGS) -o $(M331_TARGET) @build/M331_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kyury/%.o: rel/d/a/npc/d_a_npc_kyury/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kyury/%.o: rel/d/a/npc/d_a_npc_kyury/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kyury/%.d @echo [331] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M331_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M331_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M331_D_FILES := $(M331_O_FILES:.o=.d) +$(M331_D_FILES): +include $(wildcard $(M331_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_len/Makefile b/rel/d/a/npc/d_a_npc_len/Makefile index d998d7fa722..ba1c991ce2d 100644 --- a/rel/d/a/npc/d_a_npc_len/Makefile +++ b/rel/d/a/npc/d_a_npc_len/Makefile @@ -40,10 +40,17 @@ $(M332_TARGET): $(M332_O_FILES) $(M332_LIBS) @python3 tools/lcf.py rel 332 --output $(M332_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M332_LDFLAGS) -o $(M332_TARGET) @build/M332_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_len/%.o: rel/d/a/npc/d_a_npc_len/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_len/%.o: rel/d/a/npc/d_a_npc_len/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_len/%.d @echo [332] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M332_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M332_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M332_D_FILES := $(M332_O_FILES:.o=.d) +$(M332_D_FILES): +include $(wildcard $(M332_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_lf/Makefile b/rel/d/a/npc/d_a_npc_lf/Makefile index 92c235f4e50..463c623d0aa 100644 --- a/rel/d/a/npc/d_a_npc_lf/Makefile +++ b/rel/d/a/npc/d_a_npc_lf/Makefile @@ -40,10 +40,17 @@ $(M333_TARGET): $(M333_O_FILES) $(M333_LIBS) @python3 tools/lcf.py rel 333 --output $(M333_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M333_LDFLAGS) -o $(M333_TARGET) @build/M333_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_lf/%.o: rel/d/a/npc/d_a_npc_lf/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_lf/%.o: rel/d/a/npc/d_a_npc_lf/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_lf/%.d @echo [333] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M333_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M333_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M333_D_FILES := $(M333_O_FILES:.o=.d) +$(M333_D_FILES): +include $(wildcard $(M333_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_lud/Makefile b/rel/d/a/npc/d_a_npc_lud/Makefile index 3971b76ed57..7c6fceee619 100644 --- a/rel/d/a/npc/d_a_npc_lud/Makefile +++ b/rel/d/a/npc/d_a_npc_lud/Makefile @@ -40,10 +40,17 @@ $(M334_TARGET): $(M334_O_FILES) $(M334_LIBS) @python3 tools/lcf.py rel 334 --output $(M334_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M334_LDFLAGS) -o $(M334_TARGET) @build/M334_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_lud/%.o: rel/d/a/npc/d_a_npc_lud/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_lud/%.o: rel/d/a/npc/d_a_npc_lud/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_lud/%.d @echo [334] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M334_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M334_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M334_D_FILES := $(M334_O_FILES:.o=.d) +$(M334_D_FILES): +include $(wildcard $(M334_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_maro/Makefile b/rel/d/a/npc/d_a_npc_maro/Makefile index 18b2fb1256b..e2bad4f0f8d 100644 --- a/rel/d/a/npc/d_a_npc_maro/Makefile +++ b/rel/d/a/npc/d_a_npc_maro/Makefile @@ -40,10 +40,17 @@ $(M86_TARGET): $(M86_O_FILES) $(M86_LIBS) @python3 tools/lcf.py rel 86 --output $(M86_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M86_LDFLAGS) -o $(M86_TARGET) @build/M86_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_maro/%.o: rel/d/a/npc/d_a_npc_maro/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_maro/%.o: rel/d/a/npc/d_a_npc_maro/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_maro/%.d @echo [ 86] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M86_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M86_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M86_D_FILES := $(M86_O_FILES:.o=.d) +$(M86_D_FILES): +include $(wildcard $(M86_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_midp/Makefile b/rel/d/a/npc/d_a_npc_midp/Makefile index b1c0325983f..2d51ef4c10e 100644 --- a/rel/d/a/npc/d_a_npc_midp/Makefile +++ b/rel/d/a/npc/d_a_npc_midp/Makefile @@ -40,10 +40,17 @@ $(M335_TARGET): $(M335_O_FILES) $(M335_LIBS) @python3 tools/lcf.py rel 335 --output $(M335_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M335_LDFLAGS) -o $(M335_TARGET) @build/M335_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_midp/%.o: rel/d/a/npc/d_a_npc_midp/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_midp/%.o: rel/d/a/npc/d_a_npc_midp/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_midp/%.d @echo [335] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M335_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M335_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M335_D_FILES := $(M335_O_FILES:.o=.d) +$(M335_D_FILES): +include $(wildcard $(M335_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_mk/Makefile b/rel/d/a/npc/d_a_npc_mk/Makefile index c296c678760..a042303e861 100644 --- a/rel/d/a/npc/d_a_npc_mk/Makefile +++ b/rel/d/a/npc/d_a_npc_mk/Makefile @@ -38,10 +38,17 @@ $(M336_TARGET): $(M336_O_FILES) $(M336_LIBS) @python3 tools/lcf.py rel 336 --output $(M336_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M336_LDFLAGS) -o $(M336_TARGET) @build/M336_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_mk/%.o: rel/d/a/npc/d_a_npc_mk/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_mk/%.o: rel/d/a/npc/d_a_npc_mk/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_mk/%.d @echo [336] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M336_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M336_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M336_D_FILES := $(M336_O_FILES:.o=.d) +$(M336_D_FILES): +include $(wildcard $(M336_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_moi/Makefile b/rel/d/a/npc/d_a_npc_moi/Makefile index 81662536283..4184241d163 100644 --- a/rel/d/a/npc/d_a_npc_moi/Makefile +++ b/rel/d/a/npc/d_a_npc_moi/Makefile @@ -40,10 +40,17 @@ $(M337_TARGET): $(M337_O_FILES) $(M337_LIBS) @python3 tools/lcf.py rel 337 --output $(M337_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M337_LDFLAGS) -o $(M337_TARGET) @build/M337_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_moi/%.o: rel/d/a/npc/d_a_npc_moi/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_moi/%.o: rel/d/a/npc/d_a_npc_moi/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_moi/%.d @echo [337] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M337_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M337_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M337_D_FILES := $(M337_O_FILES:.o=.d) +$(M337_D_FILES): +include $(wildcard $(M337_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_moir/Makefile b/rel/d/a/npc/d_a_npc_moir/Makefile index 550a233847c..69a5dfb012b 100644 --- a/rel/d/a/npc/d_a_npc_moir/Makefile +++ b/rel/d/a/npc/d_a_npc_moir/Makefile @@ -40,10 +40,17 @@ $(M338_TARGET): $(M338_O_FILES) $(M338_LIBS) @python3 tools/lcf.py rel 338 --output $(M338_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M338_LDFLAGS) -o $(M338_TARGET) @build/M338_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_moir/%.o: rel/d/a/npc/d_a_npc_moir/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_moir/%.o: rel/d/a/npc/d_a_npc_moir/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_moir/%.d @echo [338] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M338_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M338_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M338_D_FILES := $(M338_O_FILES:.o=.d) +$(M338_D_FILES): +include $(wildcard $(M338_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_myna2/Makefile b/rel/d/a/npc/d_a_npc_myna2/Makefile index bb938fefb07..3411d2b4d4c 100644 --- a/rel/d/a/npc/d_a_npc_myna2/Makefile +++ b/rel/d/a/npc/d_a_npc_myna2/Makefile @@ -40,10 +40,17 @@ $(M339_TARGET): $(M339_O_FILES) $(M339_LIBS) @python3 tools/lcf.py rel 339 --output $(M339_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M339_LDFLAGS) -o $(M339_TARGET) @build/M339_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_myna2/%.o: rel/d/a/npc/d_a_npc_myna2/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_myna2/%.o: rel/d/a/npc/d_a_npc_myna2/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_myna2/%.d @echo [339] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M339_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M339_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M339_D_FILES := $(M339_O_FILES:.o=.d) +$(M339_D_FILES): +include $(wildcard $(M339_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_ne/Makefile b/rel/d/a/npc/d_a_npc_ne/Makefile index b64ea7a32c9..a6e294b6be6 100644 --- a/rel/d/a/npc/d_a_npc_ne/Makefile +++ b/rel/d/a/npc/d_a_npc_ne/Makefile @@ -40,10 +40,17 @@ $(M340_TARGET): $(M340_O_FILES) $(M340_LIBS) @python3 tools/lcf.py rel 340 --output $(M340_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M340_LDFLAGS) -o $(M340_TARGET) @build/M340_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ne/%.o: rel/d/a/npc/d_a_npc_ne/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ne/%.o: rel/d/a/npc/d_a_npc_ne/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ne/%.d @echo [340] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M340_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M340_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M340_D_FILES := $(M340_O_FILES:.o=.d) +$(M340_D_FILES): +include $(wildcard $(M340_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_p2/Makefile b/rel/d/a/npc/d_a_npc_p2/Makefile index 4b1098a90e8..cc39d138149 100644 --- a/rel/d/a/npc/d_a_npc_p2/Makefile +++ b/rel/d/a/npc/d_a_npc_p2/Makefile @@ -38,10 +38,17 @@ $(M341_TARGET): $(M341_O_FILES) $(M341_LIBS) @python3 tools/lcf.py rel 341 --output $(M341_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M341_LDFLAGS) -o $(M341_TARGET) @build/M341_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_p2/%.o: rel/d/a/npc/d_a_npc_p2/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_p2/%.o: rel/d/a/npc/d_a_npc_p2/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_p2/%.d @echo [341] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M341_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M341_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M341_D_FILES := $(M341_O_FILES:.o=.d) +$(M341_D_FILES): +include $(wildcard $(M341_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_pachi_besu/Makefile b/rel/d/a/npc/d_a_npc_pachi_besu/Makefile index 122b17b081f..4c563b8088a 100644 --- a/rel/d/a/npc/d_a_npc_pachi_besu/Makefile +++ b/rel/d/a/npc/d_a_npc_pachi_besu/Makefile @@ -40,10 +40,17 @@ $(M342_TARGET): $(M342_O_FILES) $(M342_LIBS) @python3 tools/lcf.py rel 342 --output $(M342_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M342_LDFLAGS) -o $(M342_TARGET) @build/M342_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_pachi_besu/%.o: rel/d/a/npc/d_a_npc_pachi_besu/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_pachi_besu/%.o: rel/d/a/npc/d_a_npc_pachi_besu/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_pachi_besu/%.d @echo [342] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M342_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M342_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M342_D_FILES := $(M342_O_FILES:.o=.d) +$(M342_D_FILES): +include $(wildcard $(M342_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_pachi_maro/Makefile b/rel/d/a/npc/d_a_npc_pachi_maro/Makefile index da4a68ba232..8dbcf92799d 100644 --- a/rel/d/a/npc/d_a_npc_pachi_maro/Makefile +++ b/rel/d/a/npc/d_a_npc_pachi_maro/Makefile @@ -40,10 +40,17 @@ $(M343_TARGET): $(M343_O_FILES) $(M343_LIBS) @python3 tools/lcf.py rel 343 --output $(M343_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M343_LDFLAGS) -o $(M343_TARGET) @build/M343_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_pachi_maro/%.o: rel/d/a/npc/d_a_npc_pachi_maro/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_pachi_maro/%.o: rel/d/a/npc/d_a_npc_pachi_maro/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_pachi_maro/%.d @echo [343] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M343_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M343_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M343_D_FILES := $(M343_O_FILES:.o=.d) +$(M343_D_FILES): +include $(wildcard $(M343_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_pachi_taro/Makefile b/rel/d/a/npc/d_a_npc_pachi_taro/Makefile index 11863d636e5..3b4ba061f14 100644 --- a/rel/d/a/npc/d_a_npc_pachi_taro/Makefile +++ b/rel/d/a/npc/d_a_npc_pachi_taro/Makefile @@ -40,10 +40,17 @@ $(M344_TARGET): $(M344_O_FILES) $(M344_LIBS) @python3 tools/lcf.py rel 344 --output $(M344_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M344_LDFLAGS) -o $(M344_TARGET) @build/M344_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_pachi_taro/%.o: rel/d/a/npc/d_a_npc_pachi_taro/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_pachi_taro/%.o: rel/d/a/npc/d_a_npc_pachi_taro/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_pachi_taro/%.d @echo [344] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M344_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M344_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M344_D_FILES := $(M344_O_FILES:.o=.d) +$(M344_D_FILES): +include $(wildcard $(M344_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_passer/Makefile b/rel/d/a/npc/d_a_npc_passer/Makefile index 9fe91e1d28a..b12e00b2c9e 100644 --- a/rel/d/a/npc/d_a_npc_passer/Makefile +++ b/rel/d/a/npc/d_a_npc_passer/Makefile @@ -38,10 +38,17 @@ $(M345_TARGET): $(M345_O_FILES) $(M345_LIBS) @python3 tools/lcf.py rel 345 --output $(M345_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M345_LDFLAGS) -o $(M345_TARGET) @build/M345_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_passer/%.o: rel/d/a/npc/d_a_npc_passer/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_passer/%.o: rel/d/a/npc/d_a_npc_passer/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_passer/%.d @echo [345] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M345_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M345_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M345_D_FILES := $(M345_O_FILES:.o=.d) +$(M345_D_FILES): +include $(wildcard $(M345_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_passer2/Makefile b/rel/d/a/npc/d_a_npc_passer2/Makefile index 3351fc770c3..13d0d27d3c2 100644 --- a/rel/d/a/npc/d_a_npc_passer2/Makefile +++ b/rel/d/a/npc/d_a_npc_passer2/Makefile @@ -38,10 +38,17 @@ $(M346_TARGET): $(M346_O_FILES) $(M346_LIBS) @python3 tools/lcf.py rel 346 --output $(M346_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M346_LDFLAGS) -o $(M346_TARGET) @build/M346_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_passer2/%.o: rel/d/a/npc/d_a_npc_passer2/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_passer2/%.o: rel/d/a/npc/d_a_npc_passer2/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_passer2/%.d @echo [346] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M346_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M346_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M346_D_FILES := $(M346_O_FILES:.o=.d) +$(M346_D_FILES): +include $(wildcard $(M346_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_post/Makefile b/rel/d/a/npc/d_a_npc_post/Makefile index 55be014b815..4e7dc9b7af1 100644 --- a/rel/d/a/npc/d_a_npc_post/Makefile +++ b/rel/d/a/npc/d_a_npc_post/Makefile @@ -40,10 +40,17 @@ $(M347_TARGET): $(M347_O_FILES) $(M347_LIBS) @python3 tools/lcf.py rel 347 --output $(M347_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M347_LDFLAGS) -o $(M347_TARGET) @build/M347_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_post/%.o: rel/d/a/npc/d_a_npc_post/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_post/%.o: rel/d/a/npc/d_a_npc_post/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_post/%.d @echo [347] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M347_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M347_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M347_D_FILES := $(M347_O_FILES:.o=.d) +$(M347_D_FILES): +include $(wildcard $(M347_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_pouya/Makefile b/rel/d/a/npc/d_a_npc_pouya/Makefile index 355803f956b..f988efdfc69 100644 --- a/rel/d/a/npc/d_a_npc_pouya/Makefile +++ b/rel/d/a/npc/d_a_npc_pouya/Makefile @@ -40,10 +40,17 @@ $(M348_TARGET): $(M348_O_FILES) $(M348_LIBS) @python3 tools/lcf.py rel 348 --output $(M348_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M348_LDFLAGS) -o $(M348_TARGET) @build/M348_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_pouya/%.o: rel/d/a/npc/d_a_npc_pouya/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_pouya/%.o: rel/d/a/npc/d_a_npc_pouya/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_pouya/%.d @echo [348] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M348_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M348_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M348_D_FILES := $(M348_O_FILES:.o=.d) +$(M348_D_FILES): +include $(wildcard $(M348_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_prayer/Makefile b/rel/d/a/npc/d_a_npc_prayer/Makefile index a49411a153d..f9f1ae59cde 100644 --- a/rel/d/a/npc/d_a_npc_prayer/Makefile +++ b/rel/d/a/npc/d_a_npc_prayer/Makefile @@ -40,10 +40,17 @@ $(M349_TARGET): $(M349_O_FILES) $(M349_LIBS) @python3 tools/lcf.py rel 349 --output $(M349_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M349_LDFLAGS) -o $(M349_TARGET) @build/M349_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_prayer/%.o: rel/d/a/npc/d_a_npc_prayer/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_prayer/%.o: rel/d/a/npc/d_a_npc_prayer/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_prayer/%.d @echo [349] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M349_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M349_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M349_D_FILES := $(M349_O_FILES:.o=.d) +$(M349_D_FILES): +include $(wildcard $(M349_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_raca/Makefile b/rel/d/a/npc/d_a_npc_raca/Makefile index 133397cdfdd..db34e21e8fb 100644 --- a/rel/d/a/npc/d_a_npc_raca/Makefile +++ b/rel/d/a/npc/d_a_npc_raca/Makefile @@ -40,10 +40,17 @@ $(M350_TARGET): $(M350_O_FILES) $(M350_LIBS) @python3 tools/lcf.py rel 350 --output $(M350_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M350_LDFLAGS) -o $(M350_TARGET) @build/M350_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_raca/%.o: rel/d/a/npc/d_a_npc_raca/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_raca/%.o: rel/d/a/npc/d_a_npc_raca/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_raca/%.d @echo [350] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M350_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M350_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M350_D_FILES := $(M350_O_FILES:.o=.d) +$(M350_D_FILES): +include $(wildcard $(M350_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_rafrel/Makefile b/rel/d/a/npc/d_a_npc_rafrel/Makefile index ac5b4939cea..d95c0710067 100644 --- a/rel/d/a/npc/d_a_npc_rafrel/Makefile +++ b/rel/d/a/npc/d_a_npc_rafrel/Makefile @@ -40,10 +40,17 @@ $(M351_TARGET): $(M351_O_FILES) $(M351_LIBS) @python3 tools/lcf.py rel 351 --output $(M351_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M351_LDFLAGS) -o $(M351_TARGET) @build/M351_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_rafrel/%.o: rel/d/a/npc/d_a_npc_rafrel/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_rafrel/%.o: rel/d/a/npc/d_a_npc_rafrel/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_rafrel/%.d @echo [351] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M351_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M351_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M351_D_FILES := $(M351_O_FILES:.o=.d) +$(M351_D_FILES): +include $(wildcard $(M351_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_saru/Makefile b/rel/d/a/npc/d_a_npc_saru/Makefile index 200d45da472..b66ddaac49d 100644 --- a/rel/d/a/npc/d_a_npc_saru/Makefile +++ b/rel/d/a/npc/d_a_npc_saru/Makefile @@ -40,10 +40,17 @@ $(M352_TARGET): $(M352_O_FILES) $(M352_LIBS) @python3 tools/lcf.py rel 352 --output $(M352_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M352_LDFLAGS) -o $(M352_TARGET) @build/M352_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_saru/%.o: rel/d/a/npc/d_a_npc_saru/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_saru/%.o: rel/d/a/npc/d_a_npc_saru/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_saru/%.d @echo [352] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M352_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M352_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M352_D_FILES := $(M352_O_FILES:.o=.d) +$(M352_D_FILES): +include $(wildcard $(M352_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_seib/Makefile b/rel/d/a/npc/d_a_npc_seib/Makefile index 99a59e0b2e3..bfce8ae1fd3 100644 --- a/rel/d/a/npc/d_a_npc_seib/Makefile +++ b/rel/d/a/npc/d_a_npc_seib/Makefile @@ -40,10 +40,17 @@ $(M353_TARGET): $(M353_O_FILES) $(M353_LIBS) @python3 tools/lcf.py rel 353 --output $(M353_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M353_LDFLAGS) -o $(M353_TARGET) @build/M353_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_seib/%.o: rel/d/a/npc/d_a_npc_seib/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_seib/%.o: rel/d/a/npc/d_a_npc_seib/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_seib/%.d @echo [353] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M353_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M353_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M353_D_FILES := $(M353_O_FILES:.o=.d) +$(M353_D_FILES): +include $(wildcard $(M353_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_seic/Makefile b/rel/d/a/npc/d_a_npc_seic/Makefile index 90599637701..66666dcde45 100644 --- a/rel/d/a/npc/d_a_npc_seic/Makefile +++ b/rel/d/a/npc/d_a_npc_seic/Makefile @@ -40,10 +40,17 @@ $(M354_TARGET): $(M354_O_FILES) $(M354_LIBS) @python3 tools/lcf.py rel 354 --output $(M354_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M354_LDFLAGS) -o $(M354_TARGET) @build/M354_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_seic/%.o: rel/d/a/npc/d_a_npc_seic/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_seic/%.o: rel/d/a/npc/d_a_npc_seic/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_seic/%.d @echo [354] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M354_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M354_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M354_D_FILES := $(M354_O_FILES:.o=.d) +$(M354_D_FILES): +include $(wildcard $(M354_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_seid/Makefile b/rel/d/a/npc/d_a_npc_seid/Makefile index 3635778c02f..900dbe44377 100644 --- a/rel/d/a/npc/d_a_npc_seid/Makefile +++ b/rel/d/a/npc/d_a_npc_seid/Makefile @@ -40,10 +40,17 @@ $(M355_TARGET): $(M355_O_FILES) $(M355_LIBS) @python3 tools/lcf.py rel 355 --output $(M355_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M355_LDFLAGS) -o $(M355_TARGET) @build/M355_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_seid/%.o: rel/d/a/npc/d_a_npc_seid/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_seid/%.o: rel/d/a/npc/d_a_npc_seid/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_seid/%.d @echo [355] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M355_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M355_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M355_D_FILES := $(M355_O_FILES:.o=.d) +$(M355_D_FILES): +include $(wildcard $(M355_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_seira/Makefile b/rel/d/a/npc/d_a_npc_seira/Makefile index cdad83c88c1..8ef44701afd 100644 --- a/rel/d/a/npc/d_a_npc_seira/Makefile +++ b/rel/d/a/npc/d_a_npc_seira/Makefile @@ -40,10 +40,17 @@ $(M356_TARGET): $(M356_O_FILES) $(M356_LIBS) @python3 tools/lcf.py rel 356 --output $(M356_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M356_LDFLAGS) -o $(M356_TARGET) @build/M356_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_seira/%.o: rel/d/a/npc/d_a_npc_seira/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_seira/%.o: rel/d/a/npc/d_a_npc_seira/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_seira/%.d @echo [356] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M356_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M356_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M356_D_FILES := $(M356_O_FILES:.o=.d) +$(M356_D_FILES): +include $(wildcard $(M356_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_seira2/Makefile b/rel/d/a/npc/d_a_npc_seira2/Makefile index 8b5b2d8d0a6..7ba68a081d3 100644 --- a/rel/d/a/npc/d_a_npc_seira2/Makefile +++ b/rel/d/a/npc/d_a_npc_seira2/Makefile @@ -40,10 +40,17 @@ $(M357_TARGET): $(M357_O_FILES) $(M357_LIBS) @python3 tools/lcf.py rel 357 --output $(M357_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M357_LDFLAGS) -o $(M357_TARGET) @build/M357_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_seira2/%.o: rel/d/a/npc/d_a_npc_seira2/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_seira2/%.o: rel/d/a/npc/d_a_npc_seira2/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_seira2/%.d @echo [357] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M357_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M357_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M357_D_FILES := $(M357_O_FILES:.o=.d) +$(M357_D_FILES): +include $(wildcard $(M357_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_seirei/Makefile b/rel/d/a/npc/d_a_npc_seirei/Makefile index 0acde178bd4..f8fc4bd359a 100644 --- a/rel/d/a/npc/d_a_npc_seirei/Makefile +++ b/rel/d/a/npc/d_a_npc_seirei/Makefile @@ -40,10 +40,17 @@ $(M358_TARGET): $(M358_O_FILES) $(M358_LIBS) @python3 tools/lcf.py rel 358 --output $(M358_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M358_LDFLAGS) -o $(M358_TARGET) @build/M358_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_seirei/%.o: rel/d/a/npc/d_a_npc_seirei/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_seirei/%.o: rel/d/a/npc/d_a_npc_seirei/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_seirei/%.d @echo [358] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M358_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M358_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M358_D_FILES := $(M358_O_FILES:.o=.d) +$(M358_D_FILES): +include $(wildcard $(M358_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_shad/Makefile b/rel/d/a/npc/d_a_npc_shad/Makefile index 884f39a5300..4d4e8400cc6 100644 --- a/rel/d/a/npc/d_a_npc_shad/Makefile +++ b/rel/d/a/npc/d_a_npc_shad/Makefile @@ -40,10 +40,17 @@ $(M359_TARGET): $(M359_O_FILES) $(M359_LIBS) @python3 tools/lcf.py rel 359 --output $(M359_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M359_LDFLAGS) -o $(M359_TARGET) @build/M359_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_shad/%.o: rel/d/a/npc/d_a_npc_shad/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_shad/%.o: rel/d/a/npc/d_a_npc_shad/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shad/%.d @echo [359] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M359_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M359_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M359_D_FILES := $(M359_O_FILES:.o=.d) +$(M359_D_FILES): +include $(wildcard $(M359_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_shaman/Makefile b/rel/d/a/npc/d_a_npc_shaman/Makefile index 8a59d9bd35a..02fc3930fc4 100644 --- a/rel/d/a/npc/d_a_npc_shaman/Makefile +++ b/rel/d/a/npc/d_a_npc_shaman/Makefile @@ -40,10 +40,17 @@ $(M360_TARGET): $(M360_O_FILES) $(M360_LIBS) @python3 tools/lcf.py rel 360 --output $(M360_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M360_LDFLAGS) -o $(M360_TARGET) @build/M360_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_shaman/%.o: rel/d/a/npc/d_a_npc_shaman/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_shaman/%.o: rel/d/a/npc/d_a_npc_shaman/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shaman/%.d @echo [360] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M360_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M360_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M360_D_FILES := $(M360_O_FILES:.o=.d) +$(M360_D_FILES): +include $(wildcard $(M360_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_shoe/Makefile b/rel/d/a/npc/d_a_npc_shoe/Makefile index 21dda020b36..a4bde75856c 100644 --- a/rel/d/a/npc/d_a_npc_shoe/Makefile +++ b/rel/d/a/npc/d_a_npc_shoe/Makefile @@ -40,10 +40,17 @@ $(M361_TARGET): $(M361_O_FILES) $(M361_LIBS) @python3 tools/lcf.py rel 361 --output $(M361_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M361_LDFLAGS) -o $(M361_TARGET) @build/M361_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_shoe/%.o: rel/d/a/npc/d_a_npc_shoe/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_shoe/%.o: rel/d/a/npc/d_a_npc_shoe/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shoe/%.d @echo [361] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M361_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M361_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M361_D_FILES := $(M361_O_FILES:.o=.d) +$(M361_D_FILES): +include $(wildcard $(M361_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_shop0/Makefile b/rel/d/a/npc/d_a_npc_shop0/Makefile index 0a20171a10a..d5bfdabf61a 100644 --- a/rel/d/a/npc/d_a_npc_shop0/Makefile +++ b/rel/d/a/npc/d_a_npc_shop0/Makefile @@ -38,10 +38,17 @@ $(M362_TARGET): $(M362_O_FILES) $(M362_LIBS) @python3 tools/lcf.py rel 362 --output $(M362_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M362_LDFLAGS) -o $(M362_TARGET) @build/M362_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_shop0/%.o: rel/d/a/npc/d_a_npc_shop0/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_shop0/%.o: rel/d/a/npc/d_a_npc_shop0/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shop0/%.d @echo [362] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M362_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M362_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M362_D_FILES := $(M362_O_FILES:.o=.d) +$(M362_D_FILES): +include $(wildcard $(M362_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_shop_maro/Makefile b/rel/d/a/npc/d_a_npc_shop_maro/Makefile index 2638e4c1080..d4743683e46 100644 --- a/rel/d/a/npc/d_a_npc_shop_maro/Makefile +++ b/rel/d/a/npc/d_a_npc_shop_maro/Makefile @@ -38,10 +38,17 @@ $(M363_TARGET): $(M363_O_FILES) $(M363_LIBS) @python3 tools/lcf.py rel 363 --output $(M363_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M363_LDFLAGS) -o $(M363_TARGET) @build/M363_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_shop_maro/%.o: rel/d/a/npc/d_a_npc_shop_maro/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_shop_maro/%.o: rel/d/a/npc/d_a_npc_shop_maro/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shop_maro/%.d @echo [363] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M363_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M363_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M363_D_FILES := $(M363_O_FILES:.o=.d) +$(M363_D_FILES): +include $(wildcard $(M363_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_sola/Makefile b/rel/d/a/npc/d_a_npc_sola/Makefile index d6650c37dba..05ede7590f4 100644 --- a/rel/d/a/npc/d_a_npc_sola/Makefile +++ b/rel/d/a/npc/d_a_npc_sola/Makefile @@ -40,10 +40,17 @@ $(M364_TARGET): $(M364_O_FILES) $(M364_LIBS) @python3 tools/lcf.py rel 364 --output $(M364_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M364_LDFLAGS) -o $(M364_TARGET) @build/M364_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_sola/%.o: rel/d/a/npc/d_a_npc_sola/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_sola/%.o: rel/d/a/npc/d_a_npc_sola/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_sola/%.d @echo [364] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M364_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M364_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M364_D_FILES := $(M364_O_FILES:.o=.d) +$(M364_D_FILES): +include $(wildcard $(M364_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_soldierA/Makefile b/rel/d/a/npc/d_a_npc_soldierA/Makefile index e76e3e4f664..6f6560cea89 100644 --- a/rel/d/a/npc/d_a_npc_soldierA/Makefile +++ b/rel/d/a/npc/d_a_npc_soldierA/Makefile @@ -40,10 +40,17 @@ $(M365_TARGET): $(M365_O_FILES) $(M365_LIBS) @python3 tools/lcf.py rel 365 --output $(M365_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M365_LDFLAGS) -o $(M365_TARGET) @build/M365_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_soldierA/%.o: rel/d/a/npc/d_a_npc_soldierA/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_soldierA/%.o: rel/d/a/npc/d_a_npc_soldierA/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_soldierA/%.d @echo [365] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M365_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M365_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M365_D_FILES := $(M365_O_FILES:.o=.d) +$(M365_D_FILES): +include $(wildcard $(M365_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_soldierB/Makefile b/rel/d/a/npc/d_a_npc_soldierB/Makefile index ba7e11ed99c..78373a07059 100644 --- a/rel/d/a/npc/d_a_npc_soldierB/Makefile +++ b/rel/d/a/npc/d_a_npc_soldierB/Makefile @@ -40,10 +40,17 @@ $(M366_TARGET): $(M366_O_FILES) $(M366_LIBS) @python3 tools/lcf.py rel 366 --output $(M366_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M366_LDFLAGS) -o $(M366_TARGET) @build/M366_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_soldierB/%.o: rel/d/a/npc/d_a_npc_soldierB/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_soldierB/%.o: rel/d/a/npc/d_a_npc_soldierB/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_soldierB/%.d @echo [366] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M366_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M366_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M366_D_FILES := $(M366_O_FILES:.o=.d) +$(M366_D_FILES): +include $(wildcard $(M366_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_sq/Makefile b/rel/d/a/npc/d_a_npc_sq/Makefile index 51548792878..74e8d068308 100644 --- a/rel/d/a/npc/d_a_npc_sq/Makefile +++ b/rel/d/a/npc/d_a_npc_sq/Makefile @@ -40,10 +40,17 @@ $(M367_TARGET): $(M367_O_FILES) $(M367_LIBS) @python3 tools/lcf.py rel 367 --output $(M367_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M367_LDFLAGS) -o $(M367_TARGET) @build/M367_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_sq/%.o: rel/d/a/npc/d_a_npc_sq/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_sq/%.o: rel/d/a/npc/d_a_npc_sq/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_sq/%.d @echo [367] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M367_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M367_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M367_D_FILES := $(M367_O_FILES:.o=.d) +$(M367_D_FILES): +include $(wildcard $(M367_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_taro/Makefile b/rel/d/a/npc/d_a_npc_taro/Makefile index a98db32257c..d00b53ac939 100644 --- a/rel/d/a/npc/d_a_npc_taro/Makefile +++ b/rel/d/a/npc/d_a_npc_taro/Makefile @@ -40,10 +40,17 @@ $(M87_TARGET): $(M87_O_FILES) $(M87_LIBS) @python3 tools/lcf.py rel 87 --output $(M87_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M87_LDFLAGS) -o $(M87_TARGET) @build/M87_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_taro/%.o: rel/d/a/npc/d_a_npc_taro/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_taro/%.o: rel/d/a/npc/d_a_npc_taro/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_taro/%.d @echo [ 87] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M87_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M87_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M87_D_FILES := $(M87_O_FILES:.o=.d) +$(M87_D_FILES): +include $(wildcard $(M87_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_the/Makefile b/rel/d/a/npc/d_a_npc_the/Makefile index 45b290abb31..de0fbfac4ae 100644 --- a/rel/d/a/npc/d_a_npc_the/Makefile +++ b/rel/d/a/npc/d_a_npc_the/Makefile @@ -40,10 +40,17 @@ $(M368_TARGET): $(M368_O_FILES) $(M368_LIBS) @python3 tools/lcf.py rel 368 --output $(M368_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M368_LDFLAGS) -o $(M368_TARGET) @build/M368_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_the/%.o: rel/d/a/npc/d_a_npc_the/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_the/%.o: rel/d/a/npc/d_a_npc_the/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_the/%.d @echo [368] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M368_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M368_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M368_D_FILES := $(M368_O_FILES:.o=.d) +$(M368_D_FILES): +include $(wildcard $(M368_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_theB/Makefile b/rel/d/a/npc/d_a_npc_theB/Makefile index e5889398722..64d569f2797 100644 --- a/rel/d/a/npc/d_a_npc_theB/Makefile +++ b/rel/d/a/npc/d_a_npc_theB/Makefile @@ -40,10 +40,17 @@ $(M369_TARGET): $(M369_O_FILES) $(M369_LIBS) @python3 tools/lcf.py rel 369 --output $(M369_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M369_LDFLAGS) -o $(M369_TARGET) @build/M369_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_theB/%.o: rel/d/a/npc/d_a_npc_theB/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_theB/%.o: rel/d/a/npc/d_a_npc_theB/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_theB/%.d @echo [369] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M369_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M369_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M369_D_FILES := $(M369_O_FILES:.o=.d) +$(M369_D_FILES): +include $(wildcard $(M369_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_tk/Makefile b/rel/d/a/npc/d_a_npc_tk/Makefile index f24a6dcb098..f3ecff88d2b 100644 --- a/rel/d/a/npc/d_a_npc_tk/Makefile +++ b/rel/d/a/npc/d_a_npc_tk/Makefile @@ -40,10 +40,17 @@ $(M370_TARGET): $(M370_O_FILES) $(M370_LIBS) @python3 tools/lcf.py rel 370 --output $(M370_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M370_LDFLAGS) -o $(M370_TARGET) @build/M370_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tk/%.o: rel/d/a/npc/d_a_npc_tk/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tk/%.o: rel/d/a/npc/d_a_npc_tk/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tk/%.d @echo [370] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M370_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M370_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M370_D_FILES := $(M370_O_FILES:.o=.d) +$(M370_D_FILES): +include $(wildcard $(M370_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_tkc/Makefile b/rel/d/a/npc/d_a_npc_tkc/Makefile index 0478f0b7cbe..de2d0c91d23 100644 --- a/rel/d/a/npc/d_a_npc_tkc/Makefile +++ b/rel/d/a/npc/d_a_npc_tkc/Makefile @@ -40,10 +40,17 @@ $(M371_TARGET): $(M371_O_FILES) $(M371_LIBS) @python3 tools/lcf.py rel 371 --output $(M371_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M371_LDFLAGS) -o $(M371_TARGET) @build/M371_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkc/%.o: rel/d/a/npc/d_a_npc_tkc/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkc/%.o: rel/d/a/npc/d_a_npc_tkc/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkc/%.d @echo [371] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M371_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M371_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M371_D_FILES := $(M371_O_FILES:.o=.d) +$(M371_D_FILES): +include $(wildcard $(M371_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_tkj/Makefile b/rel/d/a/npc/d_a_npc_tkj/Makefile index e501048c7f8..01e7102f474 100644 --- a/rel/d/a/npc/d_a_npc_tkj/Makefile +++ b/rel/d/a/npc/d_a_npc_tkj/Makefile @@ -40,10 +40,17 @@ $(M88_TARGET): $(M88_O_FILES) $(M88_LIBS) @python3 tools/lcf.py rel 88 --output $(M88_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M88_LDFLAGS) -o $(M88_TARGET) @build/M88_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj/%.o: rel/d/a/npc/d_a_npc_tkj/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj/%.o: rel/d/a/npc/d_a_npc_tkj/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj/%.d @echo [ 88] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M88_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M88_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M88_D_FILES := $(M88_O_FILES:.o=.d) +$(M88_D_FILES): +include $(wildcard $(M88_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_tkj2/Makefile b/rel/d/a/npc/d_a_npc_tkj2/Makefile index 97069e45dd4..c1b0a5d7e1f 100644 --- a/rel/d/a/npc/d_a_npc_tkj2/Makefile +++ b/rel/d/a/npc/d_a_npc_tkj2/Makefile @@ -40,10 +40,17 @@ $(M372_TARGET): $(M372_O_FILES) $(M372_LIBS) @python3 tools/lcf.py rel 372 --output $(M372_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M372_LDFLAGS) -o $(M372_TARGET) @build/M372_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj2/%.o: rel/d/a/npc/d_a_npc_tkj2/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj2/%.o: rel/d/a/npc/d_a_npc_tkj2/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj2/%.d @echo [372] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M372_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M372_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M372_D_FILES := $(M372_O_FILES:.o=.d) +$(M372_D_FILES): +include $(wildcard $(M372_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_tks/Makefile b/rel/d/a/npc/d_a_npc_tks/Makefile index 9f8c24ca6e8..74fbf097564 100644 --- a/rel/d/a/npc/d_a_npc_tks/Makefile +++ b/rel/d/a/npc/d_a_npc_tks/Makefile @@ -40,10 +40,17 @@ $(M373_TARGET): $(M373_O_FILES) $(M373_LIBS) @python3 tools/lcf.py rel 373 --output $(M373_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M373_LDFLAGS) -o $(M373_TARGET) @build/M373_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tks/%.o: rel/d/a/npc/d_a_npc_tks/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tks/%.o: rel/d/a/npc/d_a_npc_tks/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tks/%.d @echo [373] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M373_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M373_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M373_D_FILES := $(M373_O_FILES:.o=.d) +$(M373_D_FILES): +include $(wildcard $(M373_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_toby/Makefile b/rel/d/a/npc/d_a_npc_toby/Makefile index 259f457c3a4..69b5c05acfb 100644 --- a/rel/d/a/npc/d_a_npc_toby/Makefile +++ b/rel/d/a/npc/d_a_npc_toby/Makefile @@ -40,10 +40,17 @@ $(M374_TARGET): $(M374_O_FILES) $(M374_LIBS) @python3 tools/lcf.py rel 374 --output $(M374_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M374_LDFLAGS) -o $(M374_TARGET) @build/M374_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_toby/%.o: rel/d/a/npc/d_a_npc_toby/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_toby/%.o: rel/d/a/npc/d_a_npc_toby/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_toby/%.d @echo [374] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M374_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M374_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M374_D_FILES := $(M374_O_FILES:.o=.d) +$(M374_D_FILES): +include $(wildcard $(M374_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_tr/Makefile b/rel/d/a/npc/d_a_npc_tr/Makefile index 1f0543dcb7f..4338e01cefe 100644 --- a/rel/d/a/npc/d_a_npc_tr/Makefile +++ b/rel/d/a/npc/d_a_npc_tr/Makefile @@ -40,10 +40,17 @@ $(M375_TARGET): $(M375_O_FILES) $(M375_LIBS) @python3 tools/lcf.py rel 375 --output $(M375_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M375_LDFLAGS) -o $(M375_TARGET) @build/M375_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tr/%.o: rel/d/a/npc/d_a_npc_tr/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tr/%.o: rel/d/a/npc/d_a_npc_tr/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tr/%.d @echo [375] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M375_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M375_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M375_D_FILES := $(M375_O_FILES:.o=.d) +$(M375_D_FILES): +include $(wildcard $(M375_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_uri/Makefile b/rel/d/a/npc/d_a_npc_uri/Makefile index 64d4908f9d0..bea2f34219e 100644 --- a/rel/d/a/npc/d_a_npc_uri/Makefile +++ b/rel/d/a/npc/d_a_npc_uri/Makefile @@ -40,10 +40,17 @@ $(M376_TARGET): $(M376_O_FILES) $(M376_LIBS) @python3 tools/lcf.py rel 376 --output $(M376_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M376_LDFLAGS) -o $(M376_TARGET) @build/M376_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_uri/%.o: rel/d/a/npc/d_a_npc_uri/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_uri/%.o: rel/d/a/npc/d_a_npc_uri/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_uri/%.d @echo [376] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M376_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M376_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M376_D_FILES := $(M376_O_FILES:.o=.d) +$(M376_D_FILES): +include $(wildcard $(M376_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_worm/Makefile b/rel/d/a/npc/d_a_npc_worm/Makefile index 5b4d7392a65..8cb82a96db3 100644 --- a/rel/d/a/npc/d_a_npc_worm/Makefile +++ b/rel/d/a/npc/d_a_npc_worm/Makefile @@ -38,10 +38,17 @@ $(M377_TARGET): $(M377_O_FILES) $(M377_LIBS) @python3 tools/lcf.py rel 377 --output $(M377_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M377_LDFLAGS) -o $(M377_TARGET) @build/M377_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_worm/%.o: rel/d/a/npc/d_a_npc_worm/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_worm/%.o: rel/d/a/npc/d_a_npc_worm/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_worm/%.d @echo [377] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M377_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M377_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M377_D_FILES := $(M377_O_FILES:.o=.d) +$(M377_D_FILES): +include $(wildcard $(M377_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_wrestler/Makefile b/rel/d/a/npc/d_a_npc_wrestler/Makefile index 42b505ef96b..23be0bb40fa 100644 --- a/rel/d/a/npc/d_a_npc_wrestler/Makefile +++ b/rel/d/a/npc/d_a_npc_wrestler/Makefile @@ -40,10 +40,17 @@ $(M378_TARGET): $(M378_O_FILES) $(M378_LIBS) @python3 tools/lcf.py rel 378 --output $(M378_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M378_LDFLAGS) -o $(M378_TARGET) @build/M378_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_wrestler/%.o: rel/d/a/npc/d_a_npc_wrestler/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_wrestler/%.o: rel/d/a/npc/d_a_npc_wrestler/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_wrestler/%.d @echo [378] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M378_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M378_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M378_D_FILES := $(M378_O_FILES:.o=.d) +$(M378_D_FILES): +include $(wildcard $(M378_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_yamid/Makefile b/rel/d/a/npc/d_a_npc_yamid/Makefile index 9a389460bd5..0d08f5e3b0b 100644 --- a/rel/d/a/npc/d_a_npc_yamid/Makefile +++ b/rel/d/a/npc/d_a_npc_yamid/Makefile @@ -40,10 +40,17 @@ $(M379_TARGET): $(M379_O_FILES) $(M379_LIBS) @python3 tools/lcf.py rel 379 --output $(M379_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M379_LDFLAGS) -o $(M379_TARGET) @build/M379_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamid/%.o: rel/d/a/npc/d_a_npc_yamid/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamid/%.o: rel/d/a/npc/d_a_npc_yamid/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamid/%.d @echo [379] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M379_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M379_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M379_D_FILES := $(M379_O_FILES:.o=.d) +$(M379_D_FILES): +include $(wildcard $(M379_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_yamis/Makefile b/rel/d/a/npc/d_a_npc_yamis/Makefile index 5045b57a4c7..18ccaf7d158 100644 --- a/rel/d/a/npc/d_a_npc_yamis/Makefile +++ b/rel/d/a/npc/d_a_npc_yamis/Makefile @@ -40,10 +40,17 @@ $(M380_TARGET): $(M380_O_FILES) $(M380_LIBS) @python3 tools/lcf.py rel 380 --output $(M380_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M380_LDFLAGS) -o $(M380_TARGET) @build/M380_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamis/%.o: rel/d/a/npc/d_a_npc_yamis/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamis/%.o: rel/d/a/npc/d_a_npc_yamis/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamis/%.d @echo [380] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M380_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M380_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M380_D_FILES := $(M380_O_FILES:.o=.d) +$(M380_D_FILES): +include $(wildcard $(M380_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_yamit/Makefile b/rel/d/a/npc/d_a_npc_yamit/Makefile index 5d231931eb2..f6404589eea 100644 --- a/rel/d/a/npc/d_a_npc_yamit/Makefile +++ b/rel/d/a/npc/d_a_npc_yamit/Makefile @@ -40,10 +40,17 @@ $(M381_TARGET): $(M381_O_FILES) $(M381_LIBS) @python3 tools/lcf.py rel 381 --output $(M381_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M381_LDFLAGS) -o $(M381_TARGET) @build/M381_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamit/%.o: rel/d/a/npc/d_a_npc_yamit/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamit/%.o: rel/d/a/npc/d_a_npc_yamit/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamit/%.d @echo [381] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M381_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M381_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M381_D_FILES := $(M381_O_FILES:.o=.d) +$(M381_D_FILES): +include $(wildcard $(M381_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_yelia/Makefile b/rel/d/a/npc/d_a_npc_yelia/Makefile index 153b452679c..7334c36b498 100644 --- a/rel/d/a/npc/d_a_npc_yelia/Makefile +++ b/rel/d/a/npc/d_a_npc_yelia/Makefile @@ -40,10 +40,17 @@ $(M382_TARGET): $(M382_O_FILES) $(M382_LIBS) @python3 tools/lcf.py rel 382 --output $(M382_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M382_LDFLAGS) -o $(M382_TARGET) @build/M382_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_yelia/%.o: rel/d/a/npc/d_a_npc_yelia/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_yelia/%.o: rel/d/a/npc/d_a_npc_yelia/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yelia/%.d @echo [382] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M382_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M382_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M382_D_FILES := $(M382_O_FILES:.o=.d) +$(M382_D_FILES): +include $(wildcard $(M382_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_ykm/Makefile b/rel/d/a/npc/d_a_npc_ykm/Makefile index d73749a4b68..dfecb513259 100644 --- a/rel/d/a/npc/d_a_npc_ykm/Makefile +++ b/rel/d/a/npc/d_a_npc_ykm/Makefile @@ -40,10 +40,17 @@ $(M383_TARGET): $(M383_O_FILES) $(M383_LIBS) @python3 tools/lcf.py rel 383 --output $(M383_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M383_LDFLAGS) -o $(M383_TARGET) @build/M383_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ykm/%.o: rel/d/a/npc/d_a_npc_ykm/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ykm/%.o: rel/d/a/npc/d_a_npc_ykm/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ykm/%.d @echo [383] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M383_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M383_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M383_D_FILES := $(M383_O_FILES:.o=.d) +$(M383_D_FILES): +include $(wildcard $(M383_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_ykw/Makefile b/rel/d/a/npc/d_a_npc_ykw/Makefile index 206e002126b..c74d0297db8 100644 --- a/rel/d/a/npc/d_a_npc_ykw/Makefile +++ b/rel/d/a/npc/d_a_npc_ykw/Makefile @@ -40,10 +40,17 @@ $(M384_TARGET): $(M384_O_FILES) $(M384_LIBS) @python3 tools/lcf.py rel 384 --output $(M384_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M384_LDFLAGS) -o $(M384_TARGET) @build/M384_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ykw/%.o: rel/d/a/npc/d_a_npc_ykw/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_ykw/%.o: rel/d/a/npc/d_a_npc_ykw/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ykw/%.d @echo [384] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M384_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M384_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M384_D_FILES := $(M384_O_FILES:.o=.d) +$(M384_D_FILES): +include $(wildcard $(M384_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_zanb/Makefile b/rel/d/a/npc/d_a_npc_zanb/Makefile index 7c0403a2ed9..7d1830318bb 100644 --- a/rel/d/a/npc/d_a_npc_zanb/Makefile +++ b/rel/d/a/npc/d_a_npc_zanb/Makefile @@ -40,10 +40,17 @@ $(M385_TARGET): $(M385_O_FILES) $(M385_LIBS) @python3 tools/lcf.py rel 385 --output $(M385_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M385_LDFLAGS) -o $(M385_TARGET) @build/M385_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zanb/%.o: rel/d/a/npc/d_a_npc_zanb/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zanb/%.o: rel/d/a/npc/d_a_npc_zanb/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zanb/%.d @echo [385] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M385_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M385_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M385_D_FILES := $(M385_O_FILES:.o=.d) +$(M385_D_FILES): +include $(wildcard $(M385_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_zant/Makefile b/rel/d/a/npc/d_a_npc_zant/Makefile index cffb5855313..3bc83143ed0 100644 --- a/rel/d/a/npc/d_a_npc_zant/Makefile +++ b/rel/d/a/npc/d_a_npc_zant/Makefile @@ -40,10 +40,17 @@ $(M386_TARGET): $(M386_O_FILES) $(M386_LIBS) @python3 tools/lcf.py rel 386 --output $(M386_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M386_LDFLAGS) -o $(M386_TARGET) @build/M386_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zant/%.o: rel/d/a/npc/d_a_npc_zant/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zant/%.o: rel/d/a/npc/d_a_npc_zant/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zant/%.d @echo [386] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M386_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M386_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M386_D_FILES := $(M386_O_FILES:.o=.d) +$(M386_D_FILES): +include $(wildcard $(M386_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_zelR/Makefile b/rel/d/a/npc/d_a_npc_zelR/Makefile index d766e238a0c..3ab872c64f0 100644 --- a/rel/d/a/npc/d_a_npc_zelR/Makefile +++ b/rel/d/a/npc/d_a_npc_zelR/Makefile @@ -40,10 +40,17 @@ $(M387_TARGET): $(M387_O_FILES) $(M387_LIBS) @python3 tools/lcf.py rel 387 --output $(M387_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M387_LDFLAGS) -o $(M387_TARGET) @build/M387_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zelR/%.o: rel/d/a/npc/d_a_npc_zelR/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zelR/%.o: rel/d/a/npc/d_a_npc_zelR/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zelR/%.d @echo [387] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M387_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M387_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M387_D_FILES := $(M387_O_FILES:.o=.d) +$(M387_D_FILES): +include $(wildcard $(M387_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_zelRo/Makefile b/rel/d/a/npc/d_a_npc_zelRo/Makefile index 0f8d367b3da..ec34fb9649e 100644 --- a/rel/d/a/npc/d_a_npc_zelRo/Makefile +++ b/rel/d/a/npc/d_a_npc_zelRo/Makefile @@ -40,10 +40,17 @@ $(M388_TARGET): $(M388_O_FILES) $(M388_LIBS) @python3 tools/lcf.py rel 388 --output $(M388_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M388_LDFLAGS) -o $(M388_TARGET) @build/M388_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zelRo/%.o: rel/d/a/npc/d_a_npc_zelRo/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zelRo/%.o: rel/d/a/npc/d_a_npc_zelRo/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zelRo/%.d @echo [388] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M388_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M388_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M388_D_FILES := $(M388_O_FILES:.o=.d) +$(M388_D_FILES): +include $(wildcard $(M388_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_zelda/Makefile b/rel/d/a/npc/d_a_npc_zelda/Makefile index 24ff93f24c5..7d746c70060 100644 --- a/rel/d/a/npc/d_a_npc_zelda/Makefile +++ b/rel/d/a/npc/d_a_npc_zelda/Makefile @@ -40,10 +40,17 @@ $(M389_TARGET): $(M389_O_FILES) $(M389_LIBS) @python3 tools/lcf.py rel 389 --output $(M389_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M389_LDFLAGS) -o $(M389_TARGET) @build/M389_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zelda/%.o: rel/d/a/npc/d_a_npc_zelda/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zelda/%.o: rel/d/a/npc/d_a_npc_zelda/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zelda/%.d @echo [389] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M389_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M389_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M389_D_FILES := $(M389_O_FILES:.o=.d) +$(M389_D_FILES): +include $(wildcard $(M389_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_zra/Makefile b/rel/d/a/npc/d_a_npc_zra/Makefile index 1878f5bae9b..9102293dbf5 100644 --- a/rel/d/a/npc/d_a_npc_zra/Makefile +++ b/rel/d/a/npc/d_a_npc_zra/Makefile @@ -40,10 +40,17 @@ $(M390_TARGET): $(M390_O_FILES) $(M390_LIBS) @python3 tools/lcf.py rel 390 --output $(M390_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M390_LDFLAGS) -o $(M390_TARGET) @build/M390_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zra/%.o: rel/d/a/npc/d_a_npc_zra/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zra/%.o: rel/d/a/npc/d_a_npc_zra/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zra/%.d @echo [390] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M390_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M390_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M390_D_FILES := $(M390_O_FILES:.o=.d) +$(M390_D_FILES): +include $(wildcard $(M390_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_zrc/Makefile b/rel/d/a/npc/d_a_npc_zrc/Makefile index 56bcf2c4549..c3fcfc117e8 100644 --- a/rel/d/a/npc/d_a_npc_zrc/Makefile +++ b/rel/d/a/npc/d_a_npc_zrc/Makefile @@ -40,10 +40,17 @@ $(M391_TARGET): $(M391_O_FILES) $(M391_LIBS) @python3 tools/lcf.py rel 391 --output $(M391_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M391_LDFLAGS) -o $(M391_TARGET) @build/M391_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zrc/%.o: rel/d/a/npc/d_a_npc_zrc/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zrc/%.o: rel/d/a/npc/d_a_npc_zrc/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zrc/%.d @echo [391] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M391_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M391_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M391_D_FILES := $(M391_O_FILES:.o=.d) +$(M391_D_FILES): +include $(wildcard $(M391_D_FILES)) +endif diff --git a/rel/d/a/npc/d_a_npc_zrz/Makefile b/rel/d/a/npc/d_a_npc_zrz/Makefile index de6a81eb3ca..f558669361e 100644 --- a/rel/d/a/npc/d_a_npc_zrz/Makefile +++ b/rel/d/a/npc/d_a_npc_zrz/Makefile @@ -40,10 +40,17 @@ $(M392_TARGET): $(M392_O_FILES) $(M392_LIBS) @python3 tools/lcf.py rel 392 --output $(M392_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M392_LDFLAGS) -o $(M392_TARGET) @build/M392_ofiles -$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zrz/%.o: rel/d/a/npc/d_a_npc_zrz/%.cpp +$(BUILD_DIR)/rel/d/a/npc/d_a_npc_zrz/%.o: rel/d/a/npc/d_a_npc_zrz/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zrz/%.d @echo [392] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M392_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M392_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M392_D_FILES := $(M392_O_FILES:.o=.d) +$(M392_D_FILES): +include $(wildcard $(M392_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_Lv5Key/Makefile b/rel/d/a/obj/d_a_obj_Lv5Key/Makefile index 61bcbbae2ee..e3985ed1785 100644 --- a/rel/d/a/obj/d_a_obj_Lv5Key/Makefile +++ b/rel/d/a/obj/d_a_obj_Lv5Key/Makefile @@ -38,10 +38,17 @@ $(M393_TARGET): $(M393_O_FILES) $(M393_LIBS) @python3 tools/lcf.py rel 393 --output $(M393_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M393_LDFLAGS) -o $(M393_TARGET) @build/M393_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_Lv5Key/%.o: rel/d/a/obj/d_a_obj_Lv5Key/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_Lv5Key/%.o: rel/d/a/obj/d_a_obj_Lv5Key/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Lv5Key/%.d @echo [393] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M393_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M393_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M393_D_FILES := $(M393_O_FILES:.o=.d) +$(M393_D_FILES): +include $(wildcard $(M393_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_Turara/Makefile b/rel/d/a/obj/d_a_obj_Turara/Makefile index 1e1830a44d4..66df571da36 100644 --- a/rel/d/a/obj/d_a_obj_Turara/Makefile +++ b/rel/d/a/obj/d_a_obj_Turara/Makefile @@ -40,10 +40,17 @@ $(M394_TARGET): $(M394_O_FILES) $(M394_LIBS) @python3 tools/lcf.py rel 394 --output $(M394_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M394_LDFLAGS) -o $(M394_TARGET) @build/M394_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_Turara/%.o: rel/d/a/obj/d_a_obj_Turara/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_Turara/%.o: rel/d/a/obj/d_a_obj_Turara/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Turara/%.d @echo [394] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M394_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M394_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M394_D_FILES := $(M394_O_FILES:.o=.d) +$(M394_D_FILES): +include $(wildcard $(M394_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_TvCdlst/Makefile b/rel/d/a/obj/d_a_obj_TvCdlst/Makefile index 19ae47dd6c9..1b1c386b16f 100644 --- a/rel/d/a/obj/d_a_obj_TvCdlst/Makefile +++ b/rel/d/a/obj/d_a_obj_TvCdlst/Makefile @@ -40,10 +40,17 @@ $(M395_TARGET): $(M395_O_FILES) $(M395_LIBS) @python3 tools/lcf.py rel 395 --output $(M395_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M395_LDFLAGS) -o $(M395_TARGET) @build/M395_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_TvCdlst/%.o: rel/d/a/obj/d_a_obj_TvCdlst/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_TvCdlst/%.o: rel/d/a/obj/d_a_obj_TvCdlst/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_TvCdlst/%.d @echo [395] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M395_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M395_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M395_D_FILES := $(M395_O_FILES:.o=.d) +$(M395_D_FILES): +include $(wildcard $(M395_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_Y_taihou/Makefile b/rel/d/a/obj/d_a_obj_Y_taihou/Makefile index 0d6cd636573..d0ee5c1efc3 100644 --- a/rel/d/a/obj/d_a_obj_Y_taihou/Makefile +++ b/rel/d/a/obj/d_a_obj_Y_taihou/Makefile @@ -40,10 +40,17 @@ $(M396_TARGET): $(M396_O_FILES) $(M396_LIBS) @python3 tools/lcf.py rel 396 --output $(M396_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M396_LDFLAGS) -o $(M396_TARGET) @build/M396_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_Y_taihou/%.o: rel/d/a/obj/d_a_obj_Y_taihou/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_Y_taihou/%.o: rel/d/a/obj/d_a_obj_Y_taihou/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Y_taihou/%.d @echo [396] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M396_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M396_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M396_D_FILES := $(M396_O_FILES:.o=.d) +$(M396_D_FILES): +include $(wildcard $(M396_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_amiShutter/Makefile b/rel/d/a/obj/d_a_obj_amiShutter/Makefile index 1bef70308a4..e43f53dd248 100644 --- a/rel/d/a/obj/d_a_obj_amiShutter/Makefile +++ b/rel/d/a/obj/d_a_obj_amiShutter/Makefile @@ -40,10 +40,17 @@ $(M397_TARGET): $(M397_O_FILES) $(M397_LIBS) @python3 tools/lcf.py rel 397 --output $(M397_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M397_LDFLAGS) -o $(M397_TARGET) @build/M397_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_amiShutter/%.o: rel/d/a/obj/d_a_obj_amiShutter/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_amiShutter/%.o: rel/d/a/obj/d_a_obj_amiShutter/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_amiShutter/%.d @echo [397] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M397_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M397_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M397_D_FILES := $(M397_O_FILES:.o=.d) +$(M397_D_FILES): +include $(wildcard $(M397_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ari/Makefile b/rel/d/a/obj/d_a_obj_ari/Makefile index d7a50b66f5e..61fe7d21489 100644 --- a/rel/d/a/obj/d_a_obj_ari/Makefile +++ b/rel/d/a/obj/d_a_obj_ari/Makefile @@ -40,10 +40,17 @@ $(M398_TARGET): $(M398_O_FILES) $(M398_LIBS) @python3 tools/lcf.py rel 398 --output $(M398_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M398_LDFLAGS) -o $(M398_TARGET) @build/M398_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ari/%.o: rel/d/a/obj/d_a_obj_ari/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ari/%.o: rel/d/a/obj/d_a_obj_ari/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ari/%.d @echo [398] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M398_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M398_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M398_D_FILES := $(M398_O_FILES:.o=.d) +$(M398_D_FILES): +include $(wildcard $(M398_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_automata/Makefile b/rel/d/a/obj/d_a_obj_automata/Makefile index 498c8b29af9..3af9454742d 100644 --- a/rel/d/a/obj/d_a_obj_automata/Makefile +++ b/rel/d/a/obj/d_a_obj_automata/Makefile @@ -40,10 +40,17 @@ $(M399_TARGET): $(M399_O_FILES) $(M399_LIBS) @python3 tools/lcf.py rel 399 --output $(M399_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M399_LDFLAGS) -o $(M399_TARGET) @build/M399_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_automata/%.o: rel/d/a/obj/d_a_obj_automata/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_automata/%.o: rel/d/a/obj/d_a_obj_automata/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_automata/%.d @echo [399] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M399_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M399_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M399_D_FILES := $(M399_O_FILES:.o=.d) +$(M399_D_FILES): +include $(wildcard $(M399_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_avalanche/Makefile b/rel/d/a/obj/d_a_obj_avalanche/Makefile index dc293219616..fac59797031 100644 --- a/rel/d/a/obj/d_a_obj_avalanche/Makefile +++ b/rel/d/a/obj/d_a_obj_avalanche/Makefile @@ -40,10 +40,17 @@ $(M400_TARGET): $(M400_O_FILES) $(M400_LIBS) @python3 tools/lcf.py rel 400 --output $(M400_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M400_LDFLAGS) -o $(M400_TARGET) @build/M400_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_avalanche/%.o: rel/d/a/obj/d_a_obj_avalanche/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_avalanche/%.o: rel/d/a/obj/d_a_obj_avalanche/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_avalanche/%.d @echo [400] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M400_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M400_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M400_D_FILES := $(M400_O_FILES:.o=.d) +$(M400_D_FILES): +include $(wildcard $(M400_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_balloon/Makefile b/rel/d/a/obj/d_a_obj_balloon/Makefile index 6c46039e0d7..ac8f2ca6487 100644 --- a/rel/d/a/obj/d_a_obj_balloon/Makefile +++ b/rel/d/a/obj/d_a_obj_balloon/Makefile @@ -40,10 +40,17 @@ $(M401_TARGET): $(M401_O_FILES) $(M401_LIBS) @python3 tools/lcf.py rel 401 --output $(M401_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M401_LDFLAGS) -o $(M401_TARGET) @build/M401_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_balloon/%.o: rel/d/a/obj/d_a_obj_balloon/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_balloon/%.o: rel/d/a/obj/d_a_obj_balloon/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_balloon/%.d @echo [401] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M401_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M401_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M401_D_FILES := $(M401_O_FILES:.o=.d) +$(M401_D_FILES): +include $(wildcard $(M401_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_barDesk/Makefile b/rel/d/a/obj/d_a_obj_barDesk/Makefile index 86699c2d5eb..c5f758ebca5 100644 --- a/rel/d/a/obj/d_a_obj_barDesk/Makefile +++ b/rel/d/a/obj/d_a_obj_barDesk/Makefile @@ -40,10 +40,17 @@ $(M402_TARGET): $(M402_O_FILES) $(M402_LIBS) @python3 tools/lcf.py rel 402 --output $(M402_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M402_LDFLAGS) -o $(M402_TARGET) @build/M402_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_barDesk/%.o: rel/d/a/obj/d_a_obj_barDesk/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_barDesk/%.o: rel/d/a/obj/d_a_obj_barDesk/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_barDesk/%.d @echo [402] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M402_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M402_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M402_D_FILES := $(M402_O_FILES:.o=.d) +$(M402_D_FILES): +include $(wildcard $(M402_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_batta/Makefile b/rel/d/a/obj/d_a_obj_batta/Makefile index 450a7e201a1..e465e79a41d 100644 --- a/rel/d/a/obj/d_a_obj_batta/Makefile +++ b/rel/d/a/obj/d_a_obj_batta/Makefile @@ -40,10 +40,17 @@ $(M403_TARGET): $(M403_O_FILES) $(M403_LIBS) @python3 tools/lcf.py rel 403 --output $(M403_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M403_LDFLAGS) -o $(M403_TARGET) @build/M403_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_batta/%.o: rel/d/a/obj/d_a_obj_batta/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_batta/%.o: rel/d/a/obj/d_a_obj_batta/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_batta/%.d @echo [403] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M403_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M403_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M403_D_FILES := $(M403_O_FILES:.o=.d) +$(M403_D_FILES): +include $(wildcard $(M403_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bbox/Makefile b/rel/d/a/obj/d_a_obj_bbox/Makefile index d25b29fe739..af4a75f0b5b 100644 --- a/rel/d/a/obj/d_a_obj_bbox/Makefile +++ b/rel/d/a/obj/d_a_obj_bbox/Makefile @@ -38,10 +38,17 @@ $(M404_TARGET): $(M404_O_FILES) $(M404_LIBS) @python3 tools/lcf.py rel 404 --output $(M404_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M404_LDFLAGS) -o $(M404_TARGET) @build/M404_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bbox/%.o: rel/d/a/obj/d_a_obj_bbox/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bbox/%.o: rel/d/a/obj/d_a_obj_bbox/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bbox/%.d @echo [404] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M404_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M404_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M404_D_FILES := $(M404_O_FILES:.o=.d) +$(M404_D_FILES): +include $(wildcard $(M404_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bed/Makefile b/rel/d/a/obj/d_a_obj_bed/Makefile index 9fdc68cb97a..914d020ddbf 100644 --- a/rel/d/a/obj/d_a_obj_bed/Makefile +++ b/rel/d/a/obj/d_a_obj_bed/Makefile @@ -40,10 +40,17 @@ $(M405_TARGET): $(M405_O_FILES) $(M405_LIBS) @python3 tools/lcf.py rel 405 --output $(M405_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M405_LDFLAGS) -o $(M405_TARGET) @build/M405_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bed/%.o: rel/d/a/obj/d_a_obj_bed/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bed/%.o: rel/d/a/obj/d_a_obj_bed/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bed/%.d @echo [405] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M405_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M405_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M405_D_FILES := $(M405_O_FILES:.o=.d) +$(M405_D_FILES): +include $(wildcard $(M405_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bemos/Makefile b/rel/d/a/obj/d_a_obj_bemos/Makefile index 1c9770ec61f..de6259fab89 100644 --- a/rel/d/a/obj/d_a_obj_bemos/Makefile +++ b/rel/d/a/obj/d_a_obj_bemos/Makefile @@ -40,10 +40,17 @@ $(M406_TARGET): $(M406_O_FILES) $(M406_LIBS) @python3 tools/lcf.py rel 406 --output $(M406_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M406_LDFLAGS) -o $(M406_TARGET) @build/M406_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bemos/%.o: rel/d/a/obj/d_a_obj_bemos/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bemos/%.o: rel/d/a/obj/d_a_obj_bemos/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bemos/%.d @echo [406] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M406_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M406_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M406_D_FILES := $(M406_O_FILES:.o=.d) +$(M406_D_FILES): +include $(wildcard $(M406_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bhashi/Makefile b/rel/d/a/obj/d_a_obj_bhashi/Makefile index b4061e8269a..afa7d215ff8 100644 --- a/rel/d/a/obj/d_a_obj_bhashi/Makefile +++ b/rel/d/a/obj/d_a_obj_bhashi/Makefile @@ -38,10 +38,17 @@ $(M89_TARGET): $(M89_O_FILES) $(M89_LIBS) @python3 tools/lcf.py rel 89 --output $(M89_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M89_LDFLAGS) -o $(M89_TARGET) @build/M89_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bhashi/%.o: rel/d/a/obj/d_a_obj_bhashi/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bhashi/%.o: rel/d/a/obj/d_a_obj_bhashi/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bhashi/%.d @echo [ 89] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M89_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M89_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M89_D_FILES := $(M89_O_FILES:.o=.d) +$(M89_D_FILES): +include $(wildcard $(M89_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bhbridge/Makefile b/rel/d/a/obj/d_a_obj_bhbridge/Makefile index bed9ede5b7d..0199216c5fa 100644 --- a/rel/d/a/obj/d_a_obj_bhbridge/Makefile +++ b/rel/d/a/obj/d_a_obj_bhbridge/Makefile @@ -38,10 +38,17 @@ $(M407_TARGET): $(M407_O_FILES) $(M407_LIBS) @python3 tools/lcf.py rel 407 --output $(M407_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M407_LDFLAGS) -o $(M407_TARGET) @build/M407_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bhbridge/%.o: rel/d/a/obj/d_a_obj_bhbridge/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bhbridge/%.o: rel/d/a/obj/d_a_obj_bhbridge/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bhbridge/%.d @echo [407] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M407_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M407_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M407_D_FILES := $(M407_O_FILES:.o=.d) +$(M407_D_FILES): +include $(wildcard $(M407_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bk_leaf/Makefile b/rel/d/a/obj/d_a_obj_bk_leaf/Makefile index ee66dfddb36..bc44009649f 100644 --- a/rel/d/a/obj/d_a_obj_bk_leaf/Makefile +++ b/rel/d/a/obj/d_a_obj_bk_leaf/Makefile @@ -38,10 +38,17 @@ $(M408_TARGET): $(M408_O_FILES) $(M408_LIBS) @python3 tools/lcf.py rel 408 --output $(M408_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M408_LDFLAGS) -o $(M408_TARGET) @build/M408_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bk_leaf/%.o: rel/d/a/obj/d_a_obj_bk_leaf/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bk_leaf/%.o: rel/d/a/obj/d_a_obj_bk_leaf/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bk_leaf/%.d @echo [408] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M408_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M408_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M408_D_FILES := $(M408_O_FILES:.o=.d) +$(M408_D_FILES): +include $(wildcard $(M408_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bkdoor/Makefile b/rel/d/a/obj/d_a_obj_bkdoor/Makefile index e3e31bfadb8..af59aebdf65 100644 --- a/rel/d/a/obj/d_a_obj_bkdoor/Makefile +++ b/rel/d/a/obj/d_a_obj_bkdoor/Makefile @@ -38,10 +38,17 @@ $(M90_TARGET): $(M90_O_FILES) $(M90_LIBS) @python3 tools/lcf.py rel 90 --output $(M90_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M90_LDFLAGS) -o $(M90_TARGET) @build/M90_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bkdoor/%.o: rel/d/a/obj/d_a_obj_bkdoor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bkdoor/%.o: rel/d/a/obj/d_a_obj_bkdoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bkdoor/%.d @echo [ 90] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M90_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M90_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M90_D_FILES := $(M90_O_FILES:.o=.d) +$(M90_D_FILES): +include $(wildcard $(M90_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bky_rock/Makefile b/rel/d/a/obj/d_a_obj_bky_rock/Makefile index 947e7b6a3d3..64a8b51781c 100644 --- a/rel/d/a/obj/d_a_obj_bky_rock/Makefile +++ b/rel/d/a/obj/d_a_obj_bky_rock/Makefile @@ -38,10 +38,17 @@ $(M409_TARGET): $(M409_O_FILES) $(M409_LIBS) @python3 tools/lcf.py rel 409 --output $(M409_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M409_LDFLAGS) -o $(M409_TARGET) @build/M409_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bky_rock/%.o: rel/d/a/obj/d_a_obj_bky_rock/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bky_rock/%.o: rel/d/a/obj/d_a_obj_bky_rock/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bky_rock/%.d @echo [409] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M409_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M409_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M409_D_FILES := $(M409_O_FILES:.o=.d) +$(M409_D_FILES): +include $(wildcard $(M409_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bmWindow/Makefile b/rel/d/a/obj/d_a_obj_bmWindow/Makefile index 8acf507be2b..dbcda7134d5 100644 --- a/rel/d/a/obj/d_a_obj_bmWindow/Makefile +++ b/rel/d/a/obj/d_a_obj_bmWindow/Makefile @@ -40,10 +40,17 @@ $(M410_TARGET): $(M410_O_FILES) $(M410_LIBS) @python3 tools/lcf.py rel 410 --output $(M410_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M410_LDFLAGS) -o $(M410_TARGET) @build/M410_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bmWindow/%.o: rel/d/a/obj/d_a_obj_bmWindow/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bmWindow/%.o: rel/d/a/obj/d_a_obj_bmWindow/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bmWindow/%.d @echo [410] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M410_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M410_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M410_D_FILES := $(M410_O_FILES:.o=.d) +$(M410_D_FILES): +include $(wildcard $(M410_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bmshutter/Makefile b/rel/d/a/obj/d_a_obj_bmshutter/Makefile index fc66ab17a1a..90b8f1993ba 100644 --- a/rel/d/a/obj/d_a_obj_bmshutter/Makefile +++ b/rel/d/a/obj/d_a_obj_bmshutter/Makefile @@ -40,10 +40,17 @@ $(M411_TARGET): $(M411_O_FILES) $(M411_LIBS) @python3 tools/lcf.py rel 411 --output $(M411_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M411_LDFLAGS) -o $(M411_TARGET) @build/M411_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bmshutter/%.o: rel/d/a/obj/d_a_obj_bmshutter/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bmshutter/%.o: rel/d/a/obj/d_a_obj_bmshutter/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bmshutter/%.d @echo [411] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M411_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M411_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M411_D_FILES := $(M411_O_FILES:.o=.d) +$(M411_D_FILES): +include $(wildcard $(M411_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bombf/Makefile b/rel/d/a/obj/d_a_obj_bombf/Makefile index 5296e0f8850..d2be1012d0c 100644 --- a/rel/d/a/obj/d_a_obj_bombf/Makefile +++ b/rel/d/a/obj/d_a_obj_bombf/Makefile @@ -38,10 +38,17 @@ $(M412_TARGET): $(M412_O_FILES) $(M412_LIBS) @python3 tools/lcf.py rel 412 --output $(M412_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M412_LDFLAGS) -o $(M412_TARGET) @build/M412_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bombf/%.o: rel/d/a/obj/d_a_obj_bombf/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bombf/%.o: rel/d/a/obj/d_a_obj_bombf/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bombf/%.d @echo [412] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M412_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M412_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M412_D_FILES := $(M412_O_FILES:.o=.d) +$(M412_D_FILES): +include $(wildcard $(M412_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bosswarp/Makefile b/rel/d/a/obj/d_a_obj_bosswarp/Makefile index e52942e2212..d587c88c933 100644 --- a/rel/d/a/obj/d_a_obj_bosswarp/Makefile +++ b/rel/d/a/obj/d_a_obj_bosswarp/Makefile @@ -40,10 +40,17 @@ $(M91_TARGET): $(M91_O_FILES) $(M91_LIBS) @python3 tools/lcf.py rel 91 --output $(M91_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M91_LDFLAGS) -o $(M91_TARGET) @build/M91_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bosswarp/%.o: rel/d/a/obj/d_a_obj_bosswarp/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bosswarp/%.o: rel/d/a/obj/d_a_obj_bosswarp/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bosswarp/%.d @echo [ 91] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M91_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M91_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M91_D_FILES := $(M91_O_FILES:.o=.d) +$(M91_D_FILES): +include $(wildcard $(M91_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_boumato/Makefile b/rel/d/a/obj/d_a_obj_boumato/Makefile index 5642af07b3e..530dc17c6b2 100644 --- a/rel/d/a/obj/d_a_obj_boumato/Makefile +++ b/rel/d/a/obj/d_a_obj_boumato/Makefile @@ -40,10 +40,17 @@ $(M413_TARGET): $(M413_O_FILES) $(M413_LIBS) @python3 tools/lcf.py rel 413 --output $(M413_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M413_LDFLAGS) -o $(M413_TARGET) @build/M413_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_boumato/%.o: rel/d/a/obj/d_a_obj_boumato/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_boumato/%.o: rel/d/a/obj/d_a_obj_boumato/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_boumato/%.d @echo [413] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M413_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M413_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M413_D_FILES := $(M413_O_FILES:.o=.d) +$(M413_D_FILES): +include $(wildcard $(M413_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_brakeeff/Makefile b/rel/d/a/obj/d_a_obj_brakeeff/Makefile index b3f979729fd..b38a174e88d 100644 --- a/rel/d/a/obj/d_a_obj_brakeeff/Makefile +++ b/rel/d/a/obj/d_a_obj_brakeeff/Makefile @@ -38,10 +38,17 @@ $(M16_TARGET): $(M16_O_FILES) $(M16_LIBS) @python3 tools/lcf.py rel 16 --output $(M16_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M16_LDFLAGS) -o $(M16_TARGET) @build/M16_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_brakeeff/%.o: rel/d/a/obj/d_a_obj_brakeeff/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_brakeeff/%.o: rel/d/a/obj/d_a_obj_brakeeff/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_brakeeff/%.d @echo [ 16] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M16_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M16_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M16_D_FILES := $(M16_O_FILES:.o=.d) +$(M16_D_FILES): +include $(wildcard $(M16_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_brg/Makefile b/rel/d/a/obj/d_a_obj_brg/Makefile index 65468c87484..1bc2ef782ed 100644 --- a/rel/d/a/obj/d_a_obj_brg/Makefile +++ b/rel/d/a/obj/d_a_obj_brg/Makefile @@ -40,10 +40,17 @@ $(M414_TARGET): $(M414_O_FILES) $(M414_LIBS) @python3 tools/lcf.py rel 414 --output $(M414_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M414_LDFLAGS) -o $(M414_TARGET) @build/M414_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_brg/%.o: rel/d/a/obj/d_a_obj_brg/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_brg/%.o: rel/d/a/obj/d_a_obj_brg/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_brg/%.d @echo [414] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M414_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M414_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M414_D_FILES := $(M414_O_FILES:.o=.d) +$(M414_D_FILES): +include $(wildcard $(M414_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bsGate/Makefile b/rel/d/a/obj/d_a_obj_bsGate/Makefile index add4054c52e..d29ecf6f79d 100644 --- a/rel/d/a/obj/d_a_obj_bsGate/Makefile +++ b/rel/d/a/obj/d_a_obj_bsGate/Makefile @@ -40,10 +40,17 @@ $(M415_TARGET): $(M415_O_FILES) $(M415_LIBS) @python3 tools/lcf.py rel 415 --output $(M415_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M415_LDFLAGS) -o $(M415_TARGET) @build/M415_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bsGate/%.o: rel/d/a/obj/d_a_obj_bsGate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bsGate/%.o: rel/d/a/obj/d_a_obj_bsGate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bsGate/%.d @echo [415] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M415_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M415_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M415_D_FILES := $(M415_O_FILES:.o=.d) +$(M415_D_FILES): +include $(wildcard $(M415_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_bubblePilar/Makefile b/rel/d/a/obj/d_a_obj_bubblePilar/Makefile index 09e991b3f24..f600095e656 100644 --- a/rel/d/a/obj/d_a_obj_bubblePilar/Makefile +++ b/rel/d/a/obj/d_a_obj_bubblePilar/Makefile @@ -40,10 +40,17 @@ $(M416_TARGET): $(M416_O_FILES) $(M416_LIBS) @python3 tools/lcf.py rel 416 --output $(M416_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M416_LDFLAGS) -o $(M416_TARGET) @build/M416_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bubblePilar/%.o: rel/d/a/obj/d_a_obj_bubblePilar/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bubblePilar/%.o: rel/d/a/obj/d_a_obj_bubblePilar/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bubblePilar/%.d @echo [416] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M416_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M416_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M416_D_FILES := $(M416_O_FILES:.o=.d) +$(M416_D_FILES): +include $(wildcard $(M416_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_burnbox/Makefile b/rel/d/a/obj/d_a_obj_burnbox/Makefile index 291d10548e0..c720cc21085 100644 --- a/rel/d/a/obj/d_a_obj_burnbox/Makefile +++ b/rel/d/a/obj/d_a_obj_burnbox/Makefile @@ -38,10 +38,17 @@ $(M17_TARGET): $(M17_O_FILES) $(M17_LIBS) @python3 tools/lcf.py rel 17 --output $(M17_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M17_LDFLAGS) -o $(M17_TARGET) @build/M17_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox/%.o: rel/d/a/obj/d_a_obj_burnbox/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox/%.o: rel/d/a/obj/d_a_obj_burnbox/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox/%.d @echo [ 17] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M17_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M17_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M17_D_FILES := $(M17_O_FILES:.o=.d) +$(M17_D_FILES): +include $(wildcard $(M17_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_carry/Makefile b/rel/d/a/obj/d_a_obj_carry/Makefile index 262e8977716..083ab704c4a 100644 --- a/rel/d/a/obj/d_a_obj_carry/Makefile +++ b/rel/d/a/obj/d_a_obj_carry/Makefile @@ -38,10 +38,17 @@ $(M18_TARGET): $(M18_O_FILES) $(M18_LIBS) @python3 tools/lcf.py rel 18 --output $(M18_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M18_LDFLAGS) -o $(M18_TARGET) @build/M18_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_carry/%.o: rel/d/a/obj/d_a_obj_carry/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_carry/%.o: rel/d/a/obj/d_a_obj_carry/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_carry/%.d @echo [ 18] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M18_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M18_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M18_D_FILES := $(M18_O_FILES:.o=.d) +$(M18_D_FILES): +include $(wildcard $(M18_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_catdoor/Makefile b/rel/d/a/obj/d_a_obj_catdoor/Makefile index 66bc29ac40a..79cf7750f25 100644 --- a/rel/d/a/obj/d_a_obj_catdoor/Makefile +++ b/rel/d/a/obj/d_a_obj_catdoor/Makefile @@ -38,10 +38,17 @@ $(M417_TARGET): $(M417_O_FILES) $(M417_LIBS) @python3 tools/lcf.py rel 417 --output $(M417_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M417_LDFLAGS) -o $(M417_TARGET) @build/M417_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_catdoor/%.o: rel/d/a/obj/d_a_obj_catdoor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_catdoor/%.o: rel/d/a/obj/d_a_obj_catdoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_catdoor/%.d @echo [417] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M417_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M417_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M417_D_FILES := $(M417_O_FILES:.o=.d) +$(M417_D_FILES): +include $(wildcard $(M417_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_cb/Makefile b/rel/d/a/obj/d_a_obj_cb/Makefile index 90c1c3a2a99..c5a52577e14 100644 --- a/rel/d/a/obj/d_a_obj_cb/Makefile +++ b/rel/d/a/obj/d_a_obj_cb/Makefile @@ -40,10 +40,17 @@ $(M418_TARGET): $(M418_O_FILES) $(M418_LIBS) @python3 tools/lcf.py rel 418 --output $(M418_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M418_LDFLAGS) -o $(M418_TARGET) @build/M418_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cb/%.o: rel/d/a/obj/d_a_obj_cb/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cb/%.o: rel/d/a/obj/d_a_obj_cb/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cb/%.d @echo [418] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M418_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M418_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M418_D_FILES := $(M418_O_FILES:.o=.d) +$(M418_D_FILES): +include $(wildcard $(M418_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_cblock/Makefile b/rel/d/a/obj/d_a_obj_cblock/Makefile index c7027d70a96..478325bc9f5 100644 --- a/rel/d/a/obj/d_a_obj_cblock/Makefile +++ b/rel/d/a/obj/d_a_obj_cblock/Makefile @@ -40,10 +40,17 @@ $(M419_TARGET): $(M419_O_FILES) $(M419_LIBS) @python3 tools/lcf.py rel 419 --output $(M419_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M419_LDFLAGS) -o $(M419_TARGET) @build/M419_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cblock/%.o: rel/d/a/obj/d_a_obj_cblock/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cblock/%.o: rel/d/a/obj/d_a_obj_cblock/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cblock/%.d @echo [419] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M419_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M419_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M419_D_FILES := $(M419_O_FILES:.o=.d) +$(M419_D_FILES): +include $(wildcard $(M419_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_cboard/Makefile b/rel/d/a/obj/d_a_obj_cboard/Makefile index ddfc7ef0f1b..aa1481fa6a0 100644 --- a/rel/d/a/obj/d_a_obj_cboard/Makefile +++ b/rel/d/a/obj/d_a_obj_cboard/Makefile @@ -38,10 +38,17 @@ $(M92_TARGET): $(M92_O_FILES) $(M92_LIBS) @python3 tools/lcf.py rel 92 --output $(M92_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M92_LDFLAGS) -o $(M92_TARGET) @build/M92_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cboard/%.o: rel/d/a/obj/d_a_obj_cboard/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cboard/%.o: rel/d/a/obj/d_a_obj_cboard/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cboard/%.d @echo [ 92] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M92_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M92_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M92_D_FILES := $(M92_O_FILES:.o=.d) +$(M92_D_FILES): +include $(wildcard $(M92_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_cdoor/Makefile b/rel/d/a/obj/d_a_obj_cdoor/Makefile index 76f86b39a3e..ad2fdd486d6 100644 --- a/rel/d/a/obj/d_a_obj_cdoor/Makefile +++ b/rel/d/a/obj/d_a_obj_cdoor/Makefile @@ -40,10 +40,17 @@ $(M420_TARGET): $(M420_O_FILES) $(M420_LIBS) @python3 tools/lcf.py rel 420 --output $(M420_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M420_LDFLAGS) -o $(M420_TARGET) @build/M420_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cdoor/%.o: rel/d/a/obj/d_a_obj_cdoor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cdoor/%.o: rel/d/a/obj/d_a_obj_cdoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cdoor/%.d @echo [420] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M420_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M420_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M420_D_FILES := $(M420_O_FILES:.o=.d) +$(M420_D_FILES): +include $(wildcard $(M420_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_chandelier/Makefile b/rel/d/a/obj/d_a_obj_chandelier/Makefile index 8073a1151e3..b675b96c613 100644 --- a/rel/d/a/obj/d_a_obj_chandelier/Makefile +++ b/rel/d/a/obj/d_a_obj_chandelier/Makefile @@ -38,10 +38,17 @@ $(M421_TARGET): $(M421_O_FILES) $(M421_LIBS) @python3 tools/lcf.py rel 421 --output $(M421_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M421_LDFLAGS) -o $(M421_TARGET) @build/M421_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_chandelier/%.o: rel/d/a/obj/d_a_obj_chandelier/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_chandelier/%.o: rel/d/a/obj/d_a_obj_chandelier/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_chandelier/%.d @echo [421] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M421_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M421_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M421_D_FILES := $(M421_O_FILES:.o=.d) +$(M421_D_FILES): +include $(wildcard $(M421_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_chest/Makefile b/rel/d/a/obj/d_a_obj_chest/Makefile index 34c060f0fc3..5f90b815888 100644 --- a/rel/d/a/obj/d_a_obj_chest/Makefile +++ b/rel/d/a/obj/d_a_obj_chest/Makefile @@ -40,10 +40,17 @@ $(M422_TARGET): $(M422_O_FILES) $(M422_LIBS) @python3 tools/lcf.py rel 422 --output $(M422_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M422_LDFLAGS) -o $(M422_TARGET) @build/M422_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest/%.o: rel/d/a/obj/d_a_obj_chest/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest/%.o: rel/d/a/obj/d_a_obj_chest/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest/%.d @echo [422] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M422_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M422_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M422_D_FILES := $(M422_O_FILES:.o=.d) +$(M422_D_FILES): +include $(wildcard $(M422_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_cho/Makefile b/rel/d/a/obj/d_a_obj_cho/Makefile index b5421969392..1a33daf4961 100644 --- a/rel/d/a/obj/d_a_obj_cho/Makefile +++ b/rel/d/a/obj/d_a_obj_cho/Makefile @@ -40,10 +40,17 @@ $(M423_TARGET): $(M423_O_FILES) $(M423_LIBS) @python3 tools/lcf.py rel 423 --output $(M423_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M423_LDFLAGS) -o $(M423_TARGET) @build/M423_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cho/%.o: rel/d/a/obj/d_a_obj_cho/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cho/%.o: rel/d/a/obj/d_a_obj_cho/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cho/%.d @echo [423] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M423_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M423_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M423_D_FILES := $(M423_O_FILES:.o=.d) +$(M423_D_FILES): +include $(wildcard $(M423_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_cowdoor/Makefile b/rel/d/a/obj/d_a_obj_cowdoor/Makefile index 5308d2f8a32..d051d314ea1 100644 --- a/rel/d/a/obj/d_a_obj_cowdoor/Makefile +++ b/rel/d/a/obj/d_a_obj_cowdoor/Makefile @@ -38,10 +38,17 @@ $(M424_TARGET): $(M424_O_FILES) $(M424_LIBS) @python3 tools/lcf.py rel 424 --output $(M424_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M424_LDFLAGS) -o $(M424_TARGET) @build/M424_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cowdoor/%.o: rel/d/a/obj/d_a_obj_cowdoor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cowdoor/%.o: rel/d/a/obj/d_a_obj_cowdoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cowdoor/%.d @echo [424] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M424_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M424_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M424_D_FILES := $(M424_O_FILES:.o=.d) +$(M424_D_FILES): +include $(wildcard $(M424_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_crope/Makefile b/rel/d/a/obj/d_a_obj_crope/Makefile index 500fdb7ace3..fd31335ccac 100644 --- a/rel/d/a/obj/d_a_obj_crope/Makefile +++ b/rel/d/a/obj/d_a_obj_crope/Makefile @@ -38,10 +38,17 @@ $(M425_TARGET): $(M425_O_FILES) $(M425_LIBS) @python3 tools/lcf.py rel 425 --output $(M425_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M425_LDFLAGS) -o $(M425_TARGET) @build/M425_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crope/%.o: rel/d/a/obj/d_a_obj_crope/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crope/%.o: rel/d/a/obj/d_a_obj_crope/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crope/%.d @echo [425] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M425_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M425_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M425_D_FILES := $(M425_O_FILES:.o=.d) +$(M425_D_FILES): +include $(wildcard $(M425_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_crvfence/Makefile b/rel/d/a/obj/d_a_obj_crvfence/Makefile index 1510260d068..b3276681333 100644 --- a/rel/d/a/obj/d_a_obj_crvfence/Makefile +++ b/rel/d/a/obj/d_a_obj_crvfence/Makefile @@ -38,10 +38,17 @@ $(M426_TARGET): $(M426_O_FILES) $(M426_LIBS) @python3 tools/lcf.py rel 426 --output $(M426_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M426_LDFLAGS) -o $(M426_TARGET) @build/M426_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvfence/%.o: rel/d/a/obj/d_a_obj_crvfence/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvfence/%.o: rel/d/a/obj/d_a_obj_crvfence/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvfence/%.d @echo [426] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M426_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M426_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M426_D_FILES := $(M426_O_FILES:.o=.d) +$(M426_D_FILES): +include $(wildcard $(M426_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_crvgate/Makefile b/rel/d/a/obj/d_a_obj_crvgate/Makefile index ebb71bef414..49b5b728481 100644 --- a/rel/d/a/obj/d_a_obj_crvgate/Makefile +++ b/rel/d/a/obj/d_a_obj_crvgate/Makefile @@ -38,10 +38,17 @@ $(M427_TARGET): $(M427_O_FILES) $(M427_LIBS) @python3 tools/lcf.py rel 427 --output $(M427_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M427_LDFLAGS) -o $(M427_TARGET) @build/M427_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvgate/%.o: rel/d/a/obj/d_a_obj_crvgate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvgate/%.o: rel/d/a/obj/d_a_obj_crvgate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvgate/%.d @echo [427] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M427_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M427_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M427_D_FILES := $(M427_O_FILES:.o=.d) +$(M427_D_FILES): +include $(wildcard $(M427_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_crvhahen/Makefile b/rel/d/a/obj/d_a_obj_crvhahen/Makefile index 4545dd55aa5..512959d22fc 100644 --- a/rel/d/a/obj/d_a_obj_crvhahen/Makefile +++ b/rel/d/a/obj/d_a_obj_crvhahen/Makefile @@ -38,10 +38,17 @@ $(M428_TARGET): $(M428_O_FILES) $(M428_LIBS) @python3 tools/lcf.py rel 428 --output $(M428_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M428_LDFLAGS) -o $(M428_TARGET) @build/M428_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvhahen/%.o: rel/d/a/obj/d_a_obj_crvhahen/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvhahen/%.o: rel/d/a/obj/d_a_obj_crvhahen/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvhahen/%.d @echo [428] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M428_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M428_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M428_D_FILES := $(M428_O_FILES:.o=.d) +$(M428_D_FILES): +include $(wildcard $(M428_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_crvlh_down/Makefile b/rel/d/a/obj/d_a_obj_crvlh_down/Makefile index db2f122007f..b3a193f9cec 100644 --- a/rel/d/a/obj/d_a_obj_crvlh_down/Makefile +++ b/rel/d/a/obj/d_a_obj_crvlh_down/Makefile @@ -38,10 +38,17 @@ $(M429_TARGET): $(M429_O_FILES) $(M429_LIBS) @python3 tools/lcf.py rel 429 --output $(M429_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M429_LDFLAGS) -o $(M429_TARGET) @build/M429_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvlh_down/%.o: rel/d/a/obj/d_a_obj_crvlh_down/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvlh_down/%.o: rel/d/a/obj/d_a_obj_crvlh_down/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvlh_down/%.d @echo [429] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M429_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M429_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M429_D_FILES := $(M429_O_FILES:.o=.d) +$(M429_D_FILES): +include $(wildcard $(M429_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_crvlh_up/Makefile b/rel/d/a/obj/d_a_obj_crvlh_up/Makefile index 24465ec144c..8e6ade0685e 100644 --- a/rel/d/a/obj/d_a_obj_crvlh_up/Makefile +++ b/rel/d/a/obj/d_a_obj_crvlh_up/Makefile @@ -38,10 +38,17 @@ $(M430_TARGET): $(M430_O_FILES) $(M430_LIBS) @python3 tools/lcf.py rel 430 --output $(M430_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M430_LDFLAGS) -o $(M430_TARGET) @build/M430_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvlh_up/%.o: rel/d/a/obj/d_a_obj_crvlh_up/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvlh_up/%.o: rel/d/a/obj/d_a_obj_crvlh_up/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvlh_up/%.d @echo [430] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M430_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M430_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M430_D_FILES := $(M430_O_FILES:.o=.d) +$(M430_D_FILES): +include $(wildcard $(M430_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_crvsteel/Makefile b/rel/d/a/obj/d_a_obj_crvsteel/Makefile index aa46469eb50..a1e80437658 100644 --- a/rel/d/a/obj/d_a_obj_crvsteel/Makefile +++ b/rel/d/a/obj/d_a_obj_crvsteel/Makefile @@ -38,10 +38,17 @@ $(M431_TARGET): $(M431_O_FILES) $(M431_LIBS) @python3 tools/lcf.py rel 431 --output $(M431_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M431_LDFLAGS) -o $(M431_TARGET) @build/M431_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvsteel/%.o: rel/d/a/obj/d_a_obj_crvsteel/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvsteel/%.o: rel/d/a/obj/d_a_obj_crvsteel/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvsteel/%.d @echo [431] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M431_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M431_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M431_D_FILES := $(M431_O_FILES:.o=.d) +$(M431_D_FILES): +include $(wildcard $(M431_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_crystal/Makefile b/rel/d/a/obj/d_a_obj_crystal/Makefile index bfc94160289..cf342321572 100644 --- a/rel/d/a/obj/d_a_obj_crystal/Makefile +++ b/rel/d/a/obj/d_a_obj_crystal/Makefile @@ -38,10 +38,17 @@ $(M432_TARGET): $(M432_O_FILES) $(M432_LIBS) @python3 tools/lcf.py rel 432 --output $(M432_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M432_LDFLAGS) -o $(M432_TARGET) @build/M432_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crystal/%.o: rel/d/a/obj/d_a_obj_crystal/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crystal/%.o: rel/d/a/obj/d_a_obj_crystal/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crystal/%.d @echo [432] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M432_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M432_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M432_D_FILES := $(M432_O_FILES:.o=.d) +$(M432_D_FILES): +include $(wildcard $(M432_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_cwall/Makefile b/rel/d/a/obj/d_a_obj_cwall/Makefile index 576adde570b..31bfeb83e0d 100644 --- a/rel/d/a/obj/d_a_obj_cwall/Makefile +++ b/rel/d/a/obj/d_a_obj_cwall/Makefile @@ -40,10 +40,17 @@ $(M433_TARGET): $(M433_O_FILES) $(M433_LIBS) @python3 tools/lcf.py rel 433 --output $(M433_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M433_LDFLAGS) -o $(M433_TARGET) @build/M433_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cwall/%.o: rel/d/a/obj/d_a_obj_cwall/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cwall/%.o: rel/d/a/obj/d_a_obj_cwall/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cwall/%.d @echo [433] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M433_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M433_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M433_D_FILES := $(M433_O_FILES:.o=.d) +$(M433_D_FILES): +include $(wildcard $(M433_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_damCps/Makefile b/rel/d/a/obj/d_a_obj_damCps/Makefile index 3d04d2b9763..2892478c480 100644 --- a/rel/d/a/obj/d_a_obj_damCps/Makefile +++ b/rel/d/a/obj/d_a_obj_damCps/Makefile @@ -38,10 +38,17 @@ $(M434_TARGET): $(M434_O_FILES) $(M434_LIBS) @python3 tools/lcf.py rel 434 --output $(M434_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M434_LDFLAGS) -o $(M434_TARGET) @build/M434_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_damCps/%.o: rel/d/a/obj/d_a_obj_damCps/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_damCps/%.o: rel/d/a/obj/d_a_obj_damCps/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_damCps/%.d @echo [434] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M434_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M434_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M434_D_FILES := $(M434_O_FILES:.o=.d) +$(M434_D_FILES): +include $(wildcard $(M434_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_dan/Makefile b/rel/d/a/obj/d_a_obj_dan/Makefile index 1e9a5ba6e2a..622c1490911 100644 --- a/rel/d/a/obj/d_a_obj_dan/Makefile +++ b/rel/d/a/obj/d_a_obj_dan/Makefile @@ -40,10 +40,17 @@ $(M435_TARGET): $(M435_O_FILES) $(M435_LIBS) @python3 tools/lcf.py rel 435 --output $(M435_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M435_LDFLAGS) -o $(M435_TARGET) @build/M435_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_dan/%.o: rel/d/a/obj/d_a_obj_dan/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_dan/%.o: rel/d/a/obj/d_a_obj_dan/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dan/%.d @echo [435] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M435_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M435_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M435_D_FILES := $(M435_O_FILES:.o=.d) +$(M435_D_FILES): +include $(wildcard $(M435_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_digholl/Makefile b/rel/d/a/obj/d_a_obj_digholl/Makefile index 3a4f1b91f4d..e5c943adca5 100644 --- a/rel/d/a/obj/d_a_obj_digholl/Makefile +++ b/rel/d/a/obj/d_a_obj_digholl/Makefile @@ -38,10 +38,17 @@ $(M436_TARGET): $(M436_O_FILES) $(M436_LIBS) @python3 tools/lcf.py rel 436 --output $(M436_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M436_LDFLAGS) -o $(M436_TARGET) @build/M436_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_digholl/%.o: rel/d/a/obj/d_a_obj_digholl/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_digholl/%.o: rel/d/a/obj/d_a_obj_digholl/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_digholl/%.d @echo [436] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M436_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M436_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M436_D_FILES := $(M436_O_FILES:.o=.d) +$(M436_D_FILES): +include $(wildcard $(M436_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_digplace/Makefile b/rel/d/a/obj/d_a_obj_digplace/Makefile index c507621e731..0930f82b836 100644 --- a/rel/d/a/obj/d_a_obj_digplace/Makefile +++ b/rel/d/a/obj/d_a_obj_digplace/Makefile @@ -38,10 +38,17 @@ $(M93_TARGET): $(M93_O_FILES) $(M93_LIBS) @python3 tools/lcf.py rel 93 --output $(M93_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M93_LDFLAGS) -o $(M93_TARGET) @build/M93_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_digplace/%.o: rel/d/a/obj/d_a_obj_digplace/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_digplace/%.o: rel/d/a/obj/d_a_obj_digplace/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_digplace/%.d @echo [ 93] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M93_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M93_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M93_D_FILES := $(M93_O_FILES:.o=.d) +$(M93_D_FILES): +include $(wildcard $(M93_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_digsnow/Makefile b/rel/d/a/obj/d_a_obj_digsnow/Makefile index e09c354206f..fae0ebc1dcd 100644 --- a/rel/d/a/obj/d_a_obj_digsnow/Makefile +++ b/rel/d/a/obj/d_a_obj_digsnow/Makefile @@ -40,10 +40,17 @@ $(M437_TARGET): $(M437_O_FILES) $(M437_LIBS) @python3 tools/lcf.py rel 437 --output $(M437_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M437_LDFLAGS) -o $(M437_TARGET) @build/M437_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_digsnow/%.o: rel/d/a/obj/d_a_obj_digsnow/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_digsnow/%.o: rel/d/a/obj/d_a_obj_digsnow/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_digsnow/%.d @echo [437] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M437_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M437_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M437_D_FILES := $(M437_O_FILES:.o=.d) +$(M437_D_FILES): +include $(wildcard $(M437_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_dmelevator/Makefile b/rel/d/a/obj/d_a_obj_dmelevator/Makefile index e91537e052a..95f0a040764 100644 --- a/rel/d/a/obj/d_a_obj_dmelevator/Makefile +++ b/rel/d/a/obj/d_a_obj_dmelevator/Makefile @@ -40,10 +40,17 @@ $(M438_TARGET): $(M438_O_FILES) $(M438_LIBS) @python3 tools/lcf.py rel 438 --output $(M438_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M438_LDFLAGS) -o $(M438_TARGET) @build/M438_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_dmelevator/%.o: rel/d/a/obj/d_a_obj_dmelevator/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_dmelevator/%.o: rel/d/a/obj/d_a_obj_dmelevator/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dmelevator/%.d @echo [438] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M438_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M438_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M438_D_FILES := $(M438_O_FILES:.o=.d) +$(M438_D_FILES): +include $(wildcard $(M438_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_drop/Makefile b/rel/d/a/obj/d_a_obj_drop/Makefile index 05e121a3347..bf77fd95bab 100644 --- a/rel/d/a/obj/d_a_obj_drop/Makefile +++ b/rel/d/a/obj/d_a_obj_drop/Makefile @@ -40,10 +40,17 @@ $(M439_TARGET): $(M439_O_FILES) $(M439_LIBS) @python3 tools/lcf.py rel 439 --output $(M439_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M439_LDFLAGS) -o $(M439_TARGET) @build/M439_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_drop/%.o: rel/d/a/obj/d_a_obj_drop/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_drop/%.o: rel/d/a/obj/d_a_obj_drop/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_drop/%.d @echo [439] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M439_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M439_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M439_D_FILES := $(M439_O_FILES:.o=.d) +$(M439_D_FILES): +include $(wildcard $(M439_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_dust/Makefile b/rel/d/a/obj/d_a_obj_dust/Makefile index 5917c4509ad..cdda44b36a1 100644 --- a/rel/d/a/obj/d_a_obj_dust/Makefile +++ b/rel/d/a/obj/d_a_obj_dust/Makefile @@ -38,10 +38,17 @@ $(M440_TARGET): $(M440_O_FILES) $(M440_LIBS) @python3 tools/lcf.py rel 440 --output $(M440_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M440_LDFLAGS) -o $(M440_TARGET) @build/M440_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_dust/%.o: rel/d/a/obj/d_a_obj_dust/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_dust/%.o: rel/d/a/obj/d_a_obj_dust/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dust/%.d @echo [440] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M440_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M440_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M440_D_FILES := $(M440_O_FILES:.o=.d) +$(M440_D_FILES): +include $(wildcard $(M440_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_eff/Makefile b/rel/d/a/obj/d_a_obj_eff/Makefile index c45d67507ce..c55ff8c0fd4 100644 --- a/rel/d/a/obj/d_a_obj_eff/Makefile +++ b/rel/d/a/obj/d_a_obj_eff/Makefile @@ -38,10 +38,17 @@ $(M94_TARGET): $(M94_O_FILES) $(M94_LIBS) @python3 tools/lcf.py rel 94 --output $(M94_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M94_LDFLAGS) -o $(M94_TARGET) @build/M94_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_eff/%.o: rel/d/a/obj/d_a_obj_eff/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_eff/%.o: rel/d/a/obj/d_a_obj_eff/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_eff/%.d @echo [ 94] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M94_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M94_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M94_D_FILES := $(M94_O_FILES:.o=.d) +$(M94_D_FILES): +include $(wildcard $(M94_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_enemy_create/Makefile b/rel/d/a/obj/d_a_obj_enemy_create/Makefile index ab4464590a3..746a6461200 100644 --- a/rel/d/a/obj/d_a_obj_enemy_create/Makefile +++ b/rel/d/a/obj/d_a_obj_enemy_create/Makefile @@ -38,10 +38,17 @@ $(M441_TARGET): $(M441_O_FILES) $(M441_LIBS) @python3 tools/lcf.py rel 441 --output $(M441_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M441_LDFLAGS) -o $(M441_TARGET) @build/M441_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_enemy_create/%.o: rel/d/a/obj/d_a_obj_enemy_create/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_enemy_create/%.o: rel/d/a/obj/d_a_obj_enemy_create/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_enemy_create/%.d @echo [441] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M441_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M441_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M441_D_FILES := $(M441_O_FILES:.o=.d) +$(M441_D_FILES): +include $(wildcard $(M441_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_fallobj/Makefile b/rel/d/a/obj/d_a_obj_fallobj/Makefile index 1f0ce5c7462..e77297b0475 100644 --- a/rel/d/a/obj/d_a_obj_fallobj/Makefile +++ b/rel/d/a/obj/d_a_obj_fallobj/Makefile @@ -38,10 +38,17 @@ $(M442_TARGET): $(M442_O_FILES) $(M442_LIBS) @python3 tools/lcf.py rel 442 --output $(M442_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M442_LDFLAGS) -o $(M442_TARGET) @build/M442_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fallobj/%.o: rel/d/a/obj/d_a_obj_fallobj/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fallobj/%.o: rel/d/a/obj/d_a_obj_fallobj/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fallobj/%.d @echo [442] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M442_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M442_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M442_D_FILES := $(M442_O_FILES:.o=.d) +$(M442_D_FILES): +include $(wildcard $(M442_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_fan/Makefile b/rel/d/a/obj/d_a_obj_fan/Makefile index 05d956b449a..52d3a61b774 100644 --- a/rel/d/a/obj/d_a_obj_fan/Makefile +++ b/rel/d/a/obj/d_a_obj_fan/Makefile @@ -38,10 +38,17 @@ $(M443_TARGET): $(M443_O_FILES) $(M443_LIBS) @python3 tools/lcf.py rel 443 --output $(M443_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M443_LDFLAGS) -o $(M443_TARGET) @build/M443_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fan/%.o: rel/d/a/obj/d_a_obj_fan/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fan/%.o: rel/d/a/obj/d_a_obj_fan/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fan/%.d @echo [443] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M443_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M443_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M443_D_FILES := $(M443_O_FILES:.o=.d) +$(M443_D_FILES): +include $(wildcard $(M443_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_fchain/Makefile b/rel/d/a/obj/d_a_obj_fchain/Makefile index ef9be388590..6c33185e370 100644 --- a/rel/d/a/obj/d_a_obj_fchain/Makefile +++ b/rel/d/a/obj/d_a_obj_fchain/Makefile @@ -38,10 +38,17 @@ $(M444_TARGET): $(M444_O_FILES) $(M444_LIBS) @python3 tools/lcf.py rel 444 --output $(M444_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M444_LDFLAGS) -o $(M444_TARGET) @build/M444_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fchain/%.o: rel/d/a/obj/d_a_obj_fchain/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fchain/%.o: rel/d/a/obj/d_a_obj_fchain/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fchain/%.d @echo [444] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M444_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M444_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M444_D_FILES := $(M444_O_FILES:.o=.d) +$(M444_D_FILES): +include $(wildcard $(M444_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_fireWood/Makefile b/rel/d/a/obj/d_a_obj_fireWood/Makefile index 41e760aa8a9..94b626ea842 100644 --- a/rel/d/a/obj/d_a_obj_fireWood/Makefile +++ b/rel/d/a/obj/d_a_obj_fireWood/Makefile @@ -40,10 +40,17 @@ $(M445_TARGET): $(M445_O_FILES) $(M445_LIBS) @python3 tools/lcf.py rel 445 --output $(M445_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M445_LDFLAGS) -o $(M445_TARGET) @build/M445_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fireWood/%.o: rel/d/a/obj/d_a_obj_fireWood/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fireWood/%.o: rel/d/a/obj/d_a_obj_fireWood/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fireWood/%.d @echo [445] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M445_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M445_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M445_D_FILES := $(M445_O_FILES:.o=.d) +$(M445_D_FILES): +include $(wildcard $(M445_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_fireWood2/Makefile b/rel/d/a/obj/d_a_obj_fireWood2/Makefile index a87ad61ce6f..381952756fd 100644 --- a/rel/d/a/obj/d_a_obj_fireWood2/Makefile +++ b/rel/d/a/obj/d_a_obj_fireWood2/Makefile @@ -40,10 +40,17 @@ $(M446_TARGET): $(M446_O_FILES) $(M446_LIBS) @python3 tools/lcf.py rel 446 --output $(M446_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M446_LDFLAGS) -o $(M446_TARGET) @build/M446_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fireWood2/%.o: rel/d/a/obj/d_a_obj_fireWood2/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fireWood2/%.o: rel/d/a/obj/d_a_obj_fireWood2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fireWood2/%.d @echo [446] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M446_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M446_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M446_D_FILES := $(M446_O_FILES:.o=.d) +$(M446_D_FILES): +include $(wildcard $(M446_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_firepillar/Makefile b/rel/d/a/obj/d_a_obj_firepillar/Makefile index 23ed6cffc31..43eeab10ee3 100644 --- a/rel/d/a/obj/d_a_obj_firepillar/Makefile +++ b/rel/d/a/obj/d_a_obj_firepillar/Makefile @@ -40,10 +40,17 @@ $(M447_TARGET): $(M447_O_FILES) $(M447_LIBS) @python3 tools/lcf.py rel 447 --output $(M447_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M447_LDFLAGS) -o $(M447_TARGET) @build/M447_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar/%.o: rel/d/a/obj/d_a_obj_firepillar/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar/%.o: rel/d/a/obj/d_a_obj_firepillar/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar/%.d @echo [447] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M447_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M447_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M447_D_FILES := $(M447_O_FILES:.o=.d) +$(M447_D_FILES): +include $(wildcard $(M447_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_firepillar2/Makefile b/rel/d/a/obj/d_a_obj_firepillar2/Makefile index aeb72392cf8..38b7e2a8d12 100644 --- a/rel/d/a/obj/d_a_obj_firepillar2/Makefile +++ b/rel/d/a/obj/d_a_obj_firepillar2/Makefile @@ -40,10 +40,17 @@ $(M448_TARGET): $(M448_O_FILES) $(M448_LIBS) @python3 tools/lcf.py rel 448 --output $(M448_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M448_LDFLAGS) -o $(M448_TARGET) @build/M448_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar2/%.o: rel/d/a/obj/d_a_obj_firepillar2/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar2/%.o: rel/d/a/obj/d_a_obj_firepillar2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar2/%.d @echo [448] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M448_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M448_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M448_D_FILES := $(M448_O_FILES:.o=.d) +$(M448_D_FILES): +include $(wildcard $(M448_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_flag/Makefile b/rel/d/a/obj/d_a_obj_flag/Makefile index 3b274304113..6473c6bb1a5 100644 --- a/rel/d/a/obj/d_a_obj_flag/Makefile +++ b/rel/d/a/obj/d_a_obj_flag/Makefile @@ -38,10 +38,17 @@ $(M449_TARGET): $(M449_O_FILES) $(M449_LIBS) @python3 tools/lcf.py rel 449 --output $(M449_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M449_LDFLAGS) -o $(M449_TARGET) @build/M449_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag/%.o: rel/d/a/obj/d_a_obj_flag/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag/%.o: rel/d/a/obj/d_a_obj_flag/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag/%.d @echo [449] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M449_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M449_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M449_D_FILES := $(M449_O_FILES:.o=.d) +$(M449_D_FILES): +include $(wildcard $(M449_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_flag2/Makefile b/rel/d/a/obj/d_a_obj_flag2/Makefile index f106f8613e4..c06bd59f16d 100644 --- a/rel/d/a/obj/d_a_obj_flag2/Makefile +++ b/rel/d/a/obj/d_a_obj_flag2/Makefile @@ -38,10 +38,17 @@ $(M450_TARGET): $(M450_O_FILES) $(M450_LIBS) @python3 tools/lcf.py rel 450 --output $(M450_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M450_LDFLAGS) -o $(M450_TARGET) @build/M450_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag2/%.o: rel/d/a/obj/d_a_obj_flag2/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag2/%.o: rel/d/a/obj/d_a_obj_flag2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag2/%.d @echo [450] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M450_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M450_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M450_D_FILES := $(M450_O_FILES:.o=.d) +$(M450_D_FILES): +include $(wildcard $(M450_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_flag3/Makefile b/rel/d/a/obj/d_a_obj_flag3/Makefile index ddb034c8282..e195020fed2 100644 --- a/rel/d/a/obj/d_a_obj_flag3/Makefile +++ b/rel/d/a/obj/d_a_obj_flag3/Makefile @@ -38,10 +38,17 @@ $(M451_TARGET): $(M451_O_FILES) $(M451_LIBS) @python3 tools/lcf.py rel 451 --output $(M451_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M451_LDFLAGS) -o $(M451_TARGET) @build/M451_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag3/%.o: rel/d/a/obj/d_a_obj_flag3/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag3/%.o: rel/d/a/obj/d_a_obj_flag3/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag3/%.d @echo [451] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M451_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M451_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M451_D_FILES := $(M451_O_FILES:.o=.d) +$(M451_D_FILES): +include $(wildcard $(M451_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_fmobj/Makefile b/rel/d/a/obj/d_a_obj_fmobj/Makefile index 61dc21169fa..9c0a4bf3d44 100644 --- a/rel/d/a/obj/d_a_obj_fmobj/Makefile +++ b/rel/d/a/obj/d_a_obj_fmobj/Makefile @@ -38,10 +38,17 @@ $(M95_TARGET): $(M95_O_FILES) $(M95_LIBS) @python3 tools/lcf.py rel 95 --output $(M95_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M95_LDFLAGS) -o $(M95_TARGET) @build/M95_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fmobj/%.o: rel/d/a/obj/d_a_obj_fmobj/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fmobj/%.o: rel/d/a/obj/d_a_obj_fmobj/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fmobj/%.d @echo [ 95] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M95_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M95_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M95_D_FILES := $(M95_O_FILES:.o=.d) +$(M95_D_FILES): +include $(wildcard $(M95_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_food/Makefile b/rel/d/a/obj/d_a_obj_food/Makefile index 446350cb89c..6bdbe6afc8b 100644 --- a/rel/d/a/obj/d_a_obj_food/Makefile +++ b/rel/d/a/obj/d_a_obj_food/Makefile @@ -40,10 +40,17 @@ $(M452_TARGET): $(M452_O_FILES) $(M452_LIBS) @python3 tools/lcf.py rel 452 --output $(M452_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M452_LDFLAGS) -o $(M452_TARGET) @build/M452_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_food/%.o: rel/d/a/obj/d_a_obj_food/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_food/%.o: rel/d/a/obj/d_a_obj_food/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_food/%.d @echo [452] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M452_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M452_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M452_D_FILES := $(M452_O_FILES:.o=.d) +$(M452_D_FILES): +include $(wildcard $(M452_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_fw/Makefile b/rel/d/a/obj/d_a_obj_fw/Makefile index 9098fb60d17..db5bef63de9 100644 --- a/rel/d/a/obj/d_a_obj_fw/Makefile +++ b/rel/d/a/obj/d_a_obj_fw/Makefile @@ -40,10 +40,17 @@ $(M453_TARGET): $(M453_O_FILES) $(M453_LIBS) @python3 tools/lcf.py rel 453 --output $(M453_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M453_LDFLAGS) -o $(M453_TARGET) @build/M453_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fw/%.o: rel/d/a/obj/d_a_obj_fw/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fw/%.o: rel/d/a/obj/d_a_obj_fw/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fw/%.d @echo [453] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M453_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M453_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M453_D_FILES := $(M453_O_FILES:.o=.d) +$(M453_D_FILES): +include $(wildcard $(M453_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_gadget/Makefile b/rel/d/a/obj/d_a_obj_gadget/Makefile index b41000d7082..06dac0149fc 100644 --- a/rel/d/a/obj/d_a_obj_gadget/Makefile +++ b/rel/d/a/obj/d_a_obj_gadget/Makefile @@ -40,10 +40,17 @@ $(M454_TARGET): $(M454_O_FILES) $(M454_LIBS) @python3 tools/lcf.py rel 454 --output $(M454_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M454_LDFLAGS) -o $(M454_TARGET) @build/M454_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gadget/%.o: rel/d/a/obj/d_a_obj_gadget/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gadget/%.o: rel/d/a/obj/d_a_obj_gadget/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gadget/%.d @echo [454] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M454_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M454_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M454_D_FILES := $(M454_O_FILES:.o=.d) +$(M454_D_FILES): +include $(wildcard $(M454_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ganonwall/Makefile b/rel/d/a/obj/d_a_obj_ganonwall/Makefile index 14484f00100..7874b3aeb08 100644 --- a/rel/d/a/obj/d_a_obj_ganonwall/Makefile +++ b/rel/d/a/obj/d_a_obj_ganonwall/Makefile @@ -38,10 +38,17 @@ $(M455_TARGET): $(M455_O_FILES) $(M455_LIBS) @python3 tools/lcf.py rel 455 --output $(M455_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M455_LDFLAGS) -o $(M455_TARGET) @build/M455_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ganonwall/%.o: rel/d/a/obj/d_a_obj_ganonwall/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ganonwall/%.o: rel/d/a/obj/d_a_obj_ganonwall/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ganonwall/%.d @echo [455] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M455_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M455_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M455_D_FILES := $(M455_O_FILES:.o=.d) +$(M455_D_FILES): +include $(wildcard $(M455_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ganonwall2/Makefile b/rel/d/a/obj/d_a_obj_ganonwall2/Makefile index 4f9929c17b6..e850fa8d099 100644 --- a/rel/d/a/obj/d_a_obj_ganonwall2/Makefile +++ b/rel/d/a/obj/d_a_obj_ganonwall2/Makefile @@ -38,10 +38,17 @@ $(M456_TARGET): $(M456_O_FILES) $(M456_LIBS) @python3 tools/lcf.py rel 456 --output $(M456_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M456_LDFLAGS) -o $(M456_TARGET) @build/M456_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ganonwall2/%.o: rel/d/a/obj/d_a_obj_ganonwall2/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ganonwall2/%.o: rel/d/a/obj/d_a_obj_ganonwall2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ganonwall2/%.d @echo [456] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M456_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M456_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M456_D_FILES := $(M456_O_FILES:.o=.d) +$(M456_D_FILES): +include $(wildcard $(M456_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_gb/Makefile b/rel/d/a/obj/d_a_obj_gb/Makefile index f48afca23ec..2f3f8081e10 100644 --- a/rel/d/a/obj/d_a_obj_gb/Makefile +++ b/rel/d/a/obj/d_a_obj_gb/Makefile @@ -38,10 +38,17 @@ $(M457_TARGET): $(M457_O_FILES) $(M457_LIBS) @python3 tools/lcf.py rel 457 --output $(M457_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M457_LDFLAGS) -o $(M457_TARGET) @build/M457_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gb/%.o: rel/d/a/obj/d_a_obj_gb/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gb/%.o: rel/d/a/obj/d_a_obj_gb/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gb/%.d @echo [457] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M457_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M457_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M457_D_FILES := $(M457_O_FILES:.o=.d) +$(M457_D_FILES): +include $(wildcard $(M457_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_geyser/Makefile b/rel/d/a/obj/d_a_obj_geyser/Makefile index c4e339fa71a..60a545c17c6 100644 --- a/rel/d/a/obj/d_a_obj_geyser/Makefile +++ b/rel/d/a/obj/d_a_obj_geyser/Makefile @@ -40,10 +40,17 @@ $(M458_TARGET): $(M458_O_FILES) $(M458_LIBS) @python3 tools/lcf.py rel 458 --output $(M458_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M458_LDFLAGS) -o $(M458_TARGET) @build/M458_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_geyser/%.o: rel/d/a/obj/d_a_obj_geyser/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_geyser/%.o: rel/d/a/obj/d_a_obj_geyser/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_geyser/%.d @echo [458] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M458_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M458_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M458_D_FILES := $(M458_O_FILES:.o=.d) +$(M458_D_FILES): +include $(wildcard $(M458_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_glowSphere/Makefile b/rel/d/a/obj/d_a_obj_glowSphere/Makefile index eb7ef89f29f..a58b2ad0485 100644 --- a/rel/d/a/obj/d_a_obj_glowSphere/Makefile +++ b/rel/d/a/obj/d_a_obj_glowSphere/Makefile @@ -40,10 +40,17 @@ $(M459_TARGET): $(M459_O_FILES) $(M459_LIBS) @python3 tools/lcf.py rel 459 --output $(M459_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M459_LDFLAGS) -o $(M459_TARGET) @build/M459_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_glowSphere/%.o: rel/d/a/obj/d_a_obj_glowSphere/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_glowSphere/%.o: rel/d/a/obj/d_a_obj_glowSphere/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_glowSphere/%.d @echo [459] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M459_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M459_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M459_D_FILES := $(M459_O_FILES:.o=.d) +$(M459_D_FILES): +include $(wildcard $(M459_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_gm/Makefile b/rel/d/a/obj/d_a_obj_gm/Makefile index 16f9c7dc965..515f717c150 100644 --- a/rel/d/a/obj/d_a_obj_gm/Makefile +++ b/rel/d/a/obj/d_a_obj_gm/Makefile @@ -40,10 +40,17 @@ $(M460_TARGET): $(M460_O_FILES) $(M460_LIBS) @python3 tools/lcf.py rel 460 --output $(M460_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M460_LDFLAGS) -o $(M460_TARGET) @build/M460_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gm/%.o: rel/d/a/obj/d_a_obj_gm/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gm/%.o: rel/d/a/obj/d_a_obj_gm/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gm/%.d @echo [460] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M460_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M460_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M460_D_FILES := $(M460_O_FILES:.o=.d) +$(M460_D_FILES): +include $(wildcard $(M460_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_goGate/Makefile b/rel/d/a/obj/d_a_obj_goGate/Makefile index 6bc8613303c..546e07b9a3e 100644 --- a/rel/d/a/obj/d_a_obj_goGate/Makefile +++ b/rel/d/a/obj/d_a_obj_goGate/Makefile @@ -40,10 +40,17 @@ $(M461_TARGET): $(M461_O_FILES) $(M461_LIBS) @python3 tools/lcf.py rel 461 --output $(M461_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M461_LDFLAGS) -o $(M461_TARGET) @build/M461_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_goGate/%.o: rel/d/a/obj/d_a_obj_goGate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_goGate/%.o: rel/d/a/obj/d_a_obj_goGate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_goGate/%.d @echo [461] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M461_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M461_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M461_D_FILES := $(M461_O_FILES:.o=.d) +$(M461_D_FILES): +include $(wildcard $(M461_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_gomikabe/Makefile b/rel/d/a/obj/d_a_obj_gomikabe/Makefile index c659063cc2a..11e849bb65d 100644 --- a/rel/d/a/obj/d_a_obj_gomikabe/Makefile +++ b/rel/d/a/obj/d_a_obj_gomikabe/Makefile @@ -40,10 +40,17 @@ $(M462_TARGET): $(M462_O_FILES) $(M462_LIBS) @python3 tools/lcf.py rel 462 --output $(M462_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M462_LDFLAGS) -o $(M462_TARGET) @build/M462_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gomikabe/%.o: rel/d/a/obj/d_a_obj_gomikabe/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gomikabe/%.o: rel/d/a/obj/d_a_obj_gomikabe/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gomikabe/%.d @echo [462] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M462_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M462_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M462_D_FILES := $(M462_O_FILES:.o=.d) +$(M462_D_FILES): +include $(wildcard $(M462_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_gptaru/Makefile b/rel/d/a/obj/d_a_obj_gptaru/Makefile index 66a3c79847d..f54eff5324b 100644 --- a/rel/d/a/obj/d_a_obj_gptaru/Makefile +++ b/rel/d/a/obj/d_a_obj_gptaru/Makefile @@ -40,10 +40,17 @@ $(M96_TARGET): $(M96_O_FILES) $(M96_LIBS) @python3 tools/lcf.py rel 96 --output $(M96_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M96_LDFLAGS) -o $(M96_TARGET) @build/M96_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gptaru/%.o: rel/d/a/obj/d_a_obj_gptaru/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gptaru/%.o: rel/d/a/obj/d_a_obj_gptaru/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gptaru/%.d @echo [ 96] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M96_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M96_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M96_D_FILES := $(M96_O_FILES:.o=.d) +$(M96_D_FILES): +include $(wildcard $(M96_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_gra2/Makefile b/rel/d/a/obj/d_a_obj_gra2/Makefile index 1ee58b74edf..94df63514d9 100644 --- a/rel/d/a/obj/d_a_obj_gra2/Makefile +++ b/rel/d/a/obj/d_a_obj_gra2/Makefile @@ -40,10 +40,17 @@ $(M463_TARGET): $(M463_O_FILES) $(M463_LIBS) @python3 tools/lcf.py rel 463 --output $(M463_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M463_LDFLAGS) -o $(M463_TARGET) @build/M463_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra2/%.o: rel/d/a/obj/d_a_obj_gra2/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra2/%.o: rel/d/a/obj/d_a_obj_gra2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra2/%.d @echo [463] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M463_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M463_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M463_D_FILES := $(M463_O_FILES:.o=.d) +$(M463_D_FILES): +include $(wildcard $(M463_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_graWall/Makefile b/rel/d/a/obj/d_a_obj_graWall/Makefile index baacfc50dbf..1b1711e5c55 100644 --- a/rel/d/a/obj/d_a_obj_graWall/Makefile +++ b/rel/d/a/obj/d_a_obj_graWall/Makefile @@ -38,10 +38,17 @@ $(M464_TARGET): $(M464_O_FILES) $(M464_LIBS) @python3 tools/lcf.py rel 464 --output $(M464_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M464_LDFLAGS) -o $(M464_TARGET) @build/M464_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_graWall/%.o: rel/d/a/obj/d_a_obj_graWall/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_graWall/%.o: rel/d/a/obj/d_a_obj_graWall/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_graWall/%.d @echo [464] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M464_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M464_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M464_D_FILES := $(M464_O_FILES:.o=.d) +$(M464_D_FILES): +include $(wildcard $(M464_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_gra_rock/Makefile b/rel/d/a/obj/d_a_obj_gra_rock/Makefile index c4a9246be2e..ab05deb538f 100644 --- a/rel/d/a/obj/d_a_obj_gra_rock/Makefile +++ b/rel/d/a/obj/d_a_obj_gra_rock/Makefile @@ -38,10 +38,17 @@ $(M465_TARGET): $(M465_O_FILES) $(M465_LIBS) @python3 tools/lcf.py rel 465 --output $(M465_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M465_LDFLAGS) -o $(M465_TARGET) @build/M465_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra_rock/%.o: rel/d/a/obj/d_a_obj_gra_rock/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra_rock/%.o: rel/d/a/obj/d_a_obj_gra_rock/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra_rock/%.d @echo [465] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M465_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M465_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M465_D_FILES := $(M465_O_FILES:.o=.d) +$(M465_D_FILES): +include $(wildcard $(M465_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_grave_stone/Makefile b/rel/d/a/obj/d_a_obj_grave_stone/Makefile index 63d0d5898e2..1d0d18ee029 100644 --- a/rel/d/a/obj/d_a_obj_grave_stone/Makefile +++ b/rel/d/a/obj/d_a_obj_grave_stone/Makefile @@ -38,10 +38,17 @@ $(M466_TARGET): $(M466_O_FILES) $(M466_LIBS) @python3 tools/lcf.py rel 466 --output $(M466_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M466_LDFLAGS) -o $(M466_TARGET) @build/M466_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_grave_stone/%.o: rel/d/a/obj/d_a_obj_grave_stone/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_grave_stone/%.o: rel/d/a/obj/d_a_obj_grave_stone/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_grave_stone/%.d @echo [466] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M466_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M466_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M466_D_FILES := $(M466_O_FILES:.o=.d) +$(M466_D_FILES): +include $(wildcard $(M466_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_groundwater/Makefile b/rel/d/a/obj/d_a_obj_groundwater/Makefile index 2997f14a238..7d0045152c0 100644 --- a/rel/d/a/obj/d_a_obj_groundwater/Makefile +++ b/rel/d/a/obj/d_a_obj_groundwater/Makefile @@ -40,10 +40,17 @@ $(M467_TARGET): $(M467_O_FILES) $(M467_LIBS) @python3 tools/lcf.py rel 467 --output $(M467_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M467_LDFLAGS) -o $(M467_TARGET) @build/M467_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_groundwater/%.o: rel/d/a/obj/d_a_obj_groundwater/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_groundwater/%.o: rel/d/a/obj/d_a_obj_groundwater/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_groundwater/%.d @echo [467] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M467_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M467_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M467_D_FILES := $(M467_O_FILES:.o=.d) +$(M467_D_FILES): +include $(wildcard $(M467_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_grz_rock/Makefile b/rel/d/a/obj/d_a_obj_grz_rock/Makefile index b5c629187a5..7a6188d268c 100644 --- a/rel/d/a/obj/d_a_obj_grz_rock/Makefile +++ b/rel/d/a/obj/d_a_obj_grz_rock/Makefile @@ -38,10 +38,17 @@ $(M468_TARGET): $(M468_O_FILES) $(M468_LIBS) @python3 tools/lcf.py rel 468 --output $(M468_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M468_LDFLAGS) -o $(M468_TARGET) @build/M468_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_grz_rock/%.o: rel/d/a/obj/d_a_obj_grz_rock/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_grz_rock/%.o: rel/d/a/obj/d_a_obj_grz_rock/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_grz_rock/%.d @echo [468] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M468_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M468_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M468_D_FILES := $(M468_O_FILES:.o=.d) +$(M468_D_FILES): +include $(wildcard $(M468_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_h_saku/Makefile b/rel/d/a/obj/d_a_obj_h_saku/Makefile index a836c97f32e..5f389b22292 100644 --- a/rel/d/a/obj/d_a_obj_h_saku/Makefile +++ b/rel/d/a/obj/d_a_obj_h_saku/Makefile @@ -40,10 +40,17 @@ $(M469_TARGET): $(M469_O_FILES) $(M469_LIBS) @python3 tools/lcf.py rel 469 --output $(M469_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M469_LDFLAGS) -o $(M469_TARGET) @build/M469_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_h_saku/%.o: rel/d/a/obj/d_a_obj_h_saku/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_h_saku/%.o: rel/d/a/obj/d_a_obj_h_saku/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_h_saku/%.d @echo [469] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M469_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M469_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M469_D_FILES := $(M469_O_FILES:.o=.d) +$(M469_D_FILES): +include $(wildcard $(M469_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_hakai_brl/Makefile b/rel/d/a/obj/d_a_obj_hakai_brl/Makefile index 49cd6221b3d..f5915e6ea69 100644 --- a/rel/d/a/obj/d_a_obj_hakai_brl/Makefile +++ b/rel/d/a/obj/d_a_obj_hakai_brl/Makefile @@ -38,10 +38,17 @@ $(M470_TARGET): $(M470_O_FILES) $(M470_LIBS) @python3 tools/lcf.py rel 470 --output $(M470_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M470_LDFLAGS) -o $(M470_TARGET) @build/M470_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hakai_brl/%.o: rel/d/a/obj/d_a_obj_hakai_brl/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hakai_brl/%.o: rel/d/a/obj/d_a_obj_hakai_brl/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hakai_brl/%.d @echo [470] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M470_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M470_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M470_D_FILES := $(M470_O_FILES:.o=.d) +$(M470_D_FILES): +include $(wildcard $(M470_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_hakai_ftr/Makefile b/rel/d/a/obj/d_a_obj_hakai_ftr/Makefile index e080b824eda..315f27d9009 100644 --- a/rel/d/a/obj/d_a_obj_hakai_ftr/Makefile +++ b/rel/d/a/obj/d_a_obj_hakai_ftr/Makefile @@ -38,10 +38,17 @@ $(M471_TARGET): $(M471_O_FILES) $(M471_LIBS) @python3 tools/lcf.py rel 471 --output $(M471_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M471_LDFLAGS) -o $(M471_TARGET) @build/M471_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hakai_ftr/%.o: rel/d/a/obj/d_a_obj_hakai_ftr/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hakai_ftr/%.o: rel/d/a/obj/d_a_obj_hakai_ftr/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hakai_ftr/%.d @echo [471] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M471_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M471_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M471_D_FILES := $(M471_O_FILES:.o=.d) +$(M471_D_FILES): +include $(wildcard $(M471_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_hasu2/Makefile b/rel/d/a/obj/d_a_obj_hasu2/Makefile index 64ccd7f01ca..4362bc50f7d 100644 --- a/rel/d/a/obj/d_a_obj_hasu2/Makefile +++ b/rel/d/a/obj/d_a_obj_hasu2/Makefile @@ -38,10 +38,17 @@ $(M472_TARGET): $(M472_O_FILES) $(M472_LIBS) @python3 tools/lcf.py rel 472 --output $(M472_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M472_LDFLAGS) -o $(M472_TARGET) @build/M472_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hasu2/%.o: rel/d/a/obj/d_a_obj_hasu2/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hasu2/%.o: rel/d/a/obj/d_a_obj_hasu2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hasu2/%.d @echo [472] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M472_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M472_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M472_D_FILES := $(M472_O_FILES:.o=.d) +$(M472_D_FILES): +include $(wildcard $(M472_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_hata/Makefile b/rel/d/a/obj/d_a_obj_hata/Makefile index 48edd4a13b4..7cd6243e60d 100644 --- a/rel/d/a/obj/d_a_obj_hata/Makefile +++ b/rel/d/a/obj/d_a_obj_hata/Makefile @@ -38,10 +38,17 @@ $(M473_TARGET): $(M473_O_FILES) $(M473_LIBS) @python3 tools/lcf.py rel 473 --output $(M473_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M473_LDFLAGS) -o $(M473_TARGET) @build/M473_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hata/%.o: rel/d/a/obj/d_a_obj_hata/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hata/%.o: rel/d/a/obj/d_a_obj_hata/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hata/%.d @echo [473] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M473_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M473_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M473_D_FILES := $(M473_O_FILES:.o=.d) +$(M473_D_FILES): +include $(wildcard $(M473_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_hb/Makefile b/rel/d/a/obj/d_a_obj_hb/Makefile index bea7a5d82a0..dc9e9138a89 100644 --- a/rel/d/a/obj/d_a_obj_hb/Makefile +++ b/rel/d/a/obj/d_a_obj_hb/Makefile @@ -40,10 +40,17 @@ $(M474_TARGET): $(M474_O_FILES) $(M474_LIBS) @python3 tools/lcf.py rel 474 --output $(M474_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M474_LDFLAGS) -o $(M474_TARGET) @build/M474_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hb/%.o: rel/d/a/obj/d_a_obj_hb/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hb/%.o: rel/d/a/obj/d_a_obj_hb/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hb/%.d @echo [474] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M474_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M474_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M474_D_FILES := $(M474_O_FILES:.o=.d) +$(M474_D_FILES): +include $(wildcard $(M474_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_hbombkoya/Makefile b/rel/d/a/obj/d_a_obj_hbombkoya/Makefile index a2c81e774b9..0e8e0a0ca14 100644 --- a/rel/d/a/obj/d_a_obj_hbombkoya/Makefile +++ b/rel/d/a/obj/d_a_obj_hbombkoya/Makefile @@ -38,10 +38,17 @@ $(M475_TARGET): $(M475_O_FILES) $(M475_LIBS) @python3 tools/lcf.py rel 475 --output $(M475_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M475_LDFLAGS) -o $(M475_TARGET) @build/M475_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hbombkoya/%.o: rel/d/a/obj/d_a_obj_hbombkoya/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hbombkoya/%.o: rel/d/a/obj/d_a_obj_hbombkoya/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hbombkoya/%.d @echo [475] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M475_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M475_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M475_D_FILES := $(M475_O_FILES:.o=.d) +$(M475_D_FILES): +include $(wildcard $(M475_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_heavySw/Makefile b/rel/d/a/obj/d_a_obj_heavySw/Makefile index 7bfd3f645bf..35ae901530a 100644 --- a/rel/d/a/obj/d_a_obj_heavySw/Makefile +++ b/rel/d/a/obj/d_a_obj_heavySw/Makefile @@ -40,10 +40,17 @@ $(M476_TARGET): $(M476_O_FILES) $(M476_LIBS) @python3 tools/lcf.py rel 476 --output $(M476_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M476_LDFLAGS) -o $(M476_TARGET) @build/M476_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_heavySw/%.o: rel/d/a/obj/d_a_obj_heavySw/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_heavySw/%.o: rel/d/a/obj/d_a_obj_heavySw/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_heavySw/%.d @echo [476] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M476_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M476_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M476_D_FILES := $(M476_O_FILES:.o=.d) +$(M476_D_FILES): +include $(wildcard $(M476_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_hfuta/Makefile b/rel/d/a/obj/d_a_obj_hfuta/Makefile index 2c3e686157c..a5e5a13c83e 100644 --- a/rel/d/a/obj/d_a_obj_hfuta/Makefile +++ b/rel/d/a/obj/d_a_obj_hfuta/Makefile @@ -40,10 +40,17 @@ $(M477_TARGET): $(M477_O_FILES) $(M477_LIBS) @python3 tools/lcf.py rel 477 --output $(M477_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M477_LDFLAGS) -o $(M477_TARGET) @build/M477_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hfuta/%.o: rel/d/a/obj/d_a_obj_hfuta/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hfuta/%.o: rel/d/a/obj/d_a_obj_hfuta/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hfuta/%.d @echo [477] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M477_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M477_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M477_D_FILES := $(M477_O_FILES:.o=.d) +$(M477_D_FILES): +include $(wildcard $(M477_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_hhashi/Makefile b/rel/d/a/obj/d_a_obj_hhashi/Makefile index db63127efbc..b6bca08dbbe 100644 --- a/rel/d/a/obj/d_a_obj_hhashi/Makefile +++ b/rel/d/a/obj/d_a_obj_hhashi/Makefile @@ -38,10 +38,17 @@ $(M97_TARGET): $(M97_O_FILES) $(M97_LIBS) @python3 tools/lcf.py rel 97 --output $(M97_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M97_LDFLAGS) -o $(M97_TARGET) @build/M97_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hhashi/%.o: rel/d/a/obj/d_a_obj_hhashi/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hhashi/%.o: rel/d/a/obj/d_a_obj_hhashi/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hhashi/%.d @echo [ 97] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M97_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M97_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M97_D_FILES := $(M97_O_FILES:.o=.d) +$(M97_D_FILES): +include $(wildcard $(M97_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_hsTarget/Makefile b/rel/d/a/obj/d_a_obj_hsTarget/Makefile index ba483c0c7e0..4d676c57aaa 100644 --- a/rel/d/a/obj/d_a_obj_hsTarget/Makefile +++ b/rel/d/a/obj/d_a_obj_hsTarget/Makefile @@ -40,10 +40,17 @@ $(M478_TARGET): $(M478_O_FILES) $(M478_LIBS) @python3 tools/lcf.py rel 478 --output $(M478_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M478_LDFLAGS) -o $(M478_TARGET) @build/M478_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hsTarget/%.o: rel/d/a/obj/d_a_obj_hsTarget/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hsTarget/%.o: rel/d/a/obj/d_a_obj_hsTarget/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hsTarget/%.d @echo [478] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M478_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M478_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M478_D_FILES := $(M478_O_FILES:.o=.d) +$(M478_D_FILES): +include $(wildcard $(M478_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ice_l/Makefile b/rel/d/a/obj/d_a_obj_ice_l/Makefile index 227dfc5f62f..f5263c39637 100644 --- a/rel/d/a/obj/d_a_obj_ice_l/Makefile +++ b/rel/d/a/obj/d_a_obj_ice_l/Makefile @@ -38,10 +38,17 @@ $(M479_TARGET): $(M479_O_FILES) $(M479_LIBS) @python3 tools/lcf.py rel 479 --output $(M479_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M479_LDFLAGS) -o $(M479_TARGET) @build/M479_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ice_l/%.o: rel/d/a/obj/d_a_obj_ice_l/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ice_l/%.o: rel/d/a/obj/d_a_obj_ice_l/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ice_l/%.d @echo [479] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M479_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M479_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M479_D_FILES := $(M479_O_FILES:.o=.d) +$(M479_D_FILES): +include $(wildcard $(M479_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ice_s/Makefile b/rel/d/a/obj/d_a_obj_ice_s/Makefile index 38bc7e6e918..b4959ab90a7 100644 --- a/rel/d/a/obj/d_a_obj_ice_s/Makefile +++ b/rel/d/a/obj/d_a_obj_ice_s/Makefile @@ -40,10 +40,17 @@ $(M480_TARGET): $(M480_O_FILES) $(M480_LIBS) @python3 tools/lcf.py rel 480 --output $(M480_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M480_LDFLAGS) -o $(M480_TARGET) @build/M480_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ice_s/%.o: rel/d/a/obj/d_a_obj_ice_s/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ice_s/%.o: rel/d/a/obj/d_a_obj_ice_s/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ice_s/%.d @echo [480] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M480_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M480_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M480_D_FILES := $(M480_O_FILES:.o=.d) +$(M480_D_FILES): +include $(wildcard $(M480_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_iceblock/Makefile b/rel/d/a/obj/d_a_obj_iceblock/Makefile index 55716e2ebef..758b58a1692 100644 --- a/rel/d/a/obj/d_a_obj_iceblock/Makefile +++ b/rel/d/a/obj/d_a_obj_iceblock/Makefile @@ -40,10 +40,17 @@ $(M481_TARGET): $(M481_O_FILES) $(M481_LIBS) @python3 tools/lcf.py rel 481 --output $(M481_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M481_LDFLAGS) -o $(M481_TARGET) @build/M481_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_iceblock/%.o: rel/d/a/obj/d_a_obj_iceblock/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_iceblock/%.o: rel/d/a/obj/d_a_obj_iceblock/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_iceblock/%.d @echo [481] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M481_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M481_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M481_D_FILES := $(M481_O_FILES:.o=.d) +$(M481_D_FILES): +include $(wildcard $(M481_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_iceleaf/Makefile b/rel/d/a/obj/d_a_obj_iceleaf/Makefile index d784fa6b000..b1d53a18cf5 100644 --- a/rel/d/a/obj/d_a_obj_iceleaf/Makefile +++ b/rel/d/a/obj/d_a_obj_iceleaf/Makefile @@ -40,10 +40,17 @@ $(M482_TARGET): $(M482_O_FILES) $(M482_LIBS) @python3 tools/lcf.py rel 482 --output $(M482_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M482_LDFLAGS) -o $(M482_TARGET) @build/M482_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_iceleaf/%.o: rel/d/a/obj/d_a_obj_iceleaf/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_iceleaf/%.o: rel/d/a/obj/d_a_obj_iceleaf/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_iceleaf/%.d @echo [482] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M482_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M482_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M482_D_FILES := $(M482_O_FILES:.o=.d) +$(M482_D_FILES): +include $(wildcard $(M482_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ihasi/Makefile b/rel/d/a/obj/d_a_obj_ihasi/Makefile index 08c1b9292c1..d316ba5bf78 100644 --- a/rel/d/a/obj/d_a_obj_ihasi/Makefile +++ b/rel/d/a/obj/d_a_obj_ihasi/Makefile @@ -38,10 +38,17 @@ $(M483_TARGET): $(M483_O_FILES) $(M483_LIBS) @python3 tools/lcf.py rel 483 --output $(M483_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M483_LDFLAGS) -o $(M483_TARGET) @build/M483_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ihasi/%.o: rel/d/a/obj/d_a_obj_ihasi/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ihasi/%.o: rel/d/a/obj/d_a_obj_ihasi/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ihasi/%.d @echo [483] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M483_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M483_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M483_D_FILES := $(M483_O_FILES:.o=.d) +$(M483_D_FILES): +include $(wildcard $(M483_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ikada/Makefile b/rel/d/a/obj/d_a_obj_ikada/Makefile index c6fbd99114b..72ec941b6b0 100644 --- a/rel/d/a/obj/d_a_obj_ikada/Makefile +++ b/rel/d/a/obj/d_a_obj_ikada/Makefile @@ -38,10 +38,17 @@ $(M484_TARGET): $(M484_O_FILES) $(M484_LIBS) @python3 tools/lcf.py rel 484 --output $(M484_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M484_LDFLAGS) -o $(M484_TARGET) @build/M484_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ikada/%.o: rel/d/a/obj/d_a_obj_ikada/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ikada/%.o: rel/d/a/obj/d_a_obj_ikada/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ikada/%.d @echo [484] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M484_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M484_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M484_D_FILES := $(M484_O_FILES:.o=.d) +$(M484_D_FILES): +include $(wildcard $(M484_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_inobone/Makefile b/rel/d/a/obj/d_a_obj_inobone/Makefile index ec88ab9f30a..a69db050608 100644 --- a/rel/d/a/obj/d_a_obj_inobone/Makefile +++ b/rel/d/a/obj/d_a_obj_inobone/Makefile @@ -38,10 +38,17 @@ $(M485_TARGET): $(M485_O_FILES) $(M485_LIBS) @python3 tools/lcf.py rel 485 --output $(M485_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M485_LDFLAGS) -o $(M485_TARGET) @build/M485_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_inobone/%.o: rel/d/a/obj/d_a_obj_inobone/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_inobone/%.o: rel/d/a/obj/d_a_obj_inobone/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_inobone/%.d @echo [485] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M485_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M485_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M485_D_FILES := $(M485_O_FILES:.o=.d) +$(M485_D_FILES): +include $(wildcard $(M485_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ita/Makefile b/rel/d/a/obj/d_a_obj_ita/Makefile index 1568136f86e..18ab8d29866 100644 --- a/rel/d/a/obj/d_a_obj_ita/Makefile +++ b/rel/d/a/obj/d_a_obj_ita/Makefile @@ -40,10 +40,17 @@ $(M486_TARGET): $(M486_O_FILES) $(M486_LIBS) @python3 tools/lcf.py rel 486 --output $(M486_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M486_LDFLAGS) -o $(M486_TARGET) @build/M486_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ita/%.o: rel/d/a/obj/d_a_obj_ita/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ita/%.o: rel/d/a/obj/d_a_obj_ita/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ita/%.d @echo [486] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M486_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M486_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M486_D_FILES := $(M486_O_FILES:.o=.d) +$(M486_D_FILES): +include $(wildcard $(M486_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_itamato/Makefile b/rel/d/a/obj/d_a_obj_itamato/Makefile index 0203bef38bc..0aaf700b2a0 100644 --- a/rel/d/a/obj/d_a_obj_itamato/Makefile +++ b/rel/d/a/obj/d_a_obj_itamato/Makefile @@ -40,10 +40,17 @@ $(M487_TARGET): $(M487_O_FILES) $(M487_LIBS) @python3 tools/lcf.py rel 487 --output $(M487_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M487_LDFLAGS) -o $(M487_TARGET) @build/M487_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_itamato/%.o: rel/d/a/obj/d_a_obj_itamato/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_itamato/%.o: rel/d/a/obj/d_a_obj_itamato/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_itamato/%.d @echo [487] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M487_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M487_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M487_D_FILES := $(M487_O_FILES:.o=.d) +$(M487_D_FILES): +include $(wildcard $(M487_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ito/Makefile b/rel/d/a/obj/d_a_obj_ito/Makefile index bb5c900fca6..70ade9f393f 100644 --- a/rel/d/a/obj/d_a_obj_ito/Makefile +++ b/rel/d/a/obj/d_a_obj_ito/Makefile @@ -40,10 +40,17 @@ $(M19_TARGET): $(M19_O_FILES) $(M19_LIBS) @python3 tools/lcf.py rel 19 --output $(M19_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M19_LDFLAGS) -o $(M19_TARGET) @build/M19_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ito/%.o: rel/d/a/obj/d_a_obj_ito/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ito/%.o: rel/d/a/obj/d_a_obj_ito/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ito/%.d @echo [ 19] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M19_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M19_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M19_D_FILES := $(M19_O_FILES:.o=.d) +$(M19_D_FILES): +include $(wildcard $(M19_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kabuto/Makefile b/rel/d/a/obj/d_a_obj_kabuto/Makefile index 94dae93e69c..3440f2fdac6 100644 --- a/rel/d/a/obj/d_a_obj_kabuto/Makefile +++ b/rel/d/a/obj/d_a_obj_kabuto/Makefile @@ -40,10 +40,17 @@ $(M488_TARGET): $(M488_O_FILES) $(M488_LIBS) @python3 tools/lcf.py rel 488 --output $(M488_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M488_LDFLAGS) -o $(M488_TARGET) @build/M488_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kabuto/%.o: rel/d/a/obj/d_a_obj_kabuto/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kabuto/%.o: rel/d/a/obj/d_a_obj_kabuto/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kabuto/%.d @echo [488] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M488_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M488_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M488_D_FILES := $(M488_O_FILES:.o=.d) +$(M488_D_FILES): +include $(wildcard $(M488_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kag/Makefile b/rel/d/a/obj/d_a_obj_kag/Makefile index 6dc093268fa..894463744c8 100644 --- a/rel/d/a/obj/d_a_obj_kag/Makefile +++ b/rel/d/a/obj/d_a_obj_kag/Makefile @@ -40,10 +40,17 @@ $(M489_TARGET): $(M489_O_FILES) $(M489_LIBS) @python3 tools/lcf.py rel 489 --output $(M489_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M489_LDFLAGS) -o $(M489_TARGET) @build/M489_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kag/%.o: rel/d/a/obj/d_a_obj_kag/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kag/%.o: rel/d/a/obj/d_a_obj_kag/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kag/%.d @echo [489] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M489_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M489_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M489_D_FILES := $(M489_O_FILES:.o=.d) +$(M489_D_FILES): +include $(wildcard $(M489_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kage/Makefile b/rel/d/a/obj/d_a_obj_kage/Makefile index 494057cffa8..130f44705cc 100644 --- a/rel/d/a/obj/d_a_obj_kage/Makefile +++ b/rel/d/a/obj/d_a_obj_kage/Makefile @@ -38,10 +38,17 @@ $(M490_TARGET): $(M490_O_FILES) $(M490_LIBS) @python3 tools/lcf.py rel 490 --output $(M490_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M490_LDFLAGS) -o $(M490_TARGET) @build/M490_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kage/%.o: rel/d/a/obj/d_a_obj_kage/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kage/%.o: rel/d/a/obj/d_a_obj_kage/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kage/%.d @echo [490] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M490_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M490_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M490_D_FILES := $(M490_O_FILES:.o=.d) +$(M490_D_FILES): +include $(wildcard $(M490_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kago/Makefile b/rel/d/a/obj/d_a_obj_kago/Makefile index fb9653b1fee..61022c81d4d 100644 --- a/rel/d/a/obj/d_a_obj_kago/Makefile +++ b/rel/d/a/obj/d_a_obj_kago/Makefile @@ -40,10 +40,17 @@ $(M491_TARGET): $(M491_O_FILES) $(M491_LIBS) @python3 tools/lcf.py rel 491 --output $(M491_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M491_LDFLAGS) -o $(M491_TARGET) @build/M491_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kago/%.o: rel/d/a/obj/d_a_obj_kago/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kago/%.o: rel/d/a/obj/d_a_obj_kago/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kago/%.d @echo [491] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M491_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M491_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M491_D_FILES := $(M491_O_FILES:.o=.d) +$(M491_D_FILES): +include $(wildcard $(M491_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kaisou/Makefile b/rel/d/a/obj/d_a_obj_kaisou/Makefile index fa291d66c8c..8be39e48b3b 100644 --- a/rel/d/a/obj/d_a_obj_kaisou/Makefile +++ b/rel/d/a/obj/d_a_obj_kaisou/Makefile @@ -38,10 +38,17 @@ $(M492_TARGET): $(M492_O_FILES) $(M492_LIBS) @python3 tools/lcf.py rel 492 --output $(M492_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M492_LDFLAGS) -o $(M492_TARGET) @build/M492_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kaisou/%.o: rel/d/a/obj/d_a_obj_kaisou/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kaisou/%.o: rel/d/a/obj/d_a_obj_kaisou/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kaisou/%.d @echo [492] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M492_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M492_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M492_D_FILES := $(M492_O_FILES:.o=.d) +$(M492_D_FILES): +include $(wildcard $(M492_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kamakiri/Makefile b/rel/d/a/obj/d_a_obj_kamakiri/Makefile index 3ff11730b01..a2c47cd3c40 100644 --- a/rel/d/a/obj/d_a_obj_kamakiri/Makefile +++ b/rel/d/a/obj/d_a_obj_kamakiri/Makefile @@ -40,10 +40,17 @@ $(M493_TARGET): $(M493_O_FILES) $(M493_LIBS) @python3 tools/lcf.py rel 493 --output $(M493_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M493_LDFLAGS) -o $(M493_TARGET) @build/M493_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kamakiri/%.o: rel/d/a/obj/d_a_obj_kamakiri/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kamakiri/%.o: rel/d/a/obj/d_a_obj_kamakiri/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kamakiri/%.d @echo [493] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M493_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M493_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M493_D_FILES := $(M493_O_FILES:.o=.d) +$(M493_D_FILES): +include $(wildcard $(M493_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kanban2/Makefile b/rel/d/a/obj/d_a_obj_kanban2/Makefile index 4f9712ec3b5..f1cc4f67993 100644 --- a/rel/d/a/obj/d_a_obj_kanban2/Makefile +++ b/rel/d/a/obj/d_a_obj_kanban2/Makefile @@ -40,10 +40,17 @@ $(M98_TARGET): $(M98_O_FILES) $(M98_LIBS) @python3 tools/lcf.py rel 98 --output $(M98_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M98_LDFLAGS) -o $(M98_TARGET) @build/M98_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kanban2/%.o: rel/d/a/obj/d_a_obj_kanban2/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kanban2/%.o: rel/d/a/obj/d_a_obj_kanban2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kanban2/%.d @echo [ 98] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M98_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M98_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M98_D_FILES := $(M98_O_FILES:.o=.d) +$(M98_D_FILES): +include $(wildcard $(M98_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kantera/Makefile b/rel/d/a/obj/d_a_obj_kantera/Makefile index d8466520424..a54b4f0015a 100644 --- a/rel/d/a/obj/d_a_obj_kantera/Makefile +++ b/rel/d/a/obj/d_a_obj_kantera/Makefile @@ -40,10 +40,17 @@ $(M494_TARGET): $(M494_O_FILES) $(M494_LIBS) @python3 tools/lcf.py rel 494 --output $(M494_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M494_LDFLAGS) -o $(M494_TARGET) @build/M494_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kantera/%.o: rel/d/a/obj/d_a_obj_kantera/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kantera/%.o: rel/d/a/obj/d_a_obj_kantera/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kantera/%.d @echo [494] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M494_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M494_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M494_D_FILES := $(M494_O_FILES:.o=.d) +$(M494_D_FILES): +include $(wildcard $(M494_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_katatsumuri/Makefile b/rel/d/a/obj/d_a_obj_katatsumuri/Makefile index a870356be40..44802afae96 100644 --- a/rel/d/a/obj/d_a_obj_katatsumuri/Makefile +++ b/rel/d/a/obj/d_a_obj_katatsumuri/Makefile @@ -40,10 +40,17 @@ $(M495_TARGET): $(M495_O_FILES) $(M495_LIBS) @python3 tools/lcf.py rel 495 --output $(M495_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M495_LDFLAGS) -o $(M495_TARGET) @build/M495_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_katatsumuri/%.o: rel/d/a/obj/d_a_obj_katatsumuri/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_katatsumuri/%.o: rel/d/a/obj/d_a_obj_katatsumuri/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_katatsumuri/%.d @echo [495] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M495_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M495_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M495_D_FILES := $(M495_O_FILES:.o=.d) +$(M495_D_FILES): +include $(wildcard $(M495_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kazeneko/Makefile b/rel/d/a/obj/d_a_obj_kazeneko/Makefile index 61fc9334e95..bab4fa9c938 100644 --- a/rel/d/a/obj/d_a_obj_kazeneko/Makefile +++ b/rel/d/a/obj/d_a_obj_kazeneko/Makefile @@ -38,10 +38,17 @@ $(M496_TARGET): $(M496_O_FILES) $(M496_LIBS) @python3 tools/lcf.py rel 496 --output $(M496_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M496_LDFLAGS) -o $(M496_TARGET) @build/M496_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kazeneko/%.o: rel/d/a/obj/d_a_obj_kazeneko/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kazeneko/%.o: rel/d/a/obj/d_a_obj_kazeneko/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kazeneko/%.d @echo [496] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M496_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M496_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M496_D_FILES := $(M496_O_FILES:.o=.d) +$(M496_D_FILES): +include $(wildcard $(M496_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kbacket/Makefile b/rel/d/a/obj/d_a_obj_kbacket/Makefile index f96c38ce1ad..489d9829745 100644 --- a/rel/d/a/obj/d_a_obj_kbacket/Makefile +++ b/rel/d/a/obj/d_a_obj_kbacket/Makefile @@ -40,10 +40,17 @@ $(M99_TARGET): $(M99_O_FILES) $(M99_LIBS) @python3 tools/lcf.py rel 99 --output $(M99_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M99_LDFLAGS) -o $(M99_TARGET) @build/M99_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbacket/%.o: rel/d/a/obj/d_a_obj_kbacket/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbacket/%.o: rel/d/a/obj/d_a_obj_kbacket/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbacket/%.d @echo [ 99] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M99_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M99_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M99_D_FILES := $(M99_O_FILES:.o=.d) +$(M99_D_FILES): +include $(wildcard $(M99_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kbox/Makefile b/rel/d/a/obj/d_a_obj_kbox/Makefile index cacf4d1346e..bfb4a4a5652 100644 --- a/rel/d/a/obj/d_a_obj_kbox/Makefile +++ b/rel/d/a/obj/d_a_obj_kbox/Makefile @@ -40,10 +40,17 @@ $(M497_TARGET): $(M497_O_FILES) $(M497_LIBS) @python3 tools/lcf.py rel 497 --output $(M497_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M497_LDFLAGS) -o $(M497_TARGET) @build/M497_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbox/%.o: rel/d/a/obj/d_a_obj_kbox/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbox/%.o: rel/d/a/obj/d_a_obj_kbox/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbox/%.d @echo [497] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M497_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M497_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M497_D_FILES := $(M497_O_FILES:.o=.d) +$(M497_D_FILES): +include $(wildcard $(M497_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_key/Makefile b/rel/d/a/obj/d_a_obj_key/Makefile index 53e8c06f2c7..ba43c9ead13 100644 --- a/rel/d/a/obj/d_a_obj_key/Makefile +++ b/rel/d/a/obj/d_a_obj_key/Makefile @@ -40,10 +40,17 @@ $(M498_TARGET): $(M498_O_FILES) $(M498_LIBS) @python3 tools/lcf.py rel 498 --output $(M498_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M498_LDFLAGS) -o $(M498_TARGET) @build/M498_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_key/%.o: rel/d/a/obj/d_a_obj_key/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_key/%.o: rel/d/a/obj/d_a_obj_key/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_key/%.d @echo [498] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M498_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M498_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M498_D_FILES := $(M498_O_FILES:.o=.d) +$(M498_D_FILES): +include $(wildcard $(M498_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_keyhole/Makefile b/rel/d/a/obj/d_a_obj_keyhole/Makefile index dee9642f483..504339a62e9 100644 --- a/rel/d/a/obj/d_a_obj_keyhole/Makefile +++ b/rel/d/a/obj/d_a_obj_keyhole/Makefile @@ -40,10 +40,17 @@ $(M499_TARGET): $(M499_O_FILES) $(M499_LIBS) @python3 tools/lcf.py rel 499 --output $(M499_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M499_LDFLAGS) -o $(M499_TARGET) @build/M499_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_keyhole/%.o: rel/d/a/obj/d_a_obj_keyhole/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_keyhole/%.o: rel/d/a/obj/d_a_obj_keyhole/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_keyhole/%.d @echo [499] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M499_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M499_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M499_D_FILES := $(M499_O_FILES:.o=.d) +$(M499_D_FILES): +include $(wildcard $(M499_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kgate/Makefile b/rel/d/a/obj/d_a_obj_kgate/Makefile index 8388d113a77..abdc1258bf1 100644 --- a/rel/d/a/obj/d_a_obj_kgate/Makefile +++ b/rel/d/a/obj/d_a_obj_kgate/Makefile @@ -40,10 +40,17 @@ $(M100_TARGET): $(M100_O_FILES) $(M100_LIBS) @python3 tools/lcf.py rel 100 --output $(M100_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M100_LDFLAGS) -o $(M100_TARGET) @build/M100_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate/%.o: rel/d/a/obj/d_a_obj_kgate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate/%.o: rel/d/a/obj/d_a_obj_kgate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate/%.d @echo [100] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M100_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M100_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M100_D_FILES := $(M100_O_FILES:.o=.d) +$(M100_D_FILES): +include $(wildcard $(M100_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ki/Makefile b/rel/d/a/obj/d_a_obj_ki/Makefile index 17ec8562d53..b55a4cb249c 100644 --- a/rel/d/a/obj/d_a_obj_ki/Makefile +++ b/rel/d/a/obj/d_a_obj_ki/Makefile @@ -40,10 +40,17 @@ $(M500_TARGET): $(M500_O_FILES) $(M500_LIBS) @python3 tools/lcf.py rel 500 --output $(M500_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M500_LDFLAGS) -o $(M500_TARGET) @build/M500_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ki/%.o: rel/d/a/obj/d_a_obj_ki/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ki/%.o: rel/d/a/obj/d_a_obj_ki/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ki/%.d @echo [500] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M500_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M500_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M500_D_FILES := $(M500_O_FILES:.o=.d) +$(M500_D_FILES): +include $(wildcard $(M500_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kiPot/Makefile b/rel/d/a/obj/d_a_obj_kiPot/Makefile index 70f445642bc..d03a20f4bd3 100644 --- a/rel/d/a/obj/d_a_obj_kiPot/Makefile +++ b/rel/d/a/obj/d_a_obj_kiPot/Makefile @@ -40,10 +40,17 @@ $(M501_TARGET): $(M501_O_FILES) $(M501_LIBS) @python3 tools/lcf.py rel 501 --output $(M501_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M501_LDFLAGS) -o $(M501_TARGET) @build/M501_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kiPot/%.o: rel/d/a/obj/d_a_obj_kiPot/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kiPot/%.o: rel/d/a/obj/d_a_obj_kiPot/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kiPot/%.d @echo [501] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M501_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M501_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M501_D_FILES := $(M501_O_FILES:.o=.d) +$(M501_D_FILES): +include $(wildcard $(M501_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kita/Makefile b/rel/d/a/obj/d_a_obj_kita/Makefile index 04613f0d597..ec4e5594a0f 100644 --- a/rel/d/a/obj/d_a_obj_kita/Makefile +++ b/rel/d/a/obj/d_a_obj_kita/Makefile @@ -40,10 +40,17 @@ $(M502_TARGET): $(M502_O_FILES) $(M502_LIBS) @python3 tools/lcf.py rel 502 --output $(M502_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M502_LDFLAGS) -o $(M502_TARGET) @build/M502_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kita/%.o: rel/d/a/obj/d_a_obj_kita/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kita/%.o: rel/d/a/obj/d_a_obj_kita/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kita/%.d @echo [502] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M502_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M502_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M502_D_FILES := $(M502_O_FILES:.o=.d) +$(M502_D_FILES): +include $(wildcard $(M502_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kjgjs/Makefile b/rel/d/a/obj/d_a_obj_kjgjs/Makefile index 6395fd495c8..b1058dc8b6f 100644 --- a/rel/d/a/obj/d_a_obj_kjgjs/Makefile +++ b/rel/d/a/obj/d_a_obj_kjgjs/Makefile @@ -38,10 +38,17 @@ $(M503_TARGET): $(M503_O_FILES) $(M503_LIBS) @python3 tools/lcf.py rel 503 --output $(M503_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M503_LDFLAGS) -o $(M503_TARGET) @build/M503_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kjgjs/%.o: rel/d/a/obj/d_a_obj_kjgjs/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kjgjs/%.o: rel/d/a/obj/d_a_obj_kjgjs/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kjgjs/%.d @echo [503] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M503_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M503_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M503_D_FILES := $(M503_O_FILES:.o=.d) +$(M503_D_FILES): +include $(wildcard $(M503_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kkanban/Makefile b/rel/d/a/obj/d_a_obj_kkanban/Makefile index 53ea20e94ee..8f7c2618817 100644 --- a/rel/d/a/obj/d_a_obj_kkanban/Makefile +++ b/rel/d/a/obj/d_a_obj_kkanban/Makefile @@ -38,10 +38,17 @@ $(M504_TARGET): $(M504_O_FILES) $(M504_LIBS) @python3 tools/lcf.py rel 504 --output $(M504_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M504_LDFLAGS) -o $(M504_TARGET) @build/M504_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kkanban/%.o: rel/d/a/obj/d_a_obj_kkanban/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kkanban/%.o: rel/d/a/obj/d_a_obj_kkanban/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kkanban/%.d @echo [504] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M504_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M504_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M504_D_FILES := $(M504_O_FILES:.o=.d) +$(M504_D_FILES): +include $(wildcard $(M504_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_klift00/Makefile b/rel/d/a/obj/d_a_obj_klift00/Makefile index 5ead397f84d..da361ef339b 100644 --- a/rel/d/a/obj/d_a_obj_klift00/Makefile +++ b/rel/d/a/obj/d_a_obj_klift00/Makefile @@ -38,10 +38,17 @@ $(M101_TARGET): $(M101_O_FILES) $(M101_LIBS) @python3 tools/lcf.py rel 101 --output $(M101_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M101_LDFLAGS) -o $(M101_TARGET) @build/M101_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_klift00/%.o: rel/d/a/obj/d_a_obj_klift00/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_klift00/%.o: rel/d/a/obj/d_a_obj_klift00/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_klift00/%.d @echo [101] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M101_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M101_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M101_D_FILES := $(M101_O_FILES:.o=.d) +$(M101_D_FILES): +include $(wildcard $(M101_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_knBullet/Makefile b/rel/d/a/obj/d_a_obj_knBullet/Makefile index d9717337f2a..1a4a2a57b45 100644 --- a/rel/d/a/obj/d_a_obj_knBullet/Makefile +++ b/rel/d/a/obj/d_a_obj_knBullet/Makefile @@ -38,10 +38,17 @@ $(M505_TARGET): $(M505_O_FILES) $(M505_LIBS) @python3 tools/lcf.py rel 505 --output $(M505_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M505_LDFLAGS) -o $(M505_TARGET) @build/M505_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_knBullet/%.o: rel/d/a/obj/d_a_obj_knBullet/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_knBullet/%.o: rel/d/a/obj/d_a_obj_knBullet/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_knBullet/%.d @echo [505] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M505_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M505_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M505_D_FILES := $(M505_O_FILES:.o=.d) +$(M505_D_FILES): +include $(wildcard $(M505_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kshutter/Makefile b/rel/d/a/obj/d_a_obj_kshutter/Makefile index ef0071149be..7bd0c972eb4 100644 --- a/rel/d/a/obj/d_a_obj_kshutter/Makefile +++ b/rel/d/a/obj/d_a_obj_kshutter/Makefile @@ -40,10 +40,17 @@ $(M506_TARGET): $(M506_O_FILES) $(M506_LIBS) @python3 tools/lcf.py rel 506 --output $(M506_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M506_LDFLAGS) -o $(M506_TARGET) @build/M506_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kshutter/%.o: rel/d/a/obj/d_a_obj_kshutter/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kshutter/%.o: rel/d/a/obj/d_a_obj_kshutter/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kshutter/%.d @echo [506] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M506_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M506_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M506_D_FILES := $(M506_O_FILES:.o=.d) +$(M506_D_FILES): +include $(wildcard $(M506_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ktonfire/Makefile b/rel/d/a/obj/d_a_obj_ktonfire/Makefile index 7f4268ba431..2b70431496c 100644 --- a/rel/d/a/obj/d_a_obj_ktonfire/Makefile +++ b/rel/d/a/obj/d_a_obj_ktonfire/Makefile @@ -40,10 +40,17 @@ $(M102_TARGET): $(M102_O_FILES) $(M102_LIBS) @python3 tools/lcf.py rel 102 --output $(M102_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M102_LDFLAGS) -o $(M102_TARGET) @build/M102_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ktonfire/%.o: rel/d/a/obj/d_a_obj_ktonfire/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ktonfire/%.o: rel/d/a/obj/d_a_obj_ktonfire/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ktonfire/%.d @echo [102] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M102_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M102_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M102_D_FILES := $(M102_O_FILES:.o=.d) +$(M102_D_FILES): +include $(wildcard $(M102_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kuwagata/Makefile b/rel/d/a/obj/d_a_obj_kuwagata/Makefile index 5b2be0dbd0a..57a32a081e6 100644 --- a/rel/d/a/obj/d_a_obj_kuwagata/Makefile +++ b/rel/d/a/obj/d_a_obj_kuwagata/Makefile @@ -40,10 +40,17 @@ $(M507_TARGET): $(M507_O_FILES) $(M507_LIBS) @python3 tools/lcf.py rel 507 --output $(M507_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M507_LDFLAGS) -o $(M507_TARGET) @build/M507_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kuwagata/%.o: rel/d/a/obj/d_a_obj_kuwagata/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kuwagata/%.o: rel/d/a/obj/d_a_obj_kuwagata/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kuwagata/%.d @echo [507] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M507_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M507_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M507_D_FILES := $(M507_O_FILES:.o=.d) +$(M507_D_FILES): +include $(wildcard $(M507_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kwheel00/Makefile b/rel/d/a/obj/d_a_obj_kwheel00/Makefile index 02e5f9d2e0d..04cf1dd834d 100644 --- a/rel/d/a/obj/d_a_obj_kwheel00/Makefile +++ b/rel/d/a/obj/d_a_obj_kwheel00/Makefile @@ -38,10 +38,17 @@ $(M508_TARGET): $(M508_O_FILES) $(M508_LIBS) @python3 tools/lcf.py rel 508 --output $(M508_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M508_LDFLAGS) -o $(M508_TARGET) @build/M508_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kwheel00/%.o: rel/d/a/obj/d_a_obj_kwheel00/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kwheel00/%.o: rel/d/a/obj/d_a_obj_kwheel00/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kwheel00/%.d @echo [508] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M508_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M508_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M508_D_FILES := $(M508_O_FILES:.o=.d) +$(M508_D_FILES): +include $(wildcard $(M508_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kwheel01/Makefile b/rel/d/a/obj/d_a_obj_kwheel01/Makefile index a42a4acf24c..783cc30f20b 100644 --- a/rel/d/a/obj/d_a_obj_kwheel01/Makefile +++ b/rel/d/a/obj/d_a_obj_kwheel01/Makefile @@ -38,10 +38,17 @@ $(M509_TARGET): $(M509_O_FILES) $(M509_LIBS) @python3 tools/lcf.py rel 509 --output $(M509_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M509_LDFLAGS) -o $(M509_TARGET) @build/M509_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kwheel01/%.o: rel/d/a/obj/d_a_obj_kwheel01/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kwheel01/%.o: rel/d/a/obj/d_a_obj_kwheel01/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kwheel01/%.d @echo [509] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M509_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M509_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M509_D_FILES := $(M509_O_FILES:.o=.d) +$(M509_D_FILES): +include $(wildcard $(M509_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_kznkarm/Makefile b/rel/d/a/obj/d_a_obj_kznkarm/Makefile index 3be92607dd1..b8ed5947dfa 100644 --- a/rel/d/a/obj/d_a_obj_kznkarm/Makefile +++ b/rel/d/a/obj/d_a_obj_kznkarm/Makefile @@ -38,10 +38,17 @@ $(M510_TARGET): $(M510_O_FILES) $(M510_LIBS) @python3 tools/lcf.py rel 510 --output $(M510_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M510_LDFLAGS) -o $(M510_TARGET) @build/M510_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kznkarm/%.o: rel/d/a/obj/d_a_obj_kznkarm/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kznkarm/%.o: rel/d/a/obj/d_a_obj_kznkarm/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kznkarm/%.d @echo [510] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M510_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M510_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M510_D_FILES := $(M510_O_FILES:.o=.d) +$(M510_D_FILES): +include $(wildcard $(M510_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ladder/Makefile b/rel/d/a/obj/d_a_obj_ladder/Makefile index 4678800460e..454a76a93af 100644 --- a/rel/d/a/obj/d_a_obj_ladder/Makefile +++ b/rel/d/a/obj/d_a_obj_ladder/Makefile @@ -38,10 +38,17 @@ $(M103_TARGET): $(M103_O_FILES) $(M103_LIBS) @python3 tools/lcf.py rel 103 --output $(M103_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M103_LDFLAGS) -o $(M103_TARGET) @build/M103_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ladder/%.o: rel/d/a/obj/d_a_obj_ladder/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ladder/%.o: rel/d/a/obj/d_a_obj_ladder/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ladder/%.d @echo [103] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M103_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M103_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M103_D_FILES := $(M103_O_FILES:.o=.d) +$(M103_D_FILES): +include $(wildcard $(M103_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_laundry/Makefile b/rel/d/a/obj/d_a_obj_laundry/Makefile index 3c3cd4970b6..76244dd5b91 100644 --- a/rel/d/a/obj/d_a_obj_laundry/Makefile +++ b/rel/d/a/obj/d_a_obj_laundry/Makefile @@ -38,10 +38,17 @@ $(M511_TARGET): $(M511_O_FILES) $(M511_LIBS) @python3 tools/lcf.py rel 511 --output $(M511_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M511_LDFLAGS) -o $(M511_TARGET) @build/M511_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_laundry/%.o: rel/d/a/obj/d_a_obj_laundry/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_laundry/%.o: rel/d/a/obj/d_a_obj_laundry/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_laundry/%.d @echo [511] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M511_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M511_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M511_D_FILES := $(M511_O_FILES:.o=.d) +$(M511_D_FILES): +include $(wildcard $(M511_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_laundry_rope/Makefile b/rel/d/a/obj/d_a_obj_laundry_rope/Makefile index f79486d4a09..5897bb2f71f 100644 --- a/rel/d/a/obj/d_a_obj_laundry_rope/Makefile +++ b/rel/d/a/obj/d_a_obj_laundry_rope/Makefile @@ -38,10 +38,17 @@ $(M512_TARGET): $(M512_O_FILES) $(M512_LIBS) @python3 tools/lcf.py rel 512 --output $(M512_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M512_LDFLAGS) -o $(M512_TARGET) @build/M512_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_laundry_rope/%.o: rel/d/a/obj/d_a_obj_laundry_rope/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_laundry_rope/%.o: rel/d/a/obj/d_a_obj_laundry_rope/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_laundry_rope/%.d @echo [512] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M512_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M512_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M512_D_FILES := $(M512_O_FILES:.o=.d) +$(M512_D_FILES): +include $(wildcard $(M512_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lbox/Makefile b/rel/d/a/obj/d_a_obj_lbox/Makefile index ece53dcdac3..eefadca40af 100644 --- a/rel/d/a/obj/d_a_obj_lbox/Makefile +++ b/rel/d/a/obj/d_a_obj_lbox/Makefile @@ -40,10 +40,17 @@ $(M513_TARGET): $(M513_O_FILES) $(M513_LIBS) @python3 tools/lcf.py rel 513 --output $(M513_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M513_LDFLAGS) -o $(M513_TARGET) @build/M513_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lbox/%.o: rel/d/a/obj/d_a_obj_lbox/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lbox/%.o: rel/d/a/obj/d_a_obj_lbox/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lbox/%.d @echo [513] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M513_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M513_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M513_D_FILES := $(M513_O_FILES:.o=.d) +$(M513_D_FILES): +include $(wildcard $(M513_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_life_container/Makefile b/rel/d/a/obj/d_a_obj_life_container/Makefile index 4cb9d57125f..7b8af50a787 100644 --- a/rel/d/a/obj/d_a_obj_life_container/Makefile +++ b/rel/d/a/obj/d_a_obj_life_container/Makefile @@ -40,10 +40,17 @@ $(M53_TARGET): $(M53_O_FILES) $(M53_LIBS) @python3 tools/lcf.py rel 53 --output $(M53_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M53_LDFLAGS) -o $(M53_TARGET) @build/M53_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_life_container/%.o: rel/d/a/obj/d_a_obj_life_container/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_life_container/%.o: rel/d/a/obj/d_a_obj_life_container/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_life_container/%.d @echo [ 53] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M53_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M53_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M53_D_FILES := $(M53_O_FILES:.o=.d) +$(M53_D_FILES): +include $(wildcard $(M53_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lp/Makefile b/rel/d/a/obj/d_a_obj_lp/Makefile index 00c86cab591..04be1e373a8 100644 --- a/rel/d/a/obj/d_a_obj_lp/Makefile +++ b/rel/d/a/obj/d_a_obj_lp/Makefile @@ -38,10 +38,17 @@ $(M514_TARGET): $(M514_O_FILES) $(M514_LIBS) @python3 tools/lcf.py rel 514 --output $(M514_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M514_LDFLAGS) -o $(M514_TARGET) @build/M514_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lp/%.o: rel/d/a/obj/d_a_obj_lp/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lp/%.o: rel/d/a/obj/d_a_obj_lp/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lp/%.d @echo [514] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M514_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M514_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M514_D_FILES := $(M514_O_FILES:.o=.d) +$(M514_D_FILES): +include $(wildcard $(M514_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv1Candle00/Makefile b/rel/d/a/obj/d_a_obj_lv1Candle00/Makefile index 41977bfebd0..d7602bbde7c 100644 --- a/rel/d/a/obj/d_a_obj_lv1Candle00/Makefile +++ b/rel/d/a/obj/d_a_obj_lv1Candle00/Makefile @@ -40,10 +40,17 @@ $(M515_TARGET): $(M515_O_FILES) $(M515_LIBS) @python3 tools/lcf.py rel 515 --output $(M515_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M515_LDFLAGS) -o $(M515_TARGET) @build/M515_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv1Candle00/%.o: rel/d/a/obj/d_a_obj_lv1Candle00/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv1Candle00/%.o: rel/d/a/obj/d_a_obj_lv1Candle00/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv1Candle00/%.d @echo [515] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M515_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M515_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M515_D_FILES := $(M515_O_FILES:.o=.d) +$(M515_D_FILES): +include $(wildcard $(M515_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv1Candle01/Makefile b/rel/d/a/obj/d_a_obj_lv1Candle01/Makefile index ba4bf8a574e..db0f388def8 100644 --- a/rel/d/a/obj/d_a_obj_lv1Candle01/Makefile +++ b/rel/d/a/obj/d_a_obj_lv1Candle01/Makefile @@ -40,10 +40,17 @@ $(M516_TARGET): $(M516_O_FILES) $(M516_LIBS) @python3 tools/lcf.py rel 516 --output $(M516_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M516_LDFLAGS) -o $(M516_TARGET) @build/M516_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv1Candle01/%.o: rel/d/a/obj/d_a_obj_lv1Candle01/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv1Candle01/%.o: rel/d/a/obj/d_a_obj_lv1Candle01/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv1Candle01/%.d @echo [516] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M516_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M516_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M516_D_FILES := $(M516_O_FILES:.o=.d) +$(M516_D_FILES): +include $(wildcard $(M516_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv2candle/Makefile b/rel/d/a/obj/d_a_obj_lv2candle/Makefile index 1a335a68ff8..e4838d6d4bf 100644 --- a/rel/d/a/obj/d_a_obj_lv2candle/Makefile +++ b/rel/d/a/obj/d_a_obj_lv2candle/Makefile @@ -40,10 +40,17 @@ $(M104_TARGET): $(M104_O_FILES) $(M104_LIBS) @python3 tools/lcf.py rel 104 --output $(M104_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M104_LDFLAGS) -o $(M104_TARGET) @build/M104_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv2candle/%.o: rel/d/a/obj/d_a_obj_lv2candle/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv2candle/%.o: rel/d/a/obj/d_a_obj_lv2candle/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv2candle/%.d @echo [104] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M104_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M104_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M104_D_FILES := $(M104_O_FILES:.o=.d) +$(M104_D_FILES): +include $(wildcard $(M104_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv3Candle/Makefile b/rel/d/a/obj/d_a_obj_lv3Candle/Makefile index 7c28749d8d3..ad9258afec3 100644 --- a/rel/d/a/obj/d_a_obj_lv3Candle/Makefile +++ b/rel/d/a/obj/d_a_obj_lv3Candle/Makefile @@ -40,10 +40,17 @@ $(M517_TARGET): $(M517_O_FILES) $(M517_LIBS) @python3 tools/lcf.py rel 517 --output $(M517_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M517_LDFLAGS) -o $(M517_TARGET) @build/M517_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3Candle/%.o: rel/d/a/obj/d_a_obj_lv3Candle/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3Candle/%.o: rel/d/a/obj/d_a_obj_lv3Candle/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3Candle/%.d @echo [517] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M517_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M517_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M517_D_FILES := $(M517_O_FILES:.o=.d) +$(M517_D_FILES): +include $(wildcard $(M517_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv3Water/Makefile b/rel/d/a/obj/d_a_obj_lv3Water/Makefile index e3441286a23..2920c9ca7df 100644 --- a/rel/d/a/obj/d_a_obj_lv3Water/Makefile +++ b/rel/d/a/obj/d_a_obj_lv3Water/Makefile @@ -40,10 +40,17 @@ $(M518_TARGET): $(M518_O_FILES) $(M518_LIBS) @python3 tools/lcf.py rel 518 --output $(M518_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M518_LDFLAGS) -o $(M518_TARGET) @build/M518_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3Water/%.o: rel/d/a/obj/d_a_obj_lv3Water/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3Water/%.o: rel/d/a/obj/d_a_obj_lv3Water/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3Water/%.d @echo [518] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M518_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M518_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M518_D_FILES := $(M518_O_FILES:.o=.d) +$(M518_D_FILES): +include $(wildcard $(M518_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv3Water2/Makefile b/rel/d/a/obj/d_a_obj_lv3Water2/Makefile index 69c24e49671..302fb4bf228 100644 --- a/rel/d/a/obj/d_a_obj_lv3Water2/Makefile +++ b/rel/d/a/obj/d_a_obj_lv3Water2/Makefile @@ -40,10 +40,17 @@ $(M519_TARGET): $(M519_O_FILES) $(M519_LIBS) @python3 tools/lcf.py rel 519 --output $(M519_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M519_LDFLAGS) -o $(M519_TARGET) @build/M519_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3Water2/%.o: rel/d/a/obj/d_a_obj_lv3Water2/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3Water2/%.o: rel/d/a/obj/d_a_obj_lv3Water2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3Water2/%.d @echo [519] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M519_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M519_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M519_D_FILES := $(M519_O_FILES:.o=.d) +$(M519_D_FILES): +include $(wildcard $(M519_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv3WaterB/Makefile b/rel/d/a/obj/d_a_obj_lv3WaterB/Makefile index ce9f6f6918c..73ce327abf5 100644 --- a/rel/d/a/obj/d_a_obj_lv3WaterB/Makefile +++ b/rel/d/a/obj/d_a_obj_lv3WaterB/Makefile @@ -38,10 +38,17 @@ $(M520_TARGET): $(M520_O_FILES) $(M520_LIBS) @python3 tools/lcf.py rel 520 --output $(M520_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M520_LDFLAGS) -o $(M520_TARGET) @build/M520_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3WaterB/%.o: rel/d/a/obj/d_a_obj_lv3WaterB/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3WaterB/%.o: rel/d/a/obj/d_a_obj_lv3WaterB/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3WaterB/%.d @echo [520] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M520_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M520_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M520_D_FILES := $(M520_O_FILES:.o=.d) +$(M520_D_FILES): +include $(wildcard $(M520_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv3saka00/Makefile b/rel/d/a/obj/d_a_obj_lv3saka00/Makefile index 0e195ad39a4..eccf24443cc 100644 --- a/rel/d/a/obj/d_a_obj_lv3saka00/Makefile +++ b/rel/d/a/obj/d_a_obj_lv3saka00/Makefile @@ -38,10 +38,17 @@ $(M521_TARGET): $(M521_O_FILES) $(M521_LIBS) @python3 tools/lcf.py rel 521 --output $(M521_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M521_LDFLAGS) -o $(M521_TARGET) @build/M521_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3saka00/%.o: rel/d/a/obj/d_a_obj_lv3saka00/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3saka00/%.o: rel/d/a/obj/d_a_obj_lv3saka00/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3saka00/%.d @echo [521] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M521_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M521_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M521_D_FILES := $(M521_O_FILES:.o=.d) +$(M521_D_FILES): +include $(wildcard $(M521_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv3waterEff/Makefile b/rel/d/a/obj/d_a_obj_lv3waterEff/Makefile index 948088828d3..fd687c1ab5f 100644 --- a/rel/d/a/obj/d_a_obj_lv3waterEff/Makefile +++ b/rel/d/a/obj/d_a_obj_lv3waterEff/Makefile @@ -38,10 +38,17 @@ $(M522_TARGET): $(M522_O_FILES) $(M522_LIBS) @python3 tools/lcf.py rel 522 --output $(M522_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M522_LDFLAGS) -o $(M522_TARGET) @build/M522_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3waterEff/%.o: rel/d/a/obj/d_a_obj_lv3waterEff/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3waterEff/%.o: rel/d/a/obj/d_a_obj_lv3waterEff/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3waterEff/%.d @echo [522] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M522_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M522_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M522_D_FILES := $(M522_O_FILES:.o=.d) +$(M522_D_FILES): +include $(wildcard $(M522_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4CandleDemoTag/Makefile b/rel/d/a/obj/d_a_obj_lv4CandleDemoTag/Makefile index 11dc84d88c2..d0bc88d54c0 100644 --- a/rel/d/a/obj/d_a_obj_lv4CandleDemoTag/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4CandleDemoTag/Makefile @@ -40,10 +40,17 @@ $(M523_TARGET): $(M523_O_FILES) $(M523_LIBS) @python3 tools/lcf.py rel 523 --output $(M523_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M523_LDFLAGS) -o $(M523_TARGET) @build/M523_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4CandleDemoTag/%.o: rel/d/a/obj/d_a_obj_lv4CandleDemoTag/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4CandleDemoTag/%.o: rel/d/a/obj/d_a_obj_lv4CandleDemoTag/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4CandleDemoTag/%.d @echo [523] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M523_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M523_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M523_D_FILES := $(M523_O_FILES:.o=.d) +$(M523_D_FILES): +include $(wildcard $(M523_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4CandleTag/Makefile b/rel/d/a/obj/d_a_obj_lv4CandleTag/Makefile index 1e11de865a4..590bc66f599 100644 --- a/rel/d/a/obj/d_a_obj_lv4CandleTag/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4CandleTag/Makefile @@ -40,10 +40,17 @@ $(M524_TARGET): $(M524_O_FILES) $(M524_LIBS) @python3 tools/lcf.py rel 524 --output $(M524_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M524_LDFLAGS) -o $(M524_TARGET) @build/M524_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4CandleTag/%.o: rel/d/a/obj/d_a_obj_lv4CandleTag/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4CandleTag/%.o: rel/d/a/obj/d_a_obj_lv4CandleTag/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4CandleTag/%.d @echo [524] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M524_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M524_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M524_D_FILES := $(M524_O_FILES:.o=.d) +$(M524_D_FILES): +include $(wildcard $(M524_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4EdShutter/Makefile b/rel/d/a/obj/d_a_obj_lv4EdShutter/Makefile index 811992b079b..76be81e4398 100644 --- a/rel/d/a/obj/d_a_obj_lv4EdShutter/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4EdShutter/Makefile @@ -40,10 +40,17 @@ $(M525_TARGET): $(M525_O_FILES) $(M525_LIBS) @python3 tools/lcf.py rel 525 --output $(M525_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M525_LDFLAGS) -o $(M525_TARGET) @build/M525_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4EdShutter/%.o: rel/d/a/obj/d_a_obj_lv4EdShutter/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4EdShutter/%.o: rel/d/a/obj/d_a_obj_lv4EdShutter/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4EdShutter/%.d @echo [525] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M525_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M525_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M525_D_FILES := $(M525_O_FILES:.o=.d) +$(M525_D_FILES): +include $(wildcard $(M525_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4Gate/Makefile b/rel/d/a/obj/d_a_obj_lv4Gate/Makefile index b2ac1670a92..1dd090f1005 100644 --- a/rel/d/a/obj/d_a_obj_lv4Gate/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4Gate/Makefile @@ -40,10 +40,17 @@ $(M526_TARGET): $(M526_O_FILES) $(M526_LIBS) @python3 tools/lcf.py rel 526 --output $(M526_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M526_LDFLAGS) -o $(M526_TARGET) @build/M526_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4Gate/%.o: rel/d/a/obj/d_a_obj_lv4Gate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4Gate/%.o: rel/d/a/obj/d_a_obj_lv4Gate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4Gate/%.d @echo [526] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M526_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M526_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M526_D_FILES := $(M526_O_FILES:.o=.d) +$(M526_D_FILES): +include $(wildcard $(M526_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4HsTarget/Makefile b/rel/d/a/obj/d_a_obj_lv4HsTarget/Makefile index 0672c0a47e2..da3b77b8fd5 100644 --- a/rel/d/a/obj/d_a_obj_lv4HsTarget/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4HsTarget/Makefile @@ -40,10 +40,17 @@ $(M527_TARGET): $(M527_O_FILES) $(M527_LIBS) @python3 tools/lcf.py rel 527 --output $(M527_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M527_LDFLAGS) -o $(M527_TARGET) @build/M527_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4HsTarget/%.o: rel/d/a/obj/d_a_obj_lv4HsTarget/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4HsTarget/%.o: rel/d/a/obj/d_a_obj_lv4HsTarget/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4HsTarget/%.d @echo [527] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M527_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M527_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M527_D_FILES := $(M527_O_FILES:.o=.d) +$(M527_D_FILES): +include $(wildcard $(M527_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4PoGate/Makefile b/rel/d/a/obj/d_a_obj_lv4PoGate/Makefile index 5bba9f6c48d..cef8c0816cb 100644 --- a/rel/d/a/obj/d_a_obj_lv4PoGate/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4PoGate/Makefile @@ -40,10 +40,17 @@ $(M528_TARGET): $(M528_O_FILES) $(M528_LIBS) @python3 tools/lcf.py rel 528 --output $(M528_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M528_LDFLAGS) -o $(M528_TARGET) @build/M528_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4PoGate/%.o: rel/d/a/obj/d_a_obj_lv4PoGate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4PoGate/%.o: rel/d/a/obj/d_a_obj_lv4PoGate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4PoGate/%.d @echo [528] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M528_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M528_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M528_D_FILES := $(M528_O_FILES:.o=.d) +$(M528_D_FILES): +include $(wildcard $(M528_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4RailWall/Makefile b/rel/d/a/obj/d_a_obj_lv4RailWall/Makefile index c5ab99b1324..360a2a5dee8 100644 --- a/rel/d/a/obj/d_a_obj_lv4RailWall/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4RailWall/Makefile @@ -40,10 +40,17 @@ $(M529_TARGET): $(M529_O_FILES) $(M529_LIBS) @python3 tools/lcf.py rel 529 --output $(M529_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M529_LDFLAGS) -o $(M529_TARGET) @build/M529_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4RailWall/%.o: rel/d/a/obj/d_a_obj_lv4RailWall/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4RailWall/%.o: rel/d/a/obj/d_a_obj_lv4RailWall/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4RailWall/%.d @echo [529] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M529_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M529_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M529_D_FILES := $(M529_O_FILES:.o=.d) +$(M529_D_FILES): +include $(wildcard $(M529_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4SlideWall/Makefile b/rel/d/a/obj/d_a_obj_lv4SlideWall/Makefile index d0b6cceca5f..496c55cdf23 100644 --- a/rel/d/a/obj/d_a_obj_lv4SlideWall/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4SlideWall/Makefile @@ -40,10 +40,17 @@ $(M530_TARGET): $(M530_O_FILES) $(M530_LIBS) @python3 tools/lcf.py rel 530 --output $(M530_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M530_LDFLAGS) -o $(M530_TARGET) @build/M530_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4SlideWall/%.o: rel/d/a/obj/d_a_obj_lv4SlideWall/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4SlideWall/%.o: rel/d/a/obj/d_a_obj_lv4SlideWall/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4SlideWall/%.d @echo [530] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M530_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M530_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M530_D_FILES := $(M530_O_FILES:.o=.d) +$(M530_D_FILES): +include $(wildcard $(M530_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4bridge/Makefile b/rel/d/a/obj/d_a_obj_lv4bridge/Makefile index da7a4a9e6fa..0a11f63e2e9 100644 --- a/rel/d/a/obj/d_a_obj_lv4bridge/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4bridge/Makefile @@ -40,10 +40,17 @@ $(M531_TARGET): $(M531_O_FILES) $(M531_LIBS) @python3 tools/lcf.py rel 531 --output $(M531_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M531_LDFLAGS) -o $(M531_TARGET) @build/M531_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4bridge/%.o: rel/d/a/obj/d_a_obj_lv4bridge/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4bridge/%.o: rel/d/a/obj/d_a_obj_lv4bridge/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4bridge/%.d @echo [531] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M531_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M531_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M531_D_FILES := $(M531_O_FILES:.o=.d) +$(M531_D_FILES): +include $(wildcard $(M531_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4chandelier/Makefile b/rel/d/a/obj/d_a_obj_lv4chandelier/Makefile index da85b4a6bdf..06c1a1c0e32 100644 --- a/rel/d/a/obj/d_a_obj_lv4chandelier/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4chandelier/Makefile @@ -38,10 +38,17 @@ $(M532_TARGET): $(M532_O_FILES) $(M532_LIBS) @python3 tools/lcf.py rel 532 --output $(M532_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M532_LDFLAGS) -o $(M532_TARGET) @build/M532_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4chandelier/%.o: rel/d/a/obj/d_a_obj_lv4chandelier/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4chandelier/%.o: rel/d/a/obj/d_a_obj_lv4chandelier/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4chandelier/%.d @echo [532] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M532_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M532_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M532_D_FILES := $(M532_O_FILES:.o=.d) +$(M532_D_FILES): +include $(wildcard $(M532_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4digsand/Makefile b/rel/d/a/obj/d_a_obj_lv4digsand/Makefile index c02674e1785..619934cf4e4 100644 --- a/rel/d/a/obj/d_a_obj_lv4digsand/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4digsand/Makefile @@ -40,10 +40,17 @@ $(M533_TARGET): $(M533_O_FILES) $(M533_LIBS) @python3 tools/lcf.py rel 533 --output $(M533_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M533_LDFLAGS) -o $(M533_TARGET) @build/M533_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4digsand/%.o: rel/d/a/obj/d_a_obj_lv4digsand/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4digsand/%.o: rel/d/a/obj/d_a_obj_lv4digsand/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4digsand/%.d @echo [533] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M533_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M533_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M533_D_FILES := $(M533_O_FILES:.o=.d) +$(M533_D_FILES): +include $(wildcard $(M533_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4floor/Makefile b/rel/d/a/obj/d_a_obj_lv4floor/Makefile index b07137875be..1001d4137e2 100644 --- a/rel/d/a/obj/d_a_obj_lv4floor/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4floor/Makefile @@ -40,10 +40,17 @@ $(M534_TARGET): $(M534_O_FILES) $(M534_LIBS) @python3 tools/lcf.py rel 534 --output $(M534_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M534_LDFLAGS) -o $(M534_TARGET) @build/M534_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4floor/%.o: rel/d/a/obj/d_a_obj_lv4floor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4floor/%.o: rel/d/a/obj/d_a_obj_lv4floor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4floor/%.d @echo [534] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M534_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M534_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M534_D_FILES := $(M534_O_FILES:.o=.d) +$(M534_D_FILES): +include $(wildcard $(M534_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4gear/Makefile b/rel/d/a/obj/d_a_obj_lv4gear/Makefile index e204e49f285..f6848bf631a 100644 --- a/rel/d/a/obj/d_a_obj_lv4gear/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4gear/Makefile @@ -38,10 +38,17 @@ $(M535_TARGET): $(M535_O_FILES) $(M535_LIBS) @python3 tools/lcf.py rel 535 --output $(M535_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M535_LDFLAGS) -o $(M535_TARGET) @build/M535_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4gear/%.o: rel/d/a/obj/d_a_obj_lv4gear/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4gear/%.o: rel/d/a/obj/d_a_obj_lv4gear/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4gear/%.d @echo [535] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M535_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M535_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M535_D_FILES := $(M535_O_FILES:.o=.d) +$(M535_D_FILES): +include $(wildcard $(M535_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4prelvtr/Makefile b/rel/d/a/obj/d_a_obj_lv4prelvtr/Makefile index 4366a136857..3ef46414a6d 100644 --- a/rel/d/a/obj/d_a_obj_lv4prelvtr/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4prelvtr/Makefile @@ -38,10 +38,17 @@ $(M536_TARGET): $(M536_O_FILES) $(M536_LIBS) @python3 tools/lcf.py rel 536 --output $(M536_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M536_LDFLAGS) -o $(M536_TARGET) @build/M536_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4prelvtr/%.o: rel/d/a/obj/d_a_obj_lv4prelvtr/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4prelvtr/%.o: rel/d/a/obj/d_a_obj_lv4prelvtr/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4prelvtr/%.d @echo [536] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M536_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M536_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M536_D_FILES := $(M536_O_FILES:.o=.d) +$(M536_D_FILES): +include $(wildcard $(M536_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4prwall/Makefile b/rel/d/a/obj/d_a_obj_lv4prwall/Makefile index fc10be0f0a0..e22c72d7e46 100644 --- a/rel/d/a/obj/d_a_obj_lv4prwall/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4prwall/Makefile @@ -38,10 +38,17 @@ $(M537_TARGET): $(M537_O_FILES) $(M537_LIBS) @python3 tools/lcf.py rel 537 --output $(M537_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M537_LDFLAGS) -o $(M537_TARGET) @build/M537_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4prwall/%.o: rel/d/a/obj/d_a_obj_lv4prwall/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4prwall/%.o: rel/d/a/obj/d_a_obj_lv4prwall/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4prwall/%.d @echo [537] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M537_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M537_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M537_D_FILES := $(M537_O_FILES:.o=.d) +$(M537_D_FILES): +include $(wildcard $(M537_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv4sand/Makefile b/rel/d/a/obj/d_a_obj_lv4sand/Makefile index 9ded0c3a527..97619642e2e 100644 --- a/rel/d/a/obj/d_a_obj_lv4sand/Makefile +++ b/rel/d/a/obj/d_a_obj_lv4sand/Makefile @@ -40,10 +40,17 @@ $(M538_TARGET): $(M538_O_FILES) $(M538_LIBS) @python3 tools/lcf.py rel 538 --output $(M538_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M538_LDFLAGS) -o $(M538_TARGET) @build/M538_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4sand/%.o: rel/d/a/obj/d_a_obj_lv4sand/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4sand/%.o: rel/d/a/obj/d_a_obj_lv4sand/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4sand/%.d @echo [538] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M538_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M538_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M538_D_FILES := $(M538_O_FILES:.o=.d) +$(M538_D_FILES): +include $(wildcard $(M538_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv5FloorBoard/Makefile b/rel/d/a/obj/d_a_obj_lv5FloorBoard/Makefile index 61b064c1d49..1de49ab26c3 100644 --- a/rel/d/a/obj/d_a_obj_lv5FloorBoard/Makefile +++ b/rel/d/a/obj/d_a_obj_lv5FloorBoard/Makefile @@ -40,10 +40,17 @@ $(M539_TARGET): $(M539_O_FILES) $(M539_LIBS) @python3 tools/lcf.py rel 539 --output $(M539_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M539_LDFLAGS) -o $(M539_TARGET) @build/M539_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5FloorBoard/%.o: rel/d/a/obj/d_a_obj_lv5FloorBoard/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5FloorBoard/%.o: rel/d/a/obj/d_a_obj_lv5FloorBoard/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5FloorBoard/%.d @echo [539] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M539_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M539_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M539_D_FILES := $(M539_O_FILES:.o=.d) +$(M539_D_FILES): +include $(wildcard $(M539_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv5IceWall/Makefile b/rel/d/a/obj/d_a_obj_lv5IceWall/Makefile index 754da0fd9ca..310e673652f 100644 --- a/rel/d/a/obj/d_a_obj_lv5IceWall/Makefile +++ b/rel/d/a/obj/d_a_obj_lv5IceWall/Makefile @@ -40,10 +40,17 @@ $(M540_TARGET): $(M540_O_FILES) $(M540_LIBS) @python3 tools/lcf.py rel 540 --output $(M540_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M540_LDFLAGS) -o $(M540_TARGET) @build/M540_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5IceWall/%.o: rel/d/a/obj/d_a_obj_lv5IceWall/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5IceWall/%.o: rel/d/a/obj/d_a_obj_lv5IceWall/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5IceWall/%.d @echo [540] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M540_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M540_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M540_D_FILES := $(M540_O_FILES:.o=.d) +$(M540_D_FILES): +include $(wildcard $(M540_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv5SwIce/Makefile b/rel/d/a/obj/d_a_obj_lv5SwIce/Makefile index 91b51b10cbd..8c32b57670d 100644 --- a/rel/d/a/obj/d_a_obj_lv5SwIce/Makefile +++ b/rel/d/a/obj/d_a_obj_lv5SwIce/Makefile @@ -40,10 +40,17 @@ $(M541_TARGET): $(M541_O_FILES) $(M541_LIBS) @python3 tools/lcf.py rel 541 --output $(M541_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M541_LDFLAGS) -o $(M541_TARGET) @build/M541_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5SwIce/%.o: rel/d/a/obj/d_a_obj_lv5SwIce/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5SwIce/%.o: rel/d/a/obj/d_a_obj_lv5SwIce/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5SwIce/%.d @echo [541] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M541_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M541_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M541_D_FILES := $(M541_O_FILES:.o=.d) +$(M541_D_FILES): +include $(wildcard $(M541_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv5ychndlr/Makefile b/rel/d/a/obj/d_a_obj_lv5ychndlr/Makefile index 8670fdc2329..36c630b17d7 100644 --- a/rel/d/a/obj/d_a_obj_lv5ychndlr/Makefile +++ b/rel/d/a/obj/d_a_obj_lv5ychndlr/Makefile @@ -38,10 +38,17 @@ $(M542_TARGET): $(M542_O_FILES) $(M542_LIBS) @python3 tools/lcf.py rel 542 --output $(M542_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M542_LDFLAGS) -o $(M542_TARGET) @build/M542_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5ychndlr/%.o: rel/d/a/obj/d_a_obj_lv5ychndlr/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5ychndlr/%.o: rel/d/a/obj/d_a_obj_lv5ychndlr/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5ychndlr/%.d @echo [542] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M542_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M542_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M542_D_FILES := $(M542_O_FILES:.o=.d) +$(M542_D_FILES): +include $(wildcard $(M542_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv5yiblltray/Makefile b/rel/d/a/obj/d_a_obj_lv5yiblltray/Makefile index adb095b09e1..997c9e4296c 100644 --- a/rel/d/a/obj/d_a_obj_lv5yiblltray/Makefile +++ b/rel/d/a/obj/d_a_obj_lv5yiblltray/Makefile @@ -38,10 +38,17 @@ $(M543_TARGET): $(M543_O_FILES) $(M543_LIBS) @python3 tools/lcf.py rel 543 --output $(M543_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M543_LDFLAGS) -o $(M543_TARGET) @build/M543_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5yiblltray/%.o: rel/d/a/obj/d_a_obj_lv5yiblltray/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5yiblltray/%.o: rel/d/a/obj/d_a_obj_lv5yiblltray/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5yiblltray/%.d @echo [543] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M543_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M543_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M543_D_FILES := $(M543_O_FILES:.o=.d) +$(M543_D_FILES): +include $(wildcard $(M543_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6ChangeGate/Makefile b/rel/d/a/obj/d_a_obj_lv6ChangeGate/Makefile index 0111e30c878..717825393d7 100644 --- a/rel/d/a/obj/d_a_obj_lv6ChangeGate/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6ChangeGate/Makefile @@ -40,10 +40,17 @@ $(M544_TARGET): $(M544_O_FILES) $(M544_LIBS) @python3 tools/lcf.py rel 544 --output $(M544_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M544_LDFLAGS) -o $(M544_TARGET) @build/M544_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6ChangeGate/%.o: rel/d/a/obj/d_a_obj_lv6ChangeGate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6ChangeGate/%.o: rel/d/a/obj/d_a_obj_lv6ChangeGate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6ChangeGate/%.d @echo [544] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M544_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M544_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M544_D_FILES := $(M544_O_FILES:.o=.d) +$(M544_D_FILES): +include $(wildcard $(M544_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6FurikoTrap/Makefile b/rel/d/a/obj/d_a_obj_lv6FurikoTrap/Makefile index 4477a24e551..67e267184a7 100644 --- a/rel/d/a/obj/d_a_obj_lv6FurikoTrap/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6FurikoTrap/Makefile @@ -40,10 +40,17 @@ $(M545_TARGET): $(M545_O_FILES) $(M545_LIBS) @python3 tools/lcf.py rel 545 --output $(M545_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M545_LDFLAGS) -o $(M545_TARGET) @build/M545_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6FurikoTrap/%.o: rel/d/a/obj/d_a_obj_lv6FurikoTrap/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6FurikoTrap/%.o: rel/d/a/obj/d_a_obj_lv6FurikoTrap/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6FurikoTrap/%.d @echo [545] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M545_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M545_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M545_D_FILES := $(M545_O_FILES:.o=.d) +$(M545_D_FILES): +include $(wildcard $(M545_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6Lblock/Makefile b/rel/d/a/obj/d_a_obj_lv6Lblock/Makefile index 65496082472..9e4ce4eda50 100644 --- a/rel/d/a/obj/d_a_obj_lv6Lblock/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6Lblock/Makefile @@ -40,10 +40,17 @@ $(M546_TARGET): $(M546_O_FILES) $(M546_LIBS) @python3 tools/lcf.py rel 546 --output $(M546_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M546_LDFLAGS) -o $(M546_TARGET) @build/M546_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6Lblock/%.o: rel/d/a/obj/d_a_obj_lv6Lblock/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6Lblock/%.o: rel/d/a/obj/d_a_obj_lv6Lblock/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6Lblock/%.d @echo [546] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M546_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M546_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M546_D_FILES := $(M546_O_FILES:.o=.d) +$(M546_D_FILES): +include $(wildcard $(M546_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6SwGate/Makefile b/rel/d/a/obj/d_a_obj_lv6SwGate/Makefile index b491ff6661a..ffb057803a6 100644 --- a/rel/d/a/obj/d_a_obj_lv6SwGate/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6SwGate/Makefile @@ -40,10 +40,17 @@ $(M547_TARGET): $(M547_O_FILES) $(M547_LIBS) @python3 tools/lcf.py rel 547 --output $(M547_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M547_LDFLAGS) -o $(M547_TARGET) @build/M547_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6SwGate/%.o: rel/d/a/obj/d_a_obj_lv6SwGate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6SwGate/%.o: rel/d/a/obj/d_a_obj_lv6SwGate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6SwGate/%.d @echo [547] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M547_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M547_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M547_D_FILES := $(M547_O_FILES:.o=.d) +$(M547_D_FILES): +include $(wildcard $(M547_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6SzGate/Makefile b/rel/d/a/obj/d_a_obj_lv6SzGate/Makefile index d8d431f3b53..6db5b0db4e7 100644 --- a/rel/d/a/obj/d_a_obj_lv6SzGate/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6SzGate/Makefile @@ -40,10 +40,17 @@ $(M548_TARGET): $(M548_O_FILES) $(M548_LIBS) @python3 tools/lcf.py rel 548 --output $(M548_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M548_LDFLAGS) -o $(M548_TARGET) @build/M548_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6SzGate/%.o: rel/d/a/obj/d_a_obj_lv6SzGate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6SzGate/%.o: rel/d/a/obj/d_a_obj_lv6SzGate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6SzGate/%.d @echo [548] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M548_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M548_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M548_D_FILES := $(M548_O_FILES:.o=.d) +$(M548_D_FILES): +include $(wildcard $(M548_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6Tenbin/Makefile b/rel/d/a/obj/d_a_obj_lv6Tenbin/Makefile index e391914b64c..a8106afb112 100644 --- a/rel/d/a/obj/d_a_obj_lv6Tenbin/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6Tenbin/Makefile @@ -40,10 +40,17 @@ $(M549_TARGET): $(M549_O_FILES) $(M549_LIBS) @python3 tools/lcf.py rel 549 --output $(M549_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M549_LDFLAGS) -o $(M549_TARGET) @build/M549_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6Tenbin/%.o: rel/d/a/obj/d_a_obj_lv6Tenbin/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6Tenbin/%.o: rel/d/a/obj/d_a_obj_lv6Tenbin/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6Tenbin/%.d @echo [549] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M549_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M549_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M549_D_FILES := $(M549_O_FILES:.o=.d) +$(M549_D_FILES): +include $(wildcard $(M549_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6TogeRoll/Makefile b/rel/d/a/obj/d_a_obj_lv6TogeRoll/Makefile index 09f1986d1e4..a344813b5d2 100644 --- a/rel/d/a/obj/d_a_obj_lv6TogeRoll/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6TogeRoll/Makefile @@ -40,10 +40,17 @@ $(M550_TARGET): $(M550_O_FILES) $(M550_LIBS) @python3 tools/lcf.py rel 550 --output $(M550_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M550_LDFLAGS) -o $(M550_TARGET) @build/M550_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6TogeRoll/%.o: rel/d/a/obj/d_a_obj_lv6TogeRoll/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6TogeRoll/%.o: rel/d/a/obj/d_a_obj_lv6TogeRoll/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6TogeRoll/%.d @echo [550] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M550_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M550_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M550_D_FILES := $(M550_O_FILES:.o=.d) +$(M550_D_FILES): +include $(wildcard $(M550_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6TogeTrap/Makefile b/rel/d/a/obj/d_a_obj_lv6TogeTrap/Makefile index d8dba4520da..69dab7ca8ae 100644 --- a/rel/d/a/obj/d_a_obj_lv6TogeTrap/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6TogeTrap/Makefile @@ -40,10 +40,17 @@ $(M551_TARGET): $(M551_O_FILES) $(M551_LIBS) @python3 tools/lcf.py rel 551 --output $(M551_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M551_LDFLAGS) -o $(M551_TARGET) @build/M551_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6TogeTrap/%.o: rel/d/a/obj/d_a_obj_lv6TogeTrap/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6TogeTrap/%.o: rel/d/a/obj/d_a_obj_lv6TogeTrap/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6TogeTrap/%.d @echo [551] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M551_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M551_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M551_D_FILES := $(M551_O_FILES:.o=.d) +$(M551_D_FILES): +include $(wildcard $(M551_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6bemos/Makefile b/rel/d/a/obj/d_a_obj_lv6bemos/Makefile index 2afce449071..f9b82b54f67 100644 --- a/rel/d/a/obj/d_a_obj_lv6bemos/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6bemos/Makefile @@ -40,10 +40,17 @@ $(M552_TARGET): $(M552_O_FILES) $(M552_LIBS) @python3 tools/lcf.py rel 552 --output $(M552_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M552_LDFLAGS) -o $(M552_TARGET) @build/M552_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6bemos/%.o: rel/d/a/obj/d_a_obj_lv6bemos/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6bemos/%.o: rel/d/a/obj/d_a_obj_lv6bemos/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6bemos/%.d @echo [552] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M552_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M552_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M552_D_FILES := $(M552_O_FILES:.o=.d) +$(M552_D_FILES): +include $(wildcard $(M552_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6bemos2/Makefile b/rel/d/a/obj/d_a_obj_lv6bemos2/Makefile index 5ba29a15f9d..9df01051cc3 100644 --- a/rel/d/a/obj/d_a_obj_lv6bemos2/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6bemos2/Makefile @@ -40,10 +40,17 @@ $(M553_TARGET): $(M553_O_FILES) $(M553_LIBS) @python3 tools/lcf.py rel 553 --output $(M553_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M553_LDFLAGS) -o $(M553_TARGET) @build/M553_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6bemos2/%.o: rel/d/a/obj/d_a_obj_lv6bemos2/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6bemos2/%.o: rel/d/a/obj/d_a_obj_lv6bemos2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6bemos2/%.d @echo [553] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M553_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M553_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M553_D_FILES := $(M553_O_FILES:.o=.d) +$(M553_D_FILES): +include $(wildcard $(M553_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6egate/Makefile b/rel/d/a/obj/d_a_obj_lv6egate/Makefile index e34ec57f364..3e0fab11b07 100644 --- a/rel/d/a/obj/d_a_obj_lv6egate/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6egate/Makefile @@ -38,10 +38,17 @@ $(M554_TARGET): $(M554_O_FILES) $(M554_LIBS) @python3 tools/lcf.py rel 554 --output $(M554_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M554_LDFLAGS) -o $(M554_TARGET) @build/M554_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6egate/%.o: rel/d/a/obj/d_a_obj_lv6egate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6egate/%.o: rel/d/a/obj/d_a_obj_lv6egate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6egate/%.d @echo [554] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M554_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M554_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M554_D_FILES := $(M554_O_FILES:.o=.d) +$(M554_D_FILES): +include $(wildcard $(M554_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6elevta/Makefile b/rel/d/a/obj/d_a_obj_lv6elevta/Makefile index 9c7ca9d0cc1..e85aa290b3d 100644 --- a/rel/d/a/obj/d_a_obj_lv6elevta/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6elevta/Makefile @@ -38,10 +38,17 @@ $(M555_TARGET): $(M555_O_FILES) $(M555_LIBS) @python3 tools/lcf.py rel 555 --output $(M555_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M555_LDFLAGS) -o $(M555_TARGET) @build/M555_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6elevta/%.o: rel/d/a/obj/d_a_obj_lv6elevta/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6elevta/%.o: rel/d/a/obj/d_a_obj_lv6elevta/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6elevta/%.d @echo [555] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M555_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M555_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M555_D_FILES := $(M555_O_FILES:.o=.d) +$(M555_D_FILES): +include $(wildcard $(M555_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv6swturn/Makefile b/rel/d/a/obj/d_a_obj_lv6swturn/Makefile index ba97ffeb1da..13a1bc2049f 100644 --- a/rel/d/a/obj/d_a_obj_lv6swturn/Makefile +++ b/rel/d/a/obj/d_a_obj_lv6swturn/Makefile @@ -40,10 +40,17 @@ $(M556_TARGET): $(M556_O_FILES) $(M556_LIBS) @python3 tools/lcf.py rel 556 --output $(M556_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M556_LDFLAGS) -o $(M556_TARGET) @build/M556_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6swturn/%.o: rel/d/a/obj/d_a_obj_lv6swturn/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6swturn/%.o: rel/d/a/obj/d_a_obj_lv6swturn/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6swturn/%.d @echo [556] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M556_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M556_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M556_D_FILES := $(M556_O_FILES:.o=.d) +$(M556_D_FILES): +include $(wildcard $(M556_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv7BsGate/Makefile b/rel/d/a/obj/d_a_obj_lv7BsGate/Makefile index 185822e1993..d9c7a89dcf1 100644 --- a/rel/d/a/obj/d_a_obj_lv7BsGate/Makefile +++ b/rel/d/a/obj/d_a_obj_lv7BsGate/Makefile @@ -40,10 +40,17 @@ $(M557_TARGET): $(M557_O_FILES) $(M557_LIBS) @python3 tools/lcf.py rel 557 --output $(M557_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M557_LDFLAGS) -o $(M557_TARGET) @build/M557_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7BsGate/%.o: rel/d/a/obj/d_a_obj_lv7BsGate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7BsGate/%.o: rel/d/a/obj/d_a_obj_lv7BsGate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7BsGate/%.d @echo [557] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M557_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M557_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M557_D_FILES := $(M557_O_FILES:.o=.d) +$(M557_D_FILES): +include $(wildcard $(M557_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv7PropellerY/Makefile b/rel/d/a/obj/d_a_obj_lv7PropellerY/Makefile index 9a51c859eb6..43ddf7076a7 100644 --- a/rel/d/a/obj/d_a_obj_lv7PropellerY/Makefile +++ b/rel/d/a/obj/d_a_obj_lv7PropellerY/Makefile @@ -40,10 +40,17 @@ $(M558_TARGET): $(M558_O_FILES) $(M558_LIBS) @python3 tools/lcf.py rel 558 --output $(M558_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M558_LDFLAGS) -o $(M558_TARGET) @build/M558_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7PropellerY/%.o: rel/d/a/obj/d_a_obj_lv7PropellerY/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7PropellerY/%.o: rel/d/a/obj/d_a_obj_lv7PropellerY/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7PropellerY/%.d @echo [558] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M558_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M558_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M558_D_FILES := $(M558_O_FILES:.o=.d) +$(M558_D_FILES): +include $(wildcard $(M558_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv7bridge/Makefile b/rel/d/a/obj/d_a_obj_lv7bridge/Makefile index 44506d30014..11c69801757 100644 --- a/rel/d/a/obj/d_a_obj_lv7bridge/Makefile +++ b/rel/d/a/obj/d_a_obj_lv7bridge/Makefile @@ -40,10 +40,17 @@ $(M559_TARGET): $(M559_O_FILES) $(M559_LIBS) @python3 tools/lcf.py rel 559 --output $(M559_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M559_LDFLAGS) -o $(M559_TARGET) @build/M559_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7bridge/%.o: rel/d/a/obj/d_a_obj_lv7bridge/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7bridge/%.o: rel/d/a/obj/d_a_obj_lv7bridge/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7bridge/%.d @echo [559] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M559_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M559_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M559_D_FILES := $(M559_O_FILES:.o=.d) +$(M559_D_FILES): +include $(wildcard $(M559_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv8KekkaiTrap/Makefile b/rel/d/a/obj/d_a_obj_lv8KekkaiTrap/Makefile index 9dad9741b76..85e730da191 100644 --- a/rel/d/a/obj/d_a_obj_lv8KekkaiTrap/Makefile +++ b/rel/d/a/obj/d_a_obj_lv8KekkaiTrap/Makefile @@ -40,10 +40,17 @@ $(M560_TARGET): $(M560_O_FILES) $(M560_LIBS) @python3 tools/lcf.py rel 560 --output $(M560_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M560_LDFLAGS) -o $(M560_TARGET) @build/M560_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv8KekkaiTrap/%.o: rel/d/a/obj/d_a_obj_lv8KekkaiTrap/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv8KekkaiTrap/%.o: rel/d/a/obj/d_a_obj_lv8KekkaiTrap/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv8KekkaiTrap/%.d @echo [560] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M560_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M560_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M560_D_FILES := $(M560_O_FILES:.o=.d) +$(M560_D_FILES): +include $(wildcard $(M560_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv8Lift/Makefile b/rel/d/a/obj/d_a_obj_lv8Lift/Makefile index e974ca22479..cce31bf40c3 100644 --- a/rel/d/a/obj/d_a_obj_lv8Lift/Makefile +++ b/rel/d/a/obj/d_a_obj_lv8Lift/Makefile @@ -40,10 +40,17 @@ $(M561_TARGET): $(M561_O_FILES) $(M561_LIBS) @python3 tools/lcf.py rel 561 --output $(M561_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M561_LDFLAGS) -o $(M561_TARGET) @build/M561_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv8Lift/%.o: rel/d/a/obj/d_a_obj_lv8Lift/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv8Lift/%.o: rel/d/a/obj/d_a_obj_lv8Lift/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv8Lift/%.d @echo [561] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M561_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M561_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M561_D_FILES := $(M561_O_FILES:.o=.d) +$(M561_D_FILES): +include $(wildcard $(M561_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv8OptiLift/Makefile b/rel/d/a/obj/d_a_obj_lv8OptiLift/Makefile index f29efcab086..d284ee6f85c 100644 --- a/rel/d/a/obj/d_a_obj_lv8OptiLift/Makefile +++ b/rel/d/a/obj/d_a_obj_lv8OptiLift/Makefile @@ -40,10 +40,17 @@ $(M562_TARGET): $(M562_O_FILES) $(M562_LIBS) @python3 tools/lcf.py rel 562 --output $(M562_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M562_LDFLAGS) -o $(M562_TARGET) @build/M562_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv8OptiLift/%.o: rel/d/a/obj/d_a_obj_lv8OptiLift/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv8OptiLift/%.o: rel/d/a/obj/d_a_obj_lv8OptiLift/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv8OptiLift/%.d @echo [562] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M562_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M562_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M562_D_FILES := $(M562_O_FILES:.o=.d) +$(M562_D_FILES): +include $(wildcard $(M562_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv8UdFloor/Makefile b/rel/d/a/obj/d_a_obj_lv8UdFloor/Makefile index 0595711a437..94feef3ef80 100644 --- a/rel/d/a/obj/d_a_obj_lv8UdFloor/Makefile +++ b/rel/d/a/obj/d_a_obj_lv8UdFloor/Makefile @@ -40,10 +40,17 @@ $(M563_TARGET): $(M563_O_FILES) $(M563_LIBS) @python3 tools/lcf.py rel 563 --output $(M563_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M563_LDFLAGS) -o $(M563_TARGET) @build/M563_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv8UdFloor/%.o: rel/d/a/obj/d_a_obj_lv8UdFloor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv8UdFloor/%.o: rel/d/a/obj/d_a_obj_lv8UdFloor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv8UdFloor/%.d @echo [563] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M563_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M563_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M563_D_FILES := $(M563_O_FILES:.o=.d) +$(M563_D_FILES): +include $(wildcard $(M563_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_lv9SwShutter/Makefile b/rel/d/a/obj/d_a_obj_lv9SwShutter/Makefile index 842ce858719..c45032d6d2c 100644 --- a/rel/d/a/obj/d_a_obj_lv9SwShutter/Makefile +++ b/rel/d/a/obj/d_a_obj_lv9SwShutter/Makefile @@ -40,10 +40,17 @@ $(M564_TARGET): $(M564_O_FILES) $(M564_LIBS) @python3 tools/lcf.py rel 564 --output $(M564_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M564_LDFLAGS) -o $(M564_TARGET) @build/M564_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv9SwShutter/%.o: rel/d/a/obj/d_a_obj_lv9SwShutter/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv9SwShutter/%.o: rel/d/a/obj/d_a_obj_lv9SwShutter/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv9SwShutter/%.d @echo [564] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M564_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M564_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M564_D_FILES := $(M564_O_FILES:.o=.d) +$(M564_D_FILES): +include $(wildcard $(M564_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_magLift/Makefile b/rel/d/a/obj/d_a_obj_magLift/Makefile index 1307f384685..bcbfa7f03bc 100644 --- a/rel/d/a/obj/d_a_obj_magLift/Makefile +++ b/rel/d/a/obj/d_a_obj_magLift/Makefile @@ -40,10 +40,17 @@ $(M565_TARGET): $(M565_O_FILES) $(M565_LIBS) @python3 tools/lcf.py rel 565 --output $(M565_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M565_LDFLAGS) -o $(M565_TARGET) @build/M565_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_magLift/%.o: rel/d/a/obj/d_a_obj_magLift/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_magLift/%.o: rel/d/a/obj/d_a_obj_magLift/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_magLift/%.d @echo [565] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M565_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M565_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M565_D_FILES := $(M565_O_FILES:.o=.d) +$(M565_D_FILES): +include $(wildcard $(M565_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_magLiftRot/Makefile b/rel/d/a/obj/d_a_obj_magLiftRot/Makefile index bca69a53a9f..4994272d0b6 100644 --- a/rel/d/a/obj/d_a_obj_magLiftRot/Makefile +++ b/rel/d/a/obj/d_a_obj_magLiftRot/Makefile @@ -40,10 +40,17 @@ $(M566_TARGET): $(M566_O_FILES) $(M566_LIBS) @python3 tools/lcf.py rel 566 --output $(M566_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M566_LDFLAGS) -o $(M566_TARGET) @build/M566_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_magLiftRot/%.o: rel/d/a/obj/d_a_obj_magLiftRot/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_magLiftRot/%.o: rel/d/a/obj/d_a_obj_magLiftRot/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_magLiftRot/%.d @echo [566] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M566_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M566_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M566_D_FILES := $(M566_O_FILES:.o=.d) +$(M566_D_FILES): +include $(wildcard $(M566_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_magne_arm/Makefile b/rel/d/a/obj/d_a_obj_magne_arm/Makefile index 152570238bc..ed0e69cc7ab 100644 --- a/rel/d/a/obj/d_a_obj_magne_arm/Makefile +++ b/rel/d/a/obj/d_a_obj_magne_arm/Makefile @@ -38,10 +38,17 @@ $(M105_TARGET): $(M105_O_FILES) $(M105_LIBS) @python3 tools/lcf.py rel 105 --output $(M105_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M105_LDFLAGS) -o $(M105_TARGET) @build/M105_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_magne_arm/%.o: rel/d/a/obj/d_a_obj_magne_arm/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_magne_arm/%.o: rel/d/a/obj/d_a_obj_magne_arm/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_magne_arm/%.d @echo [105] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M105_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M105_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M105_D_FILES := $(M105_O_FILES:.o=.d) +$(M105_D_FILES): +include $(wildcard $(M105_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_maki/Makefile b/rel/d/a/obj/d_a_obj_maki/Makefile index 0126a6b7e3d..c07b77188cb 100644 --- a/rel/d/a/obj/d_a_obj_maki/Makefile +++ b/rel/d/a/obj/d_a_obj_maki/Makefile @@ -40,10 +40,17 @@ $(M567_TARGET): $(M567_O_FILES) $(M567_LIBS) @python3 tools/lcf.py rel 567 --output $(M567_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M567_LDFLAGS) -o $(M567_TARGET) @build/M567_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_maki/%.o: rel/d/a/obj/d_a_obj_maki/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_maki/%.o: rel/d/a/obj/d_a_obj_maki/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_maki/%.d @echo [567] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M567_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M567_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M567_D_FILES := $(M567_O_FILES:.o=.d) +$(M567_D_FILES): +include $(wildcard $(M567_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_master_sword/Makefile b/rel/d/a/obj/d_a_obj_master_sword/Makefile index 9a735530e8f..2d049c03b1a 100644 --- a/rel/d/a/obj/d_a_obj_master_sword/Makefile +++ b/rel/d/a/obj/d_a_obj_master_sword/Makefile @@ -40,10 +40,17 @@ $(M568_TARGET): $(M568_O_FILES) $(M568_LIBS) @python3 tools/lcf.py rel 568 --output $(M568_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M568_LDFLAGS) -o $(M568_TARGET) @build/M568_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_master_sword/%.o: rel/d/a/obj/d_a_obj_master_sword/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_master_sword/%.o: rel/d/a/obj/d_a_obj_master_sword/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_master_sword/%.d @echo [568] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M568_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M568_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M568_D_FILES := $(M568_O_FILES:.o=.d) +$(M568_D_FILES): +include $(wildcard $(M568_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_mato/Makefile b/rel/d/a/obj/d_a_obj_mato/Makefile index 4551f3b8ec9..9136bf7537e 100644 --- a/rel/d/a/obj/d_a_obj_mato/Makefile +++ b/rel/d/a/obj/d_a_obj_mato/Makefile @@ -38,10 +38,17 @@ $(M569_TARGET): $(M569_O_FILES) $(M569_LIBS) @python3 tools/lcf.py rel 569 --output $(M569_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M569_LDFLAGS) -o $(M569_TARGET) @build/M569_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mato/%.o: rel/d/a/obj/d_a_obj_mato/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mato/%.o: rel/d/a/obj/d_a_obj_mato/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mato/%.d @echo [569] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M569_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M569_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M569_D_FILES := $(M569_O_FILES:.o=.d) +$(M569_D_FILES): +include $(wildcard $(M569_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_metalbox/Makefile b/rel/d/a/obj/d_a_obj_metalbox/Makefile index 70c7853fa1e..dfa2d8d5d90 100644 --- a/rel/d/a/obj/d_a_obj_metalbox/Makefile +++ b/rel/d/a/obj/d_a_obj_metalbox/Makefile @@ -38,10 +38,17 @@ $(M106_TARGET): $(M106_O_FILES) $(M106_LIBS) @python3 tools/lcf.py rel 106 --output $(M106_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M106_LDFLAGS) -o $(M106_TARGET) @build/M106_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_metalbox/%.o: rel/d/a/obj/d_a_obj_metalbox/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_metalbox/%.o: rel/d/a/obj/d_a_obj_metalbox/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_metalbox/%.d @echo [106] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M106_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M106_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M106_D_FILES := $(M106_O_FILES:.o=.d) +$(M106_D_FILES): +include $(wildcard $(M106_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_mgate/Makefile b/rel/d/a/obj/d_a_obj_mgate/Makefile index d0de98dbc75..c1aa07c75e3 100644 --- a/rel/d/a/obj/d_a_obj_mgate/Makefile +++ b/rel/d/a/obj/d_a_obj_mgate/Makefile @@ -38,10 +38,17 @@ $(M107_TARGET): $(M107_O_FILES) $(M107_LIBS) @python3 tools/lcf.py rel 107 --output $(M107_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M107_LDFLAGS) -o $(M107_TARGET) @build/M107_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mgate/%.o: rel/d/a/obj/d_a_obj_mgate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mgate/%.o: rel/d/a/obj/d_a_obj_mgate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mgate/%.d @echo [107] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M107_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M107_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M107_D_FILES := $(M107_O_FILES:.o=.d) +$(M107_D_FILES): +include $(wildcard $(M107_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_mhole/Makefile b/rel/d/a/obj/d_a_obj_mhole/Makefile index 6b298478c2c..d79602d3680 100644 --- a/rel/d/a/obj/d_a_obj_mhole/Makefile +++ b/rel/d/a/obj/d_a_obj_mhole/Makefile @@ -38,10 +38,17 @@ $(M570_TARGET): $(M570_O_FILES) $(M570_LIBS) @python3 tools/lcf.py rel 570 --output $(M570_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M570_LDFLAGS) -o $(M570_TARGET) @build/M570_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mhole/%.o: rel/d/a/obj/d_a_obj_mhole/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mhole/%.o: rel/d/a/obj/d_a_obj_mhole/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mhole/%.d @echo [570] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M570_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M570_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M570_D_FILES := $(M570_O_FILES:.o=.d) +$(M570_D_FILES): +include $(wildcard $(M570_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_mie/Makefile b/rel/d/a/obj/d_a_obj_mie/Makefile index 2675eef5a0c..8206688745f 100644 --- a/rel/d/a/obj/d_a_obj_mie/Makefile +++ b/rel/d/a/obj/d_a_obj_mie/Makefile @@ -40,10 +40,17 @@ $(M571_TARGET): $(M571_O_FILES) $(M571_LIBS) @python3 tools/lcf.py rel 571 --output $(M571_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M571_LDFLAGS) -o $(M571_TARGET) @build/M571_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mie/%.o: rel/d/a/obj/d_a_obj_mie/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mie/%.o: rel/d/a/obj/d_a_obj_mie/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mie/%.d @echo [571] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M571_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M571_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M571_D_FILES := $(M571_O_FILES:.o=.d) +$(M571_D_FILES): +include $(wildcard $(M571_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_movebox/Makefile b/rel/d/a/obj/d_a_obj_movebox/Makefile index 0cef594b37f..e30ef3de3eb 100644 --- a/rel/d/a/obj/d_a_obj_movebox/Makefile +++ b/rel/d/a/obj/d_a_obj_movebox/Makefile @@ -40,10 +40,17 @@ $(M20_TARGET): $(M20_O_FILES) $(M20_LIBS) @python3 tools/lcf.py rel 20 --output $(M20_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M20_LDFLAGS) -o $(M20_TARGET) @build/M20_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_movebox/%.o: rel/d/a/obj/d_a_obj_movebox/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_movebox/%.o: rel/d/a/obj/d_a_obj_movebox/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_movebox/%.d @echo [ 20] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M20_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M20_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M20_D_FILES := $(M20_O_FILES:.o=.d) +$(M20_D_FILES): +include $(wildcard $(M20_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_msima/Makefile b/rel/d/a/obj/d_a_obj_msima/Makefile index fe15977f284..fcd58dbef58 100644 --- a/rel/d/a/obj/d_a_obj_msima/Makefile +++ b/rel/d/a/obj/d_a_obj_msima/Makefile @@ -40,10 +40,17 @@ $(M577_TARGET): $(M577_O_FILES) $(M577_LIBS) @python3 tools/lcf.py rel 577 --output $(M577_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M577_LDFLAGS) -o $(M577_TARGET) @build/M577_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_msima/%.o: rel/d/a/obj/d_a_obj_msima/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_msima/%.o: rel/d/a/obj/d_a_obj_msima/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_msima/%.d @echo [577] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M577_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M577_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M577_D_FILES := $(M577_O_FILES:.o=.d) +$(M577_D_FILES): +include $(wildcard $(M577_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_mvstair/Makefile b/rel/d/a/obj/d_a_obj_mvstair/Makefile index 8dd01d9067f..5a080cd99ff 100644 --- a/rel/d/a/obj/d_a_obj_mvstair/Makefile +++ b/rel/d/a/obj/d_a_obj_mvstair/Makefile @@ -40,10 +40,17 @@ $(M578_TARGET): $(M578_O_FILES) $(M578_LIBS) @python3 tools/lcf.py rel 578 --output $(M578_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M578_LDFLAGS) -o $(M578_TARGET) @build/M578_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mvstair/%.o: rel/d/a/obj/d_a_obj_mvstair/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mvstair/%.o: rel/d/a/obj/d_a_obj_mvstair/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mvstair/%.d @echo [578] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M578_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M578_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M578_D_FILES := $(M578_O_FILES:.o=.d) +$(M578_D_FILES): +include $(wildcard $(M578_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_myogan/Makefile b/rel/d/a/obj/d_a_obj_myogan/Makefile index abce56c88ac..64958b8950c 100644 --- a/rel/d/a/obj/d_a_obj_myogan/Makefile +++ b/rel/d/a/obj/d_a_obj_myogan/Makefile @@ -40,10 +40,17 @@ $(M579_TARGET): $(M579_O_FILES) $(M579_LIBS) @python3 tools/lcf.py rel 579 --output $(M579_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M579_LDFLAGS) -o $(M579_TARGET) @build/M579_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_myogan/%.o: rel/d/a/obj/d_a_obj_myogan/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_myogan/%.o: rel/d/a/obj/d_a_obj_myogan/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_myogan/%.d @echo [579] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M579_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M579_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M579_D_FILES := $(M579_O_FILES:.o=.d) +$(M579_D_FILES): +include $(wildcard $(M579_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_nagaisu/Makefile b/rel/d/a/obj/d_a_obj_nagaisu/Makefile index 80bb771dc0a..a0cd4267023 100644 --- a/rel/d/a/obj/d_a_obj_nagaisu/Makefile +++ b/rel/d/a/obj/d_a_obj_nagaisu/Makefile @@ -38,10 +38,17 @@ $(M580_TARGET): $(M580_O_FILES) $(M580_LIBS) @python3 tools/lcf.py rel 580 --output $(M580_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M580_LDFLAGS) -o $(M580_TARGET) @build/M580_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_nagaisu/%.o: rel/d/a/obj/d_a_obj_nagaisu/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_nagaisu/%.o: rel/d/a/obj/d_a_obj_nagaisu/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_nagaisu/%.d @echo [580] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M580_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M580_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M580_D_FILES := $(M580_O_FILES:.o=.d) +$(M580_D_FILES): +include $(wildcard $(M580_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_nameplate/Makefile b/rel/d/a/obj/d_a_obj_nameplate/Makefile index 78104edddfa..958a1d8cd8f 100644 --- a/rel/d/a/obj/d_a_obj_nameplate/Makefile +++ b/rel/d/a/obj/d_a_obj_nameplate/Makefile @@ -38,10 +38,17 @@ $(M108_TARGET): $(M108_O_FILES) $(M108_LIBS) @python3 tools/lcf.py rel 108 --output $(M108_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M108_LDFLAGS) -o $(M108_TARGET) @build/M108_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_nameplate/%.o: rel/d/a/obj/d_a_obj_nameplate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_nameplate/%.o: rel/d/a/obj/d_a_obj_nameplate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_nameplate/%.d @echo [108] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M108_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M108_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M108_D_FILES := $(M108_O_FILES:.o=.d) +$(M108_D_FILES): +include $(wildcard $(M108_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_nan/Makefile b/rel/d/a/obj/d_a_obj_nan/Makefile index cb707768139..ea3bbed4aa7 100644 --- a/rel/d/a/obj/d_a_obj_nan/Makefile +++ b/rel/d/a/obj/d_a_obj_nan/Makefile @@ -40,10 +40,17 @@ $(M581_TARGET): $(M581_O_FILES) $(M581_LIBS) @python3 tools/lcf.py rel 581 --output $(M581_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M581_LDFLAGS) -o $(M581_TARGET) @build/M581_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_nan/%.o: rel/d/a/obj/d_a_obj_nan/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_nan/%.o: rel/d/a/obj/d_a_obj_nan/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_nan/%.d @echo [581] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M581_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M581_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M581_D_FILES := $(M581_O_FILES:.o=.d) +$(M581_D_FILES): +include $(wildcard $(M581_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ndoor/Makefile b/rel/d/a/obj/d_a_obj_ndoor/Makefile index 0eeb977ef19..13848cbeea1 100644 --- a/rel/d/a/obj/d_a_obj_ndoor/Makefile +++ b/rel/d/a/obj/d_a_obj_ndoor/Makefile @@ -38,10 +38,17 @@ $(M582_TARGET): $(M582_O_FILES) $(M582_LIBS) @python3 tools/lcf.py rel 582 --output $(M582_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M582_LDFLAGS) -o $(M582_TARGET) @build/M582_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ndoor/%.o: rel/d/a/obj/d_a_obj_ndoor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ndoor/%.o: rel/d/a/obj/d_a_obj_ndoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ndoor/%.d @echo [582] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M582_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M582_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M582_D_FILES := $(M582_O_FILES:.o=.d) +$(M582_D_FILES): +include $(wildcard $(M582_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_nougu/Makefile b/rel/d/a/obj/d_a_obj_nougu/Makefile index c0077bf9d04..77a97510282 100644 --- a/rel/d/a/obj/d_a_obj_nougu/Makefile +++ b/rel/d/a/obj/d_a_obj_nougu/Makefile @@ -40,10 +40,17 @@ $(M583_TARGET): $(M583_O_FILES) $(M583_LIBS) @python3 tools/lcf.py rel 583 --output $(M583_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M583_LDFLAGS) -o $(M583_TARGET) @build/M583_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_nougu/%.o: rel/d/a/obj/d_a_obj_nougu/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_nougu/%.o: rel/d/a/obj/d_a_obj_nougu/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_nougu/%.d @echo [583] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M583_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M583_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M583_D_FILES := $(M583_O_FILES:.o=.d) +$(M583_D_FILES): +include $(wildcard $(M583_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_octhashi/Makefile b/rel/d/a/obj/d_a_obj_octhashi/Makefile index 21f82a1966b..6e7a95d717e 100644 --- a/rel/d/a/obj/d_a_obj_octhashi/Makefile +++ b/rel/d/a/obj/d_a_obj_octhashi/Makefile @@ -40,10 +40,17 @@ $(M584_TARGET): $(M584_O_FILES) $(M584_LIBS) @python3 tools/lcf.py rel 584 --output $(M584_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M584_LDFLAGS) -o $(M584_TARGET) @build/M584_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_octhashi/%.o: rel/d/a/obj/d_a_obj_octhashi/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_octhashi/%.o: rel/d/a/obj/d_a_obj_octhashi/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_octhashi/%.d @echo [584] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M584_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M584_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M584_D_FILES := $(M584_O_FILES:.o=.d) +$(M584_D_FILES): +include $(wildcard $(M584_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_oiltubo/Makefile b/rel/d/a/obj/d_a_obj_oiltubo/Makefile index 6e0271795d3..6d84c99d8ec 100644 --- a/rel/d/a/obj/d_a_obj_oiltubo/Makefile +++ b/rel/d/a/obj/d_a_obj_oiltubo/Makefile @@ -38,10 +38,17 @@ $(M585_TARGET): $(M585_O_FILES) $(M585_LIBS) @python3 tools/lcf.py rel 585 --output $(M585_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M585_LDFLAGS) -o $(M585_TARGET) @build/M585_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_oiltubo/%.o: rel/d/a/obj/d_a_obj_oiltubo/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_oiltubo/%.o: rel/d/a/obj/d_a_obj_oiltubo/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_oiltubo/%.d @echo [585] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M585_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M585_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M585_D_FILES := $(M585_O_FILES:.o=.d) +$(M585_D_FILES): +include $(wildcard $(M585_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_onsen/Makefile b/rel/d/a/obj/d_a_obj_onsen/Makefile index 025ca563433..a279f1ab91c 100644 --- a/rel/d/a/obj/d_a_obj_onsen/Makefile +++ b/rel/d/a/obj/d_a_obj_onsen/Makefile @@ -38,10 +38,17 @@ $(M586_TARGET): $(M586_O_FILES) $(M586_LIBS) @python3 tools/lcf.py rel 586 --output $(M586_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M586_LDFLAGS) -o $(M586_TARGET) @build/M586_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_onsen/%.o: rel/d/a/obj/d_a_obj_onsen/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_onsen/%.o: rel/d/a/obj/d_a_obj_onsen/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_onsen/%.d @echo [586] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M586_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M586_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M586_D_FILES := $(M586_O_FILES:.o=.d) +$(M586_D_FILES): +include $(wildcard $(M586_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_onsenFire/Makefile b/rel/d/a/obj/d_a_obj_onsenFire/Makefile index 0148f096187..399f5cfbfb0 100644 --- a/rel/d/a/obj/d_a_obj_onsenFire/Makefile +++ b/rel/d/a/obj/d_a_obj_onsenFire/Makefile @@ -38,10 +38,17 @@ $(M587_TARGET): $(M587_O_FILES) $(M587_LIBS) @python3 tools/lcf.py rel 587 --output $(M587_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M587_LDFLAGS) -o $(M587_TARGET) @build/M587_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_onsenFire/%.o: rel/d/a/obj/d_a_obj_onsenFire/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_onsenFire/%.o: rel/d/a/obj/d_a_obj_onsenFire/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_onsenFire/%.d @echo [587] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M587_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M587_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M587_D_FILES := $(M587_O_FILES:.o=.d) +$(M587_D_FILES): +include $(wildcard $(M587_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_onsenTaru/Makefile b/rel/d/a/obj/d_a_obj_onsenTaru/Makefile index 2ee62c18c7e..54e473fcc59 100644 --- a/rel/d/a/obj/d_a_obj_onsenTaru/Makefile +++ b/rel/d/a/obj/d_a_obj_onsenTaru/Makefile @@ -40,10 +40,17 @@ $(M588_TARGET): $(M588_O_FILES) $(M588_LIBS) @python3 tools/lcf.py rel 588 --output $(M588_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M588_LDFLAGS) -o $(M588_TARGET) @build/M588_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_onsenTaru/%.o: rel/d/a/obj/d_a_obj_onsenTaru/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_onsenTaru/%.o: rel/d/a/obj/d_a_obj_onsenTaru/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_onsenTaru/%.d @echo [588] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M588_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M588_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M588_D_FILES := $(M588_O_FILES:.o=.d) +$(M588_D_FILES): +include $(wildcard $(M588_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ornament_cloth/Makefile b/rel/d/a/obj/d_a_obj_ornament_cloth/Makefile index f0aac69b75c..a9d995c1f22 100644 --- a/rel/d/a/obj/d_a_obj_ornament_cloth/Makefile +++ b/rel/d/a/obj/d_a_obj_ornament_cloth/Makefile @@ -38,10 +38,17 @@ $(M109_TARGET): $(M109_O_FILES) $(M109_LIBS) @python3 tools/lcf.py rel 109 --output $(M109_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M109_LDFLAGS) -o $(M109_TARGET) @build/M109_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ornament_cloth/%.o: rel/d/a/obj/d_a_obj_ornament_cloth/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ornament_cloth/%.o: rel/d/a/obj/d_a_obj_ornament_cloth/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ornament_cloth/%.d @echo [109] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M109_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M109_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M109_D_FILES := $(M109_O_FILES:.o=.d) +$(M109_D_FILES): +include $(wildcard $(M109_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_pdoor/Makefile b/rel/d/a/obj/d_a_obj_pdoor/Makefile index e45b4a23e08..cdadf283002 100644 --- a/rel/d/a/obj/d_a_obj_pdoor/Makefile +++ b/rel/d/a/obj/d_a_obj_pdoor/Makefile @@ -40,10 +40,17 @@ $(M589_TARGET): $(M589_O_FILES) $(M589_LIBS) @python3 tools/lcf.py rel 589 --output $(M589_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M589_LDFLAGS) -o $(M589_TARGET) @build/M589_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdoor/%.o: rel/d/a/obj/d_a_obj_pdoor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdoor/%.o: rel/d/a/obj/d_a_obj_pdoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdoor/%.d @echo [589] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M589_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M589_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M589_D_FILES := $(M589_O_FILES:.o=.d) +$(M589_D_FILES): +include $(wildcard $(M589_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_pdtile/Makefile b/rel/d/a/obj/d_a_obj_pdtile/Makefile index 336c5b90018..783c23c3cd6 100644 --- a/rel/d/a/obj/d_a_obj_pdtile/Makefile +++ b/rel/d/a/obj/d_a_obj_pdtile/Makefile @@ -38,10 +38,17 @@ $(M590_TARGET): $(M590_O_FILES) $(M590_LIBS) @python3 tools/lcf.py rel 590 --output $(M590_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M590_LDFLAGS) -o $(M590_TARGET) @build/M590_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdtile/%.o: rel/d/a/obj/d_a_obj_pdtile/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdtile/%.o: rel/d/a/obj/d_a_obj_pdtile/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdtile/%.d @echo [590] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M590_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M590_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M590_D_FILES := $(M590_O_FILES:.o=.d) +$(M590_D_FILES): +include $(wildcard $(M590_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_pdwall/Makefile b/rel/d/a/obj/d_a_obj_pdwall/Makefile index b550b0ead9d..92c3f072a90 100644 --- a/rel/d/a/obj/d_a_obj_pdwall/Makefile +++ b/rel/d/a/obj/d_a_obj_pdwall/Makefile @@ -38,10 +38,17 @@ $(M591_TARGET): $(M591_O_FILES) $(M591_LIBS) @python3 tools/lcf.py rel 591 --output $(M591_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M591_LDFLAGS) -o $(M591_TARGET) @build/M591_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdwall/%.o: rel/d/a/obj/d_a_obj_pdwall/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdwall/%.o: rel/d/a/obj/d_a_obj_pdwall/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdwall/%.d @echo [591] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M591_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M591_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M591_D_FILES := $(M591_O_FILES:.o=.d) +$(M591_D_FILES): +include $(wildcard $(M591_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_picture/Makefile b/rel/d/a/obj/d_a_obj_picture/Makefile index ec8d4b7629c..0ce40ae9ec5 100644 --- a/rel/d/a/obj/d_a_obj_picture/Makefile +++ b/rel/d/a/obj/d_a_obj_picture/Makefile @@ -38,10 +38,17 @@ $(M592_TARGET): $(M592_O_FILES) $(M592_LIBS) @python3 tools/lcf.py rel 592 --output $(M592_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M592_LDFLAGS) -o $(M592_TARGET) @build/M592_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_picture/%.o: rel/d/a/obj/d_a_obj_picture/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_picture/%.o: rel/d/a/obj/d_a_obj_picture/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_picture/%.d @echo [592] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M592_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M592_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M592_D_FILES := $(M592_O_FILES:.o=.d) +$(M592_D_FILES): +include $(wildcard $(M592_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_pillar/Makefile b/rel/d/a/obj/d_a_obj_pillar/Makefile index e36d4619903..de494c0ffd6 100644 --- a/rel/d/a/obj/d_a_obj_pillar/Makefile +++ b/rel/d/a/obj/d_a_obj_pillar/Makefile @@ -40,10 +40,17 @@ $(M593_TARGET): $(M593_O_FILES) $(M593_LIBS) @python3 tools/lcf.py rel 593 --output $(M593_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M593_LDFLAGS) -o $(M593_TARGET) @build/M593_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pillar/%.o: rel/d/a/obj/d_a_obj_pillar/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pillar/%.o: rel/d/a/obj/d_a_obj_pillar/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pillar/%.d @echo [593] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M593_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M593_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M593_D_FILES := $(M593_O_FILES:.o=.d) +$(M593_D_FILES): +include $(wildcard $(M593_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_pleaf/Makefile b/rel/d/a/obj/d_a_obj_pleaf/Makefile index 09bc209ee5f..0e831b26de2 100644 --- a/rel/d/a/obj/d_a_obj_pleaf/Makefile +++ b/rel/d/a/obj/d_a_obj_pleaf/Makefile @@ -40,10 +40,17 @@ $(M594_TARGET): $(M594_O_FILES) $(M594_LIBS) @python3 tools/lcf.py rel 594 --output $(M594_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M594_LDFLAGS) -o $(M594_TARGET) @build/M594_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pleaf/%.o: rel/d/a/obj/d_a_obj_pleaf/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pleaf/%.o: rel/d/a/obj/d_a_obj_pleaf/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pleaf/%.d @echo [594] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M594_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M594_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M594_D_FILES := $(M594_O_FILES:.o=.d) +$(M594_D_FILES): +include $(wildcard $(M594_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_poCandle/Makefile b/rel/d/a/obj/d_a_obj_poCandle/Makefile index 06a442f35d7..e91bf8eab3d 100644 --- a/rel/d/a/obj/d_a_obj_poCandle/Makefile +++ b/rel/d/a/obj/d_a_obj_poCandle/Makefile @@ -40,10 +40,17 @@ $(M595_TARGET): $(M595_O_FILES) $(M595_LIBS) @python3 tools/lcf.py rel 595 --output $(M595_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M595_LDFLAGS) -o $(M595_TARGET) @build/M595_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_poCandle/%.o: rel/d/a/obj/d_a_obj_poCandle/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_poCandle/%.o: rel/d/a/obj/d_a_obj_poCandle/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_poCandle/%.d @echo [595] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M595_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M595_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M595_D_FILES := $(M595_O_FILES:.o=.d) +$(M595_D_FILES): +include $(wildcard $(M595_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_poFire/Makefile b/rel/d/a/obj/d_a_obj_poFire/Makefile index bd6a9416c29..ca6aafef899 100644 --- a/rel/d/a/obj/d_a_obj_poFire/Makefile +++ b/rel/d/a/obj/d_a_obj_poFire/Makefile @@ -40,10 +40,17 @@ $(M596_TARGET): $(M596_O_FILES) $(M596_LIBS) @python3 tools/lcf.py rel 596 --output $(M596_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M596_LDFLAGS) -o $(M596_TARGET) @build/M596_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_poFire/%.o: rel/d/a/obj/d_a_obj_poFire/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_poFire/%.o: rel/d/a/obj/d_a_obj_poFire/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_poFire/%.d @echo [596] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M596_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M596_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M596_D_FILES := $(M596_O_FILES:.o=.d) +$(M596_D_FILES): +include $(wildcard $(M596_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_poTbox/Makefile b/rel/d/a/obj/d_a_obj_poTbox/Makefile index f9bc0d94d04..b6ca6fc60e4 100644 --- a/rel/d/a/obj/d_a_obj_poTbox/Makefile +++ b/rel/d/a/obj/d_a_obj_poTbox/Makefile @@ -40,10 +40,17 @@ $(M597_TARGET): $(M597_O_FILES) $(M597_LIBS) @python3 tools/lcf.py rel 597 --output $(M597_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M597_LDFLAGS) -o $(M597_TARGET) @build/M597_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_poTbox/%.o: rel/d/a/obj/d_a_obj_poTbox/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_poTbox/%.o: rel/d/a/obj/d_a_obj_poTbox/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_poTbox/%.d @echo [597] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M597_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M597_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M597_D_FILES := $(M597_O_FILES:.o=.d) +$(M597_D_FILES): +include $(wildcard $(M597_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_prop/Makefile b/rel/d/a/obj/d_a_obj_prop/Makefile index 38f2e13bd10..f52e2e8a16b 100644 --- a/rel/d/a/obj/d_a_obj_prop/Makefile +++ b/rel/d/a/obj/d_a_obj_prop/Makefile @@ -38,10 +38,17 @@ $(M598_TARGET): $(M598_O_FILES) $(M598_LIBS) @python3 tools/lcf.py rel 598 --output $(M598_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M598_LDFLAGS) -o $(M598_TARGET) @build/M598_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_prop/%.o: rel/d/a/obj/d_a_obj_prop/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_prop/%.o: rel/d/a/obj/d_a_obj_prop/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_prop/%.d @echo [598] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M598_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M598_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M598_D_FILES := $(M598_O_FILES:.o=.d) +$(M598_D_FILES): +include $(wildcard $(M598_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_pumpkin/Makefile b/rel/d/a/obj/d_a_obj_pumpkin/Makefile index fdd39424763..035ab0db58d 100644 --- a/rel/d/a/obj/d_a_obj_pumpkin/Makefile +++ b/rel/d/a/obj/d_a_obj_pumpkin/Makefile @@ -40,10 +40,17 @@ $(M599_TARGET): $(M599_O_FILES) $(M599_LIBS) @python3 tools/lcf.py rel 599 --output $(M599_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M599_LDFLAGS) -o $(M599_TARGET) @build/M599_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pumpkin/%.o: rel/d/a/obj/d_a_obj_pumpkin/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pumpkin/%.o: rel/d/a/obj/d_a_obj_pumpkin/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pumpkin/%.d @echo [599] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M599_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M599_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M599_D_FILES := $(M599_O_FILES:.o=.d) +$(M599_D_FILES): +include $(wildcard $(M599_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_rcircle/Makefile b/rel/d/a/obj/d_a_obj_rcircle/Makefile index 7b67b27d1f6..3fc4db94e57 100644 --- a/rel/d/a/obj/d_a_obj_rcircle/Makefile +++ b/rel/d/a/obj/d_a_obj_rcircle/Makefile @@ -38,10 +38,17 @@ $(M600_TARGET): $(M600_O_FILES) $(M600_LIBS) @python3 tools/lcf.py rel 600 --output $(M600_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M600_LDFLAGS) -o $(M600_TARGET) @build/M600_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rcircle/%.o: rel/d/a/obj/d_a_obj_rcircle/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rcircle/%.o: rel/d/a/obj/d_a_obj_rcircle/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rcircle/%.d @echo [600] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M600_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M600_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M600_D_FILES := $(M600_O_FILES:.o=.d) +$(M600_D_FILES): +include $(wildcard $(M600_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_rfHole/Makefile b/rel/d/a/obj/d_a_obj_rfHole/Makefile index 9e722f2203f..7e63239281e 100644 --- a/rel/d/a/obj/d_a_obj_rfHole/Makefile +++ b/rel/d/a/obj/d_a_obj_rfHole/Makefile @@ -40,10 +40,17 @@ $(M601_TARGET): $(M601_O_FILES) $(M601_LIBS) @python3 tools/lcf.py rel 601 --output $(M601_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M601_LDFLAGS) -o $(M601_TARGET) @build/M601_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rfHole/%.o: rel/d/a/obj/d_a_obj_rfHole/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rfHole/%.o: rel/d/a/obj/d_a_obj_rfHole/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rfHole/%.d @echo [601] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M601_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M601_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M601_D_FILES := $(M601_O_FILES:.o=.d) +$(M601_D_FILES): +include $(wildcard $(M601_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_rgate/Makefile b/rel/d/a/obj/d_a_obj_rgate/Makefile index d5a58117f18..3c10dba289b 100644 --- a/rel/d/a/obj/d_a_obj_rgate/Makefile +++ b/rel/d/a/obj/d_a_obj_rgate/Makefile @@ -38,10 +38,17 @@ $(M602_TARGET): $(M602_O_FILES) $(M602_LIBS) @python3 tools/lcf.py rel 602 --output $(M602_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M602_LDFLAGS) -o $(M602_TARGET) @build/M602_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rgate/%.o: rel/d/a/obj/d_a_obj_rgate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rgate/%.o: rel/d/a/obj/d_a_obj_rgate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rgate/%.d @echo [602] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M602_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M602_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M602_D_FILES := $(M602_O_FILES:.o=.d) +$(M602_D_FILES): +include $(wildcard $(M602_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_riverrock/Makefile b/rel/d/a/obj/d_a_obj_riverrock/Makefile index 56bd83d9e2b..95002aa11bc 100644 --- a/rel/d/a/obj/d_a_obj_riverrock/Makefile +++ b/rel/d/a/obj/d_a_obj_riverrock/Makefile @@ -40,10 +40,17 @@ $(M603_TARGET): $(M603_O_FILES) $(M603_LIBS) @python3 tools/lcf.py rel 603 --output $(M603_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M603_LDFLAGS) -o $(M603_TARGET) @build/M603_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_riverrock/%.o: rel/d/a/obj/d_a_obj_riverrock/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_riverrock/%.o: rel/d/a/obj/d_a_obj_riverrock/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_riverrock/%.d @echo [603] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M603_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M603_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M603_D_FILES := $(M603_O_FILES:.o=.d) +$(M603_D_FILES): +include $(wildcard $(M603_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_rock/Makefile b/rel/d/a/obj/d_a_obj_rock/Makefile index 4da76be7a59..88270f3735e 100644 --- a/rel/d/a/obj/d_a_obj_rock/Makefile +++ b/rel/d/a/obj/d_a_obj_rock/Makefile @@ -38,10 +38,17 @@ $(M604_TARGET): $(M604_O_FILES) $(M604_LIBS) @python3 tools/lcf.py rel 604 --output $(M604_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M604_LDFLAGS) -o $(M604_TARGET) @build/M604_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rock/%.o: rel/d/a/obj/d_a_obj_rock/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rock/%.o: rel/d/a/obj/d_a_obj_rock/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rock/%.d @echo [604] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M604_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M604_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M604_D_FILES := $(M604_O_FILES:.o=.d) +$(M604_D_FILES): +include $(wildcard $(M604_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_rope_bridge/Makefile b/rel/d/a/obj/d_a_obj_rope_bridge/Makefile index 9e4e61ab808..7ede670b182 100644 --- a/rel/d/a/obj/d_a_obj_rope_bridge/Makefile +++ b/rel/d/a/obj/d_a_obj_rope_bridge/Makefile @@ -40,10 +40,17 @@ $(M110_TARGET): $(M110_O_FILES) $(M110_LIBS) @python3 tools/lcf.py rel 110 --output $(M110_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M110_LDFLAGS) -o $(M110_TARGET) @build/M110_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rope_bridge/%.o: rel/d/a/obj/d_a_obj_rope_bridge/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rope_bridge/%.o: rel/d/a/obj/d_a_obj_rope_bridge/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rope_bridge/%.d @echo [110] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M110_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M110_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M110_D_FILES := $(M110_O_FILES:.o=.d) +$(M110_D_FILES): +include $(wildcard $(M110_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_rotBridge/Makefile b/rel/d/a/obj/d_a_obj_rotBridge/Makefile index b1e72f96cc0..b7b273bf270 100644 --- a/rel/d/a/obj/d_a_obj_rotBridge/Makefile +++ b/rel/d/a/obj/d_a_obj_rotBridge/Makefile @@ -40,10 +40,17 @@ $(M605_TARGET): $(M605_O_FILES) $(M605_LIBS) @python3 tools/lcf.py rel 605 --output $(M605_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M605_LDFLAGS) -o $(M605_TARGET) @build/M605_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rotBridge/%.o: rel/d/a/obj/d_a_obj_rotBridge/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rotBridge/%.o: rel/d/a/obj/d_a_obj_rotBridge/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rotBridge/%.d @echo [605] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M605_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M605_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M605_D_FILES := $(M605_O_FILES:.o=.d) +$(M605_D_FILES): +include $(wildcard $(M605_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_rotTrap/Makefile b/rel/d/a/obj/d_a_obj_rotTrap/Makefile index 0f6e030ed88..10817001a24 100644 --- a/rel/d/a/obj/d_a_obj_rotTrap/Makefile +++ b/rel/d/a/obj/d_a_obj_rotTrap/Makefile @@ -40,10 +40,17 @@ $(M606_TARGET): $(M606_O_FILES) $(M606_LIBS) @python3 tools/lcf.py rel 606 --output $(M606_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M606_LDFLAGS) -o $(M606_TARGET) @build/M606_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rotTrap/%.o: rel/d/a/obj/d_a_obj_rotTrap/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rotTrap/%.o: rel/d/a/obj/d_a_obj_rotTrap/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rotTrap/%.d @echo [606] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M606_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M606_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M606_D_FILES := $(M606_O_FILES:.o=.d) +$(M606_D_FILES): +include $(wildcard $(M606_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_roten/Makefile b/rel/d/a/obj/d_a_obj_roten/Makefile index f2ad0d7f3b6..3aa613cfd78 100644 --- a/rel/d/a/obj/d_a_obj_roten/Makefile +++ b/rel/d/a/obj/d_a_obj_roten/Makefile @@ -38,10 +38,17 @@ $(M607_TARGET): $(M607_O_FILES) $(M607_LIBS) @python3 tools/lcf.py rel 607 --output $(M607_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M607_LDFLAGS) -o $(M607_TARGET) @build/M607_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_roten/%.o: rel/d/a/obj/d_a_obj_roten/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_roten/%.o: rel/d/a/obj/d_a_obj_roten/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_roten/%.d @echo [607] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M607_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M607_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M607_D_FILES := $(M607_O_FILES:.o=.d) +$(M607_D_FILES): +include $(wildcard $(M607_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_rstair/Makefile b/rel/d/a/obj/d_a_obj_rstair/Makefile index 949fe771aec..9247a571846 100644 --- a/rel/d/a/obj/d_a_obj_rstair/Makefile +++ b/rel/d/a/obj/d_a_obj_rstair/Makefile @@ -40,10 +40,17 @@ $(M608_TARGET): $(M608_O_FILES) $(M608_LIBS) @python3 tools/lcf.py rel 608 --output $(M608_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M608_LDFLAGS) -o $(M608_TARGET) @build/M608_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rstair/%.o: rel/d/a/obj/d_a_obj_rstair/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rstair/%.o: rel/d/a/obj/d_a_obj_rstair/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rstair/%.d @echo [608] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M608_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M608_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M608_D_FILES := $(M608_O_FILES:.o=.d) +$(M608_D_FILES): +include $(wildcard $(M608_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_rw/Makefile b/rel/d/a/obj/d_a_obj_rw/Makefile index 0d58894be90..bcd3db7b5d0 100644 --- a/rel/d/a/obj/d_a_obj_rw/Makefile +++ b/rel/d/a/obj/d_a_obj_rw/Makefile @@ -40,10 +40,17 @@ $(M609_TARGET): $(M609_O_FILES) $(M609_LIBS) @python3 tools/lcf.py rel 609 --output $(M609_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M609_LDFLAGS) -o $(M609_TARGET) @build/M609_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rw/%.o: rel/d/a/obj/d_a_obj_rw/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rw/%.o: rel/d/a/obj/d_a_obj_rw/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rw/%.d @echo [609] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M609_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M609_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M609_D_FILES := $(M609_O_FILES:.o=.d) +$(M609_D_FILES): +include $(wildcard $(M609_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_saidan/Makefile b/rel/d/a/obj/d_a_obj_saidan/Makefile index 1ef0e3c1b9f..a1830bef6a3 100644 --- a/rel/d/a/obj/d_a_obj_saidan/Makefile +++ b/rel/d/a/obj/d_a_obj_saidan/Makefile @@ -40,10 +40,17 @@ $(M610_TARGET): $(M610_O_FILES) $(M610_LIBS) @python3 tools/lcf.py rel 610 --output $(M610_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M610_LDFLAGS) -o $(M610_TARGET) @build/M610_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_saidan/%.o: rel/d/a/obj/d_a_obj_saidan/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_saidan/%.o: rel/d/a/obj/d_a_obj_saidan/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_saidan/%.d @echo [610] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M610_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M610_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M610_D_FILES := $(M610_O_FILES:.o=.d) +$(M610_D_FILES): +include $(wildcard $(M610_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_sakuita/Makefile b/rel/d/a/obj/d_a_obj_sakuita/Makefile index b7752a96334..b3bc355ad3d 100644 --- a/rel/d/a/obj/d_a_obj_sakuita/Makefile +++ b/rel/d/a/obj/d_a_obj_sakuita/Makefile @@ -38,10 +38,17 @@ $(M611_TARGET): $(M611_O_FILES) $(M611_LIBS) @python3 tools/lcf.py rel 611 --output $(M611_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M611_LDFLAGS) -o $(M611_TARGET) @build/M611_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita/%.o: rel/d/a/obj/d_a_obj_sakuita/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita/%.o: rel/d/a/obj/d_a_obj_sakuita/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita/%.d @echo [611] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M611_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M611_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M611_D_FILES := $(M611_O_FILES:.o=.d) +$(M611_D_FILES): +include $(wildcard $(M611_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_sakuita_rope/Makefile b/rel/d/a/obj/d_a_obj_sakuita_rope/Makefile index e0f0eb06bbd..0d7fa2f177a 100644 --- a/rel/d/a/obj/d_a_obj_sakuita_rope/Makefile +++ b/rel/d/a/obj/d_a_obj_sakuita_rope/Makefile @@ -38,10 +38,17 @@ $(M612_TARGET): $(M612_O_FILES) $(M612_LIBS) @python3 tools/lcf.py rel 612 --output $(M612_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M612_LDFLAGS) -o $(M612_TARGET) @build/M612_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita_rope/%.o: rel/d/a/obj/d_a_obj_sakuita_rope/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita_rope/%.o: rel/d/a/obj/d_a_obj_sakuita_rope/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita_rope/%.d @echo [612] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M612_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M612_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M612_D_FILES := $(M612_O_FILES:.o=.d) +$(M612_D_FILES): +include $(wildcard $(M612_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_scannon/Makefile b/rel/d/a/obj/d_a_obj_scannon/Makefile index 9a0a4b716bb..0c1a5807c94 100644 --- a/rel/d/a/obj/d_a_obj_scannon/Makefile +++ b/rel/d/a/obj/d_a_obj_scannon/Makefile @@ -38,10 +38,17 @@ $(M613_TARGET): $(M613_O_FILES) $(M613_LIBS) @python3 tools/lcf.py rel 613 --output $(M613_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M613_LDFLAGS) -o $(M613_TARGET) @build/M613_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_scannon/%.o: rel/d/a/obj/d_a_obj_scannon/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_scannon/%.o: rel/d/a/obj/d_a_obj_scannon/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_scannon/%.d @echo [613] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M613_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M613_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M613_D_FILES := $(M613_O_FILES:.o=.d) +$(M613_D_FILES): +include $(wildcard $(M613_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_scannon_crs/Makefile b/rel/d/a/obj/d_a_obj_scannon_crs/Makefile index c0047c94ec6..11995896999 100644 --- a/rel/d/a/obj/d_a_obj_scannon_crs/Makefile +++ b/rel/d/a/obj/d_a_obj_scannon_crs/Makefile @@ -38,10 +38,17 @@ $(M614_TARGET): $(M614_O_FILES) $(M614_LIBS) @python3 tools/lcf.py rel 614 --output $(M614_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M614_LDFLAGS) -o $(M614_TARGET) @build/M614_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_scannon_crs/%.o: rel/d/a/obj/d_a_obj_scannon_crs/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_scannon_crs/%.o: rel/d/a/obj/d_a_obj_scannon_crs/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_scannon_crs/%.d @echo [614] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M614_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M614_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M614_D_FILES := $(M614_O_FILES:.o=.d) +$(M614_D_FILES): +include $(wildcard $(M614_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_scannon_ten/Makefile b/rel/d/a/obj/d_a_obj_scannon_ten/Makefile index c40908fe3f9..eb02bc3af3e 100644 --- a/rel/d/a/obj/d_a_obj_scannon_ten/Makefile +++ b/rel/d/a/obj/d_a_obj_scannon_ten/Makefile @@ -38,10 +38,17 @@ $(M615_TARGET): $(M615_O_FILES) $(M615_LIBS) @python3 tools/lcf.py rel 615 --output $(M615_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M615_LDFLAGS) -o $(M615_TARGET) @build/M615_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_scannon_ten/%.o: rel/d/a/obj/d_a_obj_scannon_ten/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_scannon_ten/%.o: rel/d/a/obj/d_a_obj_scannon_ten/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_scannon_ten/%.d @echo [615] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M615_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M615_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M615_D_FILES := $(M615_O_FILES:.o=.d) +$(M615_D_FILES): +include $(wildcard $(M615_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_sekidoor/Makefile b/rel/d/a/obj/d_a_obj_sekidoor/Makefile index 1cd1a9d342d..442170d238f 100644 --- a/rel/d/a/obj/d_a_obj_sekidoor/Makefile +++ b/rel/d/a/obj/d_a_obj_sekidoor/Makefile @@ -40,10 +40,17 @@ $(M616_TARGET): $(M616_O_FILES) $(M616_LIBS) @python3 tools/lcf.py rel 616 --output $(M616_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M616_LDFLAGS) -o $(M616_TARGET) @build/M616_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekidoor/%.o: rel/d/a/obj/d_a_obj_sekidoor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekidoor/%.o: rel/d/a/obj/d_a_obj_sekidoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekidoor/%.d @echo [616] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M616_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M616_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M616_D_FILES := $(M616_O_FILES:.o=.d) +$(M616_D_FILES): +include $(wildcard $(M616_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_sekizo/Makefile b/rel/d/a/obj/d_a_obj_sekizo/Makefile index f87a6441997..038f7364cec 100644 --- a/rel/d/a/obj/d_a_obj_sekizo/Makefile +++ b/rel/d/a/obj/d_a_obj_sekizo/Makefile @@ -40,10 +40,17 @@ $(M617_TARGET): $(M617_O_FILES) $(M617_LIBS) @python3 tools/lcf.py rel 617 --output $(M617_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M617_LDFLAGS) -o $(M617_TARGET) @build/M617_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekizo/%.o: rel/d/a/obj/d_a_obj_sekizo/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekizo/%.o: rel/d/a/obj/d_a_obj_sekizo/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekizo/%.d @echo [617] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M617_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M617_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M617_D_FILES := $(M617_O_FILES:.o=.d) +$(M617_D_FILES): +include $(wildcard $(M617_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_sekizoa/Makefile b/rel/d/a/obj/d_a_obj_sekizoa/Makefile index 348ce058caf..a2a879163c5 100644 --- a/rel/d/a/obj/d_a_obj_sekizoa/Makefile +++ b/rel/d/a/obj/d_a_obj_sekizoa/Makefile @@ -40,10 +40,17 @@ $(M618_TARGET): $(M618_O_FILES) $(M618_LIBS) @python3 tools/lcf.py rel 618 --output $(M618_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M618_LDFLAGS) -o $(M618_TARGET) @build/M618_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekizoa/%.o: rel/d/a/obj/d_a_obj_sekizoa/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekizoa/%.o: rel/d/a/obj/d_a_obj_sekizoa/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekizoa/%.d @echo [618] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M618_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M618_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M618_D_FILES := $(M618_O_FILES:.o=.d) +$(M618_D_FILES): +include $(wildcard $(M618_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_shield/Makefile b/rel/d/a/obj/d_a_obj_shield/Makefile index 4a7fca18b1d..3ef41000442 100644 --- a/rel/d/a/obj/d_a_obj_shield/Makefile +++ b/rel/d/a/obj/d_a_obj_shield/Makefile @@ -40,10 +40,17 @@ $(M619_TARGET): $(M619_O_FILES) $(M619_LIBS) @python3 tools/lcf.py rel 619 --output $(M619_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M619_LDFLAGS) -o $(M619_TARGET) @build/M619_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_shield/%.o: rel/d/a/obj/d_a_obj_shield/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_shield/%.o: rel/d/a/obj/d_a_obj_shield/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_shield/%.d @echo [619] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M619_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M619_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M619_D_FILES := $(M619_O_FILES:.o=.d) +$(M619_D_FILES): +include $(wildcard $(M619_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_sm_door/Makefile b/rel/d/a/obj/d_a_obj_sm_door/Makefile index 31c4d5c48e4..73aad7a3dfd 100644 --- a/rel/d/a/obj/d_a_obj_sm_door/Makefile +++ b/rel/d/a/obj/d_a_obj_sm_door/Makefile @@ -38,10 +38,17 @@ $(M620_TARGET): $(M620_O_FILES) $(M620_LIBS) @python3 tools/lcf.py rel 620 --output $(M620_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M620_LDFLAGS) -o $(M620_TARGET) @build/M620_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sm_door/%.o: rel/d/a/obj/d_a_obj_sm_door/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sm_door/%.o: rel/d/a/obj/d_a_obj_sm_door/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sm_door/%.d @echo [620] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M620_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M620_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M620_D_FILES := $(M620_O_FILES:.o=.d) +$(M620_D_FILES): +include $(wildcard $(M620_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_smallkey/Makefile b/rel/d/a/obj/d_a_obj_smallkey/Makefile index 8a910dd807e..e9f1556c327 100644 --- a/rel/d/a/obj/d_a_obj_smallkey/Makefile +++ b/rel/d/a/obj/d_a_obj_smallkey/Makefile @@ -40,10 +40,17 @@ $(M621_TARGET): $(M621_O_FILES) $(M621_LIBS) @python3 tools/lcf.py rel 621 --output $(M621_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M621_LDFLAGS) -o $(M621_TARGET) @build/M621_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_smallkey/%.o: rel/d/a/obj/d_a_obj_smallkey/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_smallkey/%.o: rel/d/a/obj/d_a_obj_smallkey/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_smallkey/%.d @echo [621] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M621_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M621_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M621_D_FILES := $(M621_O_FILES:.o=.d) +$(M621_D_FILES): +include $(wildcard $(M621_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_smgdoor/Makefile b/rel/d/a/obj/d_a_obj_smgdoor/Makefile index 8be185df972..f77ffc997e7 100644 --- a/rel/d/a/obj/d_a_obj_smgdoor/Makefile +++ b/rel/d/a/obj/d_a_obj_smgdoor/Makefile @@ -40,10 +40,17 @@ $(M622_TARGET): $(M622_O_FILES) $(M622_LIBS) @python3 tools/lcf.py rel 622 --output $(M622_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M622_LDFLAGS) -o $(M622_TARGET) @build/M622_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_smgdoor/%.o: rel/d/a/obj/d_a_obj_smgdoor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_smgdoor/%.o: rel/d/a/obj/d_a_obj_smgdoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_smgdoor/%.d @echo [622] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M622_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M622_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M622_D_FILES := $(M622_O_FILES:.o=.d) +$(M622_D_FILES): +include $(wildcard $(M622_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_smoke/Makefile b/rel/d/a/obj/d_a_obj_smoke/Makefile index bf9f1c66871..0104aa7b011 100644 --- a/rel/d/a/obj/d_a_obj_smoke/Makefile +++ b/rel/d/a/obj/d_a_obj_smoke/Makefile @@ -38,10 +38,17 @@ $(M623_TARGET): $(M623_O_FILES) $(M623_LIBS) @python3 tools/lcf.py rel 623 --output $(M623_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M623_LDFLAGS) -o $(M623_TARGET) @build/M623_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_smoke/%.o: rel/d/a/obj/d_a_obj_smoke/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_smoke/%.o: rel/d/a/obj/d_a_obj_smoke/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_smoke/%.d @echo [623] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M623_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M623_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M623_D_FILES := $(M623_O_FILES:.o=.d) +$(M623_D_FILES): +include $(wildcard $(M623_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_smtile/Makefile b/rel/d/a/obj/d_a_obj_smtile/Makefile index af685bf9273..d162a2ab69a 100644 --- a/rel/d/a/obj/d_a_obj_smtile/Makefile +++ b/rel/d/a/obj/d_a_obj_smtile/Makefile @@ -40,10 +40,17 @@ $(M624_TARGET): $(M624_O_FILES) $(M624_LIBS) @python3 tools/lcf.py rel 624 --output $(M624_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M624_LDFLAGS) -o $(M624_TARGET) @build/M624_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_smtile/%.o: rel/d/a/obj/d_a_obj_smtile/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_smtile/%.o: rel/d/a/obj/d_a_obj_smtile/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_smtile/%.d @echo [624] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M624_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M624_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M624_D_FILES := $(M624_O_FILES:.o=.d) +$(M624_D_FILES): +include $(wildcard $(M624_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_smw_stone/Makefile b/rel/d/a/obj/d_a_obj_smw_stone/Makefile index 408368c7fc0..6b5d9a8edfb 100644 --- a/rel/d/a/obj/d_a_obj_smw_stone/Makefile +++ b/rel/d/a/obj/d_a_obj_smw_stone/Makefile @@ -38,10 +38,17 @@ $(M625_TARGET): $(M625_O_FILES) $(M625_LIBS) @python3 tools/lcf.py rel 625 --output $(M625_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M625_LDFLAGS) -o $(M625_TARGET) @build/M625_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_smw_stone/%.o: rel/d/a/obj/d_a_obj_smw_stone/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_smw_stone/%.o: rel/d/a/obj/d_a_obj_smw_stone/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_smw_stone/%.d @echo [625] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M625_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M625_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M625_D_FILES := $(M625_O_FILES:.o=.d) +$(M625_D_FILES): +include $(wildcard $(M625_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_snowEffTag/Makefile b/rel/d/a/obj/d_a_obj_snowEffTag/Makefile index ba0fae6cd2a..cc4a325973e 100644 --- a/rel/d/a/obj/d_a_obj_snowEffTag/Makefile +++ b/rel/d/a/obj/d_a_obj_snowEffTag/Makefile @@ -40,10 +40,17 @@ $(M626_TARGET): $(M626_O_FILES) $(M626_LIBS) @python3 tools/lcf.py rel 626 --output $(M626_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M626_LDFLAGS) -o $(M626_TARGET) @build/M626_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_snowEffTag/%.o: rel/d/a/obj/d_a_obj_snowEffTag/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_snowEffTag/%.o: rel/d/a/obj/d_a_obj_snowEffTag/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_snowEffTag/%.d @echo [626] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M626_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M626_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M626_D_FILES := $(M626_O_FILES:.o=.d) +$(M626_D_FILES): +include $(wildcard $(M626_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_snow_soup/Makefile b/rel/d/a/obj/d_a_obj_snow_soup/Makefile index bd47145999d..c6cc7ca39eb 100644 --- a/rel/d/a/obj/d_a_obj_snow_soup/Makefile +++ b/rel/d/a/obj/d_a_obj_snow_soup/Makefile @@ -38,10 +38,17 @@ $(M627_TARGET): $(M627_O_FILES) $(M627_LIBS) @python3 tools/lcf.py rel 627 --output $(M627_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M627_LDFLAGS) -o $(M627_TARGET) @build/M627_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_snow_soup/%.o: rel/d/a/obj/d_a_obj_snow_soup/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_snow_soup/%.o: rel/d/a/obj/d_a_obj_snow_soup/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_snow_soup/%.d @echo [627] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M627_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M627_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M627_D_FILES := $(M627_O_FILES:.o=.d) +$(M627_D_FILES): +include $(wildcard $(M627_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_so/Makefile b/rel/d/a/obj/d_a_obj_so/Makefile index 81380a12742..5eb32ffa8c2 100644 --- a/rel/d/a/obj/d_a_obj_so/Makefile +++ b/rel/d/a/obj/d_a_obj_so/Makefile @@ -40,10 +40,17 @@ $(M628_TARGET): $(M628_O_FILES) $(M628_LIBS) @python3 tools/lcf.py rel 628 --output $(M628_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M628_LDFLAGS) -o $(M628_TARGET) @build/M628_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_so/%.o: rel/d/a/obj/d_a_obj_so/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_so/%.o: rel/d/a/obj/d_a_obj_so/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_so/%.d @echo [628] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M628_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M628_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M628_D_FILES := $(M628_O_FILES:.o=.d) +$(M628_D_FILES): +include $(wildcard $(M628_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_spinLift/Makefile b/rel/d/a/obj/d_a_obj_spinLift/Makefile index b8dc50f5147..6fb4d39b40d 100644 --- a/rel/d/a/obj/d_a_obj_spinLift/Makefile +++ b/rel/d/a/obj/d_a_obj_spinLift/Makefile @@ -40,10 +40,17 @@ $(M629_TARGET): $(M629_O_FILES) $(M629_LIBS) @python3 tools/lcf.py rel 629 --output $(M629_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M629_LDFLAGS) -o $(M629_TARGET) @build/M629_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_spinLift/%.o: rel/d/a/obj/d_a_obj_spinLift/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_spinLift/%.o: rel/d/a/obj/d_a_obj_spinLift/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_spinLift/%.d @echo [629] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M629_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M629_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M629_D_FILES := $(M629_O_FILES:.o=.d) +$(M629_D_FILES): +include $(wildcard $(M629_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ss_drink/Makefile b/rel/d/a/obj/d_a_obj_ss_drink/Makefile index 3d986f20b5e..2e1b589df8e 100644 --- a/rel/d/a/obj/d_a_obj_ss_drink/Makefile +++ b/rel/d/a/obj/d_a_obj_ss_drink/Makefile @@ -38,10 +38,17 @@ $(M630_TARGET): $(M630_O_FILES) $(M630_LIBS) @python3 tools/lcf.py rel 630 --output $(M630_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M630_LDFLAGS) -o $(M630_TARGET) @build/M630_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ss_drink/%.o: rel/d/a/obj/d_a_obj_ss_drink/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ss_drink/%.o: rel/d/a/obj/d_a_obj_ss_drink/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ss_drink/%.d @echo [630] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M630_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M630_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M630_D_FILES := $(M630_O_FILES:.o=.d) +$(M630_D_FILES): +include $(wildcard $(M630_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ss_item/Makefile b/rel/d/a/obj/d_a_obj_ss_item/Makefile index 80fd75166cd..b6d468f4de5 100644 --- a/rel/d/a/obj/d_a_obj_ss_item/Makefile +++ b/rel/d/a/obj/d_a_obj_ss_item/Makefile @@ -38,10 +38,17 @@ $(M631_TARGET): $(M631_O_FILES) $(M631_LIBS) @python3 tools/lcf.py rel 631 --output $(M631_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M631_LDFLAGS) -o $(M631_TARGET) @build/M631_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ss_item/%.o: rel/d/a/obj/d_a_obj_ss_item/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ss_item/%.o: rel/d/a/obj/d_a_obj_ss_item/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ss_item/%.d @echo [631] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M631_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M631_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M631_D_FILES := $(M631_O_FILES:.o=.d) +$(M631_D_FILES): +include $(wildcard $(M631_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_stairBlock/Makefile b/rel/d/a/obj/d_a_obj_stairBlock/Makefile index 24a20591250..87908ecbe3b 100644 --- a/rel/d/a/obj/d_a_obj_stairBlock/Makefile +++ b/rel/d/a/obj/d_a_obj_stairBlock/Makefile @@ -40,10 +40,17 @@ $(M632_TARGET): $(M632_O_FILES) $(M632_LIBS) @python3 tools/lcf.py rel 632 --output $(M632_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M632_LDFLAGS) -o $(M632_TARGET) @build/M632_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stairBlock/%.o: rel/d/a/obj/d_a_obj_stairBlock/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stairBlock/%.o: rel/d/a/obj/d_a_obj_stairBlock/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stairBlock/%.d @echo [632] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M632_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M632_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M632_D_FILES := $(M632_O_FILES:.o=.d) +$(M632_D_FILES): +include $(wildcard $(M632_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_stick/Makefile b/rel/d/a/obj/d_a_obj_stick/Makefile index 1817bd1461f..922b856ddfa 100644 --- a/rel/d/a/obj/d_a_obj_stick/Makefile +++ b/rel/d/a/obj/d_a_obj_stick/Makefile @@ -40,10 +40,17 @@ $(M112_TARGET): $(M112_O_FILES) $(M112_LIBS) @python3 tools/lcf.py rel 112 --output $(M112_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M112_LDFLAGS) -o $(M112_TARGET) @build/M112_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stick/%.o: rel/d/a/obj/d_a_obj_stick/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stick/%.o: rel/d/a/obj/d_a_obj_stick/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stick/%.d @echo [112] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M112_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M112_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M112_D_FILES := $(M112_O_FILES:.o=.d) +$(M112_D_FILES): +include $(wildcard $(M112_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_stone/Makefile b/rel/d/a/obj/d_a_obj_stone/Makefile index 19ea9897777..822f444240f 100644 --- a/rel/d/a/obj/d_a_obj_stone/Makefile +++ b/rel/d/a/obj/d_a_obj_stone/Makefile @@ -40,10 +40,17 @@ $(M633_TARGET): $(M633_O_FILES) $(M633_LIBS) @python3 tools/lcf.py rel 633 --output $(M633_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M633_LDFLAGS) -o $(M633_TARGET) @build/M633_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stone/%.o: rel/d/a/obj/d_a_obj_stone/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stone/%.o: rel/d/a/obj/d_a_obj_stone/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stone/%.d @echo [633] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M633_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M633_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M633_D_FILES := $(M633_O_FILES:.o=.d) +$(M633_D_FILES): +include $(wildcard $(M633_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_stonemark/Makefile b/rel/d/a/obj/d_a_obj_stonemark/Makefile index 90d4b901c97..33422212212 100644 --- a/rel/d/a/obj/d_a_obj_stonemark/Makefile +++ b/rel/d/a/obj/d_a_obj_stonemark/Makefile @@ -38,10 +38,17 @@ $(M113_TARGET): $(M113_O_FILES) $(M113_LIBS) @python3 tools/lcf.py rel 113 --output $(M113_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M113_LDFLAGS) -o $(M113_TARGET) @build/M113_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stonemark/%.o: rel/d/a/obj/d_a_obj_stonemark/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stonemark/%.o: rel/d/a/obj/d_a_obj_stonemark/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stonemark/%.d @echo [113] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M113_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M113_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M113_D_FILES := $(M113_O_FILES:.o=.d) +$(M113_D_FILES): +include $(wildcard $(M113_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_stopper/Makefile b/rel/d/a/obj/d_a_obj_stopper/Makefile index 18e08f53c7a..0348f9b6caf 100644 --- a/rel/d/a/obj/d_a_obj_stopper/Makefile +++ b/rel/d/a/obj/d_a_obj_stopper/Makefile @@ -40,10 +40,17 @@ $(M634_TARGET): $(M634_O_FILES) $(M634_LIBS) @python3 tools/lcf.py rel 634 --output $(M634_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M634_LDFLAGS) -o $(M634_TARGET) @build/M634_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stopper/%.o: rel/d/a/obj/d_a_obj_stopper/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stopper/%.o: rel/d/a/obj/d_a_obj_stopper/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stopper/%.d @echo [634] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M634_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M634_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M634_D_FILES := $(M634_O_FILES:.o=.d) +$(M634_D_FILES): +include $(wildcard $(M634_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_stopper2/Makefile b/rel/d/a/obj/d_a_obj_stopper2/Makefile index 4c34f0242f6..d062cbdc56b 100644 --- a/rel/d/a/obj/d_a_obj_stopper2/Makefile +++ b/rel/d/a/obj/d_a_obj_stopper2/Makefile @@ -40,10 +40,17 @@ $(M635_TARGET): $(M635_O_FILES) $(M635_LIBS) @python3 tools/lcf.py rel 635 --output $(M635_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M635_LDFLAGS) -o $(M635_TARGET) @build/M635_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stopper2/%.o: rel/d/a/obj/d_a_obj_stopper2/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stopper2/%.o: rel/d/a/obj/d_a_obj_stopper2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stopper2/%.d @echo [635] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M635_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M635_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M635_D_FILES := $(M635_O_FILES:.o=.d) +$(M635_D_FILES): +include $(wildcard $(M635_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_suisya/Makefile b/rel/d/a/obj/d_a_obj_suisya/Makefile index 0a9a23a336d..c4e63fed705 100644 --- a/rel/d/a/obj/d_a_obj_suisya/Makefile +++ b/rel/d/a/obj/d_a_obj_suisya/Makefile @@ -38,10 +38,17 @@ $(M636_TARGET): $(M636_O_FILES) $(M636_LIBS) @python3 tools/lcf.py rel 636 --output $(M636_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M636_LDFLAGS) -o $(M636_TARGET) @build/M636_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_suisya/%.o: rel/d/a/obj/d_a_obj_suisya/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_suisya/%.o: rel/d/a/obj/d_a_obj_suisya/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_suisya/%.d @echo [636] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M636_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M636_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M636_D_FILES := $(M636_O_FILES:.o=.d) +$(M636_D_FILES): +include $(wildcard $(M636_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_sw/Makefile b/rel/d/a/obj/d_a_obj_sw/Makefile index 4b50b522b62..c6db9103b02 100644 --- a/rel/d/a/obj/d_a_obj_sw/Makefile +++ b/rel/d/a/obj/d_a_obj_sw/Makefile @@ -38,10 +38,17 @@ $(M637_TARGET): $(M637_O_FILES) $(M637_LIBS) @python3 tools/lcf.py rel 637 --output $(M637_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M637_LDFLAGS) -o $(M637_TARGET) @build/M637_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sw/%.o: rel/d/a/obj/d_a_obj_sw/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sw/%.o: rel/d/a/obj/d_a_obj_sw/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sw/%.d @echo [637] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M637_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M637_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M637_D_FILES := $(M637_O_FILES:.o=.d) +$(M637_D_FILES): +include $(wildcard $(M637_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swBallA/Makefile b/rel/d/a/obj/d_a_obj_swBallA/Makefile index d64b9810681..1ba2c6721f7 100644 --- a/rel/d/a/obj/d_a_obj_swBallA/Makefile +++ b/rel/d/a/obj/d_a_obj_swBallA/Makefile @@ -38,10 +38,17 @@ $(M638_TARGET): $(M638_O_FILES) $(M638_LIBS) @python3 tools/lcf.py rel 638 --output $(M638_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M638_LDFLAGS) -o $(M638_TARGET) @build/M638_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallA/%.o: rel/d/a/obj/d_a_obj_swBallA/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallA/%.o: rel/d/a/obj/d_a_obj_swBallA/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallA/%.d @echo [638] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M638_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M638_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M638_D_FILES := $(M638_O_FILES:.o=.d) +$(M638_D_FILES): +include $(wildcard $(M638_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swBallB/Makefile b/rel/d/a/obj/d_a_obj_swBallB/Makefile index f76883bedbd..b75f40cfcfe 100644 --- a/rel/d/a/obj/d_a_obj_swBallB/Makefile +++ b/rel/d/a/obj/d_a_obj_swBallB/Makefile @@ -38,10 +38,17 @@ $(M639_TARGET): $(M639_O_FILES) $(M639_LIBS) @python3 tools/lcf.py rel 639 --output $(M639_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M639_LDFLAGS) -o $(M639_TARGET) @build/M639_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallB/%.o: rel/d/a/obj/d_a_obj_swBallB/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallB/%.o: rel/d/a/obj/d_a_obj_swBallB/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallB/%.d @echo [639] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M639_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M639_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M639_D_FILES := $(M639_O_FILES:.o=.d) +$(M639_D_FILES): +include $(wildcard $(M639_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swBallC/Makefile b/rel/d/a/obj/d_a_obj_swBallC/Makefile index ed71ad35ec0..7c37a74582a 100644 --- a/rel/d/a/obj/d_a_obj_swBallC/Makefile +++ b/rel/d/a/obj/d_a_obj_swBallC/Makefile @@ -40,10 +40,17 @@ $(M640_TARGET): $(M640_O_FILES) $(M640_LIBS) @python3 tools/lcf.py rel 640 --output $(M640_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M640_LDFLAGS) -o $(M640_TARGET) @build/M640_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallC/%.o: rel/d/a/obj/d_a_obj_swBallC/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallC/%.o: rel/d/a/obj/d_a_obj_swBallC/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallC/%.d @echo [640] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M640_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M640_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M640_D_FILES := $(M640_O_FILES:.o=.d) +$(M640_D_FILES): +include $(wildcard $(M640_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swLight/Makefile b/rel/d/a/obj/d_a_obj_swLight/Makefile index 1f2f9e48ee8..73196d08538 100644 --- a/rel/d/a/obj/d_a_obj_swLight/Makefile +++ b/rel/d/a/obj/d_a_obj_swLight/Makefile @@ -40,10 +40,17 @@ $(M641_TARGET): $(M641_O_FILES) $(M641_LIBS) @python3 tools/lcf.py rel 641 --output $(M641_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M641_LDFLAGS) -o $(M641_TARGET) @build/M641_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swLight/%.o: rel/d/a/obj/d_a_obj_swLight/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swLight/%.o: rel/d/a/obj/d_a_obj_swLight/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swLight/%.d @echo [641] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M641_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M641_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M641_D_FILES := $(M641_O_FILES:.o=.d) +$(M641_D_FILES): +include $(wildcard $(M641_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swallshutter/Makefile b/rel/d/a/obj/d_a_obj_swallshutter/Makefile index d86b0a36f13..3159cd7e15d 100644 --- a/rel/d/a/obj/d_a_obj_swallshutter/Makefile +++ b/rel/d/a/obj/d_a_obj_swallshutter/Makefile @@ -40,10 +40,17 @@ $(M111_TARGET): $(M111_O_FILES) $(M111_LIBS) @python3 tools/lcf.py rel 111 --output $(M111_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M111_LDFLAGS) -o $(M111_TARGET) @build/M111_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swallshutter/%.o: rel/d/a/obj/d_a_obj_swallshutter/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swallshutter/%.o: rel/d/a/obj/d_a_obj_swallshutter/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swallshutter/%.d @echo [111] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M111_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M111_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M111_D_FILES := $(M111_O_FILES:.o=.d) +$(M111_D_FILES): +include $(wildcard $(M111_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swchain/Makefile b/rel/d/a/obj/d_a_obj_swchain/Makefile index 85b7292c23a..6fbf466ed4e 100644 --- a/rel/d/a/obj/d_a_obj_swchain/Makefile +++ b/rel/d/a/obj/d_a_obj_swchain/Makefile @@ -38,10 +38,17 @@ $(M642_TARGET): $(M642_O_FILES) $(M642_LIBS) @python3 tools/lcf.py rel 642 --output $(M642_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M642_LDFLAGS) -o $(M642_TARGET) @build/M642_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swchain/%.o: rel/d/a/obj/d_a_obj_swchain/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swchain/%.o: rel/d/a/obj/d_a_obj_swchain/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swchain/%.d @echo [642] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M642_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M642_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M642_D_FILES := $(M642_O_FILES:.o=.d) +$(M642_D_FILES): +include $(wildcard $(M642_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swhang/Makefile b/rel/d/a/obj/d_a_obj_swhang/Makefile index 3099da6d036..af4caf3e728 100644 --- a/rel/d/a/obj/d_a_obj_swhang/Makefile +++ b/rel/d/a/obj/d_a_obj_swhang/Makefile @@ -40,10 +40,17 @@ $(M643_TARGET): $(M643_O_FILES) $(M643_LIBS) @python3 tools/lcf.py rel 643 --output $(M643_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M643_LDFLAGS) -o $(M643_TARGET) @build/M643_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swhang/%.o: rel/d/a/obj/d_a_obj_swhang/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swhang/%.o: rel/d/a/obj/d_a_obj_swhang/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swhang/%.d @echo [643] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M643_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M643_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M643_D_FILES := $(M643_O_FILES:.o=.d) +$(M643_D_FILES): +include $(wildcard $(M643_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_sword/Makefile b/rel/d/a/obj/d_a_obj_sword/Makefile index a57b6af86c1..36c235291ab 100644 --- a/rel/d/a/obj/d_a_obj_sword/Makefile +++ b/rel/d/a/obj/d_a_obj_sword/Makefile @@ -40,10 +40,17 @@ $(M644_TARGET): $(M644_O_FILES) $(M644_LIBS) @python3 tools/lcf.py rel 644 --output $(M644_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M644_LDFLAGS) -o $(M644_TARGET) @build/M644_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sword/%.o: rel/d/a/obj/d_a_obj_sword/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sword/%.o: rel/d/a/obj/d_a_obj_sword/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sword/%.d @echo [644] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M644_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M644_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M644_D_FILES := $(M644_O_FILES:.o=.d) +$(M644_D_FILES): +include $(wildcard $(M644_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swpropeller/Makefile b/rel/d/a/obj/d_a_obj_swpropeller/Makefile index 5cd8867071d..b150261ebf7 100644 --- a/rel/d/a/obj/d_a_obj_swpropeller/Makefile +++ b/rel/d/a/obj/d_a_obj_swpropeller/Makefile @@ -38,10 +38,17 @@ $(M114_TARGET): $(M114_O_FILES) $(M114_LIBS) @python3 tools/lcf.py rel 114 --output $(M114_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M114_LDFLAGS) -o $(M114_TARGET) @build/M114_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpropeller/%.o: rel/d/a/obj/d_a_obj_swpropeller/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpropeller/%.o: rel/d/a/obj/d_a_obj_swpropeller/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpropeller/%.d @echo [114] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M114_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M114_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M114_D_FILES := $(M114_O_FILES:.o=.d) +$(M114_D_FILES): +include $(wildcard $(M114_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swpush/Makefile b/rel/d/a/obj/d_a_obj_swpush/Makefile index 2118dd72010..68e5a429610 100644 --- a/rel/d/a/obj/d_a_obj_swpush/Makefile +++ b/rel/d/a/obj/d_a_obj_swpush/Makefile @@ -40,10 +40,17 @@ $(M21_TARGET): $(M21_O_FILES) $(M21_LIBS) @python3 tools/lcf.py rel 21 --output $(M21_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M21_LDFLAGS) -o $(M21_TARGET) @build/M21_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush/%.o: rel/d/a/obj/d_a_obj_swpush/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush/%.o: rel/d/a/obj/d_a_obj_swpush/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush/%.d @echo [ 21] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M21_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M21_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M21_D_FILES := $(M21_O_FILES:.o=.d) +$(M21_D_FILES): +include $(wildcard $(M21_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swpush2/Makefile b/rel/d/a/obj/d_a_obj_swpush2/Makefile index 27104046b4e..090b753ba74 100644 --- a/rel/d/a/obj/d_a_obj_swpush2/Makefile +++ b/rel/d/a/obj/d_a_obj_swpush2/Makefile @@ -40,10 +40,17 @@ $(M645_TARGET): $(M645_O_FILES) $(M645_LIBS) @python3 tools/lcf.py rel 645 --output $(M645_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M645_LDFLAGS) -o $(M645_TARGET) @build/M645_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush2/%.o: rel/d/a/obj/d_a_obj_swpush2/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush2/%.o: rel/d/a/obj/d_a_obj_swpush2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush2/%.d @echo [645] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M645_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M645_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M645_D_FILES := $(M645_O_FILES:.o=.d) +$(M645_D_FILES): +include $(wildcard $(M645_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swpush5/Makefile b/rel/d/a/obj/d_a_obj_swpush5/Makefile index aa32679bbf8..8db5d0f533f 100644 --- a/rel/d/a/obj/d_a_obj_swpush5/Makefile +++ b/rel/d/a/obj/d_a_obj_swpush5/Makefile @@ -40,10 +40,17 @@ $(M115_TARGET): $(M115_O_FILES) $(M115_LIBS) @python3 tools/lcf.py rel 115 --output $(M115_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M115_LDFLAGS) -o $(M115_TARGET) @build/M115_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush5/%.o: rel/d/a/obj/d_a_obj_swpush5/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush5/%.o: rel/d/a/obj/d_a_obj_swpush5/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush5/%.d @echo [115] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M115_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M115_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M115_D_FILES := $(M115_O_FILES:.o=.d) +$(M115_D_FILES): +include $(wildcard $(M115_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swspinner/Makefile b/rel/d/a/obj/d_a_obj_swspinner/Makefile index 5aa39df856e..f0cdc3e8a9f 100644 --- a/rel/d/a/obj/d_a_obj_swspinner/Makefile +++ b/rel/d/a/obj/d_a_obj_swspinner/Makefile @@ -38,10 +38,17 @@ $(M646_TARGET): $(M646_O_FILES) $(M646_LIBS) @python3 tools/lcf.py rel 646 --output $(M646_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M646_LDFLAGS) -o $(M646_TARGET) @build/M646_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swspinner/%.o: rel/d/a/obj/d_a_obj_swspinner/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swspinner/%.o: rel/d/a/obj/d_a_obj_swspinner/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swspinner/%.d @echo [646] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M646_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M646_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M646_D_FILES := $(M646_O_FILES:.o=.d) +$(M646_D_FILES): +include $(wildcard $(M646_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_swturn/Makefile b/rel/d/a/obj/d_a_obj_swturn/Makefile index 189c2becf41..32e4230e066 100644 --- a/rel/d/a/obj/d_a_obj_swturn/Makefile +++ b/rel/d/a/obj/d_a_obj_swturn/Makefile @@ -40,10 +40,17 @@ $(M647_TARGET): $(M647_O_FILES) $(M647_LIBS) @python3 tools/lcf.py rel 647 --output $(M647_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M647_LDFLAGS) -o $(M647_TARGET) @build/M647_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swturn/%.o: rel/d/a/obj/d_a_obj_swturn/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swturn/%.o: rel/d/a/obj/d_a_obj_swturn/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swturn/%.d @echo [647] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M647_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M647_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M647_D_FILES := $(M647_O_FILES:.o=.d) +$(M647_D_FILES): +include $(wildcard $(M647_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_syRock/Makefile b/rel/d/a/obj/d_a_obj_syRock/Makefile index ec7b340150f..8450bdd8fec 100644 --- a/rel/d/a/obj/d_a_obj_syRock/Makefile +++ b/rel/d/a/obj/d_a_obj_syRock/Makefile @@ -40,10 +40,17 @@ $(M648_TARGET): $(M648_O_FILES) $(M648_LIBS) @python3 tools/lcf.py rel 648 --output $(M648_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M648_LDFLAGS) -o $(M648_TARGET) @build/M648_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_syRock/%.o: rel/d/a/obj/d_a_obj_syRock/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_syRock/%.o: rel/d/a/obj/d_a_obj_syRock/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_syRock/%.d @echo [648] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M648_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M648_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M648_D_FILES := $(M648_O_FILES:.o=.d) +$(M648_D_FILES): +include $(wildcard $(M648_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_szbridge/Makefile b/rel/d/a/obj/d_a_obj_szbridge/Makefile index b503133208b..da24d946c97 100644 --- a/rel/d/a/obj/d_a_obj_szbridge/Makefile +++ b/rel/d/a/obj/d_a_obj_szbridge/Makefile @@ -38,10 +38,17 @@ $(M649_TARGET): $(M649_O_FILES) $(M649_LIBS) @python3 tools/lcf.py rel 649 --output $(M649_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M649_LDFLAGS) -o $(M649_TARGET) @build/M649_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_szbridge/%.o: rel/d/a/obj/d_a_obj_szbridge/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_szbridge/%.o: rel/d/a/obj/d_a_obj_szbridge/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_szbridge/%.d @echo [649] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M649_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M649_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M649_D_FILES := $(M649_O_FILES:.o=.d) +$(M649_D_FILES): +include $(wildcard $(M649_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_taFence/Makefile b/rel/d/a/obj/d_a_obj_taFence/Makefile index a1667086d93..f50aff43513 100644 --- a/rel/d/a/obj/d_a_obj_taFence/Makefile +++ b/rel/d/a/obj/d_a_obj_taFence/Makefile @@ -40,10 +40,17 @@ $(M650_TARGET): $(M650_O_FILES) $(M650_LIBS) @python3 tools/lcf.py rel 650 --output $(M650_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M650_LDFLAGS) -o $(M650_TARGET) @build/M650_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_taFence/%.o: rel/d/a/obj/d_a_obj_taFence/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_taFence/%.o: rel/d/a/obj/d_a_obj_taFence/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_taFence/%.d @echo [650] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M650_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M650_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M650_D_FILES := $(M650_O_FILES:.o=.d) +$(M650_D_FILES): +include $(wildcard $(M650_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_table/Makefile b/rel/d/a/obj/d_a_obj_table/Makefile index 9988e46b02c..e17ecef9df3 100644 --- a/rel/d/a/obj/d_a_obj_table/Makefile +++ b/rel/d/a/obj/d_a_obj_table/Makefile @@ -38,10 +38,17 @@ $(M651_TARGET): $(M651_O_FILES) $(M651_LIBS) @python3 tools/lcf.py rel 651 --output $(M651_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M651_LDFLAGS) -o $(M651_TARGET) @build/M651_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_table/%.o: rel/d/a/obj/d_a_obj_table/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_table/%.o: rel/d/a/obj/d_a_obj_table/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_table/%.d @echo [651] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M651_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M651_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M651_D_FILES := $(M651_O_FILES:.o=.d) +$(M651_D_FILES): +include $(wildcard $(M651_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_takaraDai/Makefile b/rel/d/a/obj/d_a_obj_takaraDai/Makefile index 05563f9fd36..a63f8e0a980 100644 --- a/rel/d/a/obj/d_a_obj_takaraDai/Makefile +++ b/rel/d/a/obj/d_a_obj_takaraDai/Makefile @@ -40,10 +40,17 @@ $(M652_TARGET): $(M652_O_FILES) $(M652_LIBS) @python3 tools/lcf.py rel 652 --output $(M652_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M652_LDFLAGS) -o $(M652_TARGET) @build/M652_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_takaraDai/%.o: rel/d/a/obj/d_a_obj_takaraDai/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_takaraDai/%.o: rel/d/a/obj/d_a_obj_takaraDai/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_takaraDai/%.d @echo [652] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M652_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M652_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M652_D_FILES := $(M652_O_FILES:.o=.d) +$(M652_D_FILES): +include $(wildcard $(M652_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_tatigi/Makefile b/rel/d/a/obj/d_a_obj_tatigi/Makefile index 9f83be97fa8..1c40a55fcd9 100644 --- a/rel/d/a/obj/d_a_obj_tatigi/Makefile +++ b/rel/d/a/obj/d_a_obj_tatigi/Makefile @@ -38,10 +38,17 @@ $(M653_TARGET): $(M653_O_FILES) $(M653_LIBS) @python3 tools/lcf.py rel 653 --output $(M653_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M653_LDFLAGS) -o $(M653_TARGET) @build/M653_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tatigi/%.o: rel/d/a/obj/d_a_obj_tatigi/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tatigi/%.o: rel/d/a/obj/d_a_obj_tatigi/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tatigi/%.d @echo [653] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M653_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M653_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M653_D_FILES := $(M653_O_FILES:.o=.d) +$(M653_D_FILES): +include $(wildcard $(M653_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ten/Makefile b/rel/d/a/obj/d_a_obj_ten/Makefile index 12e6cfb4427..5eebc4c7ee2 100644 --- a/rel/d/a/obj/d_a_obj_ten/Makefile +++ b/rel/d/a/obj/d_a_obj_ten/Makefile @@ -40,10 +40,17 @@ $(M654_TARGET): $(M654_O_FILES) $(M654_LIBS) @python3 tools/lcf.py rel 654 --output $(M654_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M654_LDFLAGS) -o $(M654_TARGET) @build/M654_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ten/%.o: rel/d/a/obj/d_a_obj_ten/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ten/%.o: rel/d/a/obj/d_a_obj_ten/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ten/%.d @echo [654] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M654_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M654_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M654_D_FILES := $(M654_O_FILES:.o=.d) +$(M654_D_FILES): +include $(wildcard $(M654_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_testcube/Makefile b/rel/d/a/obj/d_a_obj_testcube/Makefile index c5331869c7c..76b3bfbba15 100644 --- a/rel/d/a/obj/d_a_obj_testcube/Makefile +++ b/rel/d/a/obj/d_a_obj_testcube/Makefile @@ -38,10 +38,17 @@ $(M655_TARGET): $(M655_O_FILES) $(M655_LIBS) @python3 tools/lcf.py rel 655 --output $(M655_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M655_LDFLAGS) -o $(M655_TARGET) @build/M655_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_testcube/%.o: rel/d/a/obj/d_a_obj_testcube/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_testcube/%.o: rel/d/a/obj/d_a_obj_testcube/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_testcube/%.d @echo [655] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M655_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M655_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M655_D_FILES := $(M655_O_FILES:.o=.d) +$(M655_D_FILES): +include $(wildcard $(M655_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_tgake/Makefile b/rel/d/a/obj/d_a_obj_tgake/Makefile index 90c5dd8e7f6..da5c3f677ef 100644 --- a/rel/d/a/obj/d_a_obj_tgake/Makefile +++ b/rel/d/a/obj/d_a_obj_tgake/Makefile @@ -38,10 +38,17 @@ $(M656_TARGET): $(M656_O_FILES) $(M656_LIBS) @python3 tools/lcf.py rel 656 --output $(M656_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M656_LDFLAGS) -o $(M656_TARGET) @build/M656_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tgake/%.o: rel/d/a/obj/d_a_obj_tgake/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tgake/%.o: rel/d/a/obj/d_a_obj_tgake/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tgake/%.d @echo [656] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M656_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M656_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M656_D_FILES := $(M656_O_FILES:.o=.d) +$(M656_D_FILES): +include $(wildcard $(M656_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_thashi/Makefile b/rel/d/a/obj/d_a_obj_thashi/Makefile index 74f852d8d75..70fe7de66f0 100644 --- a/rel/d/a/obj/d_a_obj_thashi/Makefile +++ b/rel/d/a/obj/d_a_obj_thashi/Makefile @@ -38,10 +38,17 @@ $(M657_TARGET): $(M657_O_FILES) $(M657_LIBS) @python3 tools/lcf.py rel 657 --output $(M657_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M657_LDFLAGS) -o $(M657_TARGET) @build/M657_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_thashi/%.o: rel/d/a/obj/d_a_obj_thashi/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_thashi/%.o: rel/d/a/obj/d_a_obj_thashi/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_thashi/%.d @echo [657] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M657_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M657_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M657_D_FILES := $(M657_O_FILES:.o=.d) +$(M657_D_FILES): +include $(wildcard $(M657_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_thdoor/Makefile b/rel/d/a/obj/d_a_obj_thdoor/Makefile index b567f00211c..92a9237dc7d 100644 --- a/rel/d/a/obj/d_a_obj_thdoor/Makefile +++ b/rel/d/a/obj/d_a_obj_thdoor/Makefile @@ -40,10 +40,17 @@ $(M658_TARGET): $(M658_O_FILES) $(M658_LIBS) @python3 tools/lcf.py rel 658 --output $(M658_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M658_LDFLAGS) -o $(M658_TARGET) @build/M658_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_thdoor/%.o: rel/d/a/obj/d_a_obj_thdoor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_thdoor/%.o: rel/d/a/obj/d_a_obj_thdoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_thdoor/%.d @echo [658] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M658_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M658_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M658_D_FILES := $(M658_O_FILES:.o=.d) +$(M658_D_FILES): +include $(wildcard $(M658_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_timeFire/Makefile b/rel/d/a/obj/d_a_obj_timeFire/Makefile index 5eba12ee2a2..0a45f51f224 100644 --- a/rel/d/a/obj/d_a_obj_timeFire/Makefile +++ b/rel/d/a/obj/d_a_obj_timeFire/Makefile @@ -40,10 +40,17 @@ $(M659_TARGET): $(M659_O_FILES) $(M659_LIBS) @python3 tools/lcf.py rel 659 --output $(M659_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M659_LDFLAGS) -o $(M659_TARGET) @build/M659_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_timeFire/%.o: rel/d/a/obj/d_a_obj_timeFire/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_timeFire/%.o: rel/d/a/obj/d_a_obj_timeFire/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_timeFire/%.d @echo [659] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M659_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M659_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M659_D_FILES := $(M659_O_FILES:.o=.d) +$(M659_D_FILES): +include $(wildcard $(M659_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_timer/Makefile b/rel/d/a/obj/d_a_obj_timer/Makefile index 13b7fb622f8..9e8859d3922 100644 --- a/rel/d/a/obj/d_a_obj_timer/Makefile +++ b/rel/d/a/obj/d_a_obj_timer/Makefile @@ -40,10 +40,17 @@ $(M22_TARGET): $(M22_O_FILES) $(M22_LIBS) @python3 tools/lcf.py rel 22 --output $(M22_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M22_LDFLAGS) -o $(M22_TARGET) @build/M22_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_timer/%.o: rel/d/a/obj/d_a_obj_timer/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_timer/%.o: rel/d/a/obj/d_a_obj_timer/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_timer/%.d @echo [ 22] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M22_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M22_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M22_D_FILES := $(M22_O_FILES:.o=.d) +$(M22_D_FILES): +include $(wildcard $(M22_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_tks/Makefile b/rel/d/a/obj/d_a_obj_tks/Makefile index 00b392857ba..c7f4394612a 100644 --- a/rel/d/a/obj/d_a_obj_tks/Makefile +++ b/rel/d/a/obj/d_a_obj_tks/Makefile @@ -40,10 +40,17 @@ $(M660_TARGET): $(M660_O_FILES) $(M660_LIBS) @python3 tools/lcf.py rel 660 --output $(M660_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M660_LDFLAGS) -o $(M660_TARGET) @build/M660_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tks/%.o: rel/d/a/obj/d_a_obj_tks/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tks/%.o: rel/d/a/obj/d_a_obj_tks/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tks/%.d @echo [660] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M660_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M660_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M660_D_FILES := $(M660_O_FILES:.o=.d) +$(M660_D_FILES): +include $(wildcard $(M660_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_tmoon/Makefile b/rel/d/a/obj/d_a_obj_tmoon/Makefile index d6d2224b4b6..e7851b66f66 100644 --- a/rel/d/a/obj/d_a_obj_tmoon/Makefile +++ b/rel/d/a/obj/d_a_obj_tmoon/Makefile @@ -38,10 +38,17 @@ $(M661_TARGET): $(M661_O_FILES) $(M661_LIBS) @python3 tools/lcf.py rel 661 --output $(M661_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M661_LDFLAGS) -o $(M661_TARGET) @build/M661_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tmoon/%.o: rel/d/a/obj/d_a_obj_tmoon/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tmoon/%.o: rel/d/a/obj/d_a_obj_tmoon/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tmoon/%.d @echo [661] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M661_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M661_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M661_D_FILES := $(M661_O_FILES:.o=.d) +$(M661_D_FILES): +include $(wildcard $(M661_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_toaru_maki/Makefile b/rel/d/a/obj/d_a_obj_toaru_maki/Makefile index eeb8372d33b..49f88c97ce0 100644 --- a/rel/d/a/obj/d_a_obj_toaru_maki/Makefile +++ b/rel/d/a/obj/d_a_obj_toaru_maki/Makefile @@ -38,10 +38,17 @@ $(M662_TARGET): $(M662_O_FILES) $(M662_LIBS) @python3 tools/lcf.py rel 662 --output $(M662_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M662_LDFLAGS) -o $(M662_TARGET) @build/M662_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_toaru_maki/%.o: rel/d/a/obj/d_a_obj_toaru_maki/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_toaru_maki/%.o: rel/d/a/obj/d_a_obj_toaru_maki/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_toaru_maki/%.d @echo [662] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M662_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M662_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M662_D_FILES := $(M662_O_FILES:.o=.d) +$(M662_D_FILES): +include $(wildcard $(M662_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_toby/Makefile b/rel/d/a/obj/d_a_obj_toby/Makefile index e829df05f7a..b0247758439 100644 --- a/rel/d/a/obj/d_a_obj_toby/Makefile +++ b/rel/d/a/obj/d_a_obj_toby/Makefile @@ -40,10 +40,17 @@ $(M663_TARGET): $(M663_O_FILES) $(M663_LIBS) @python3 tools/lcf.py rel 663 --output $(M663_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M663_LDFLAGS) -o $(M663_TARGET) @build/M663_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_toby/%.o: rel/d/a/obj/d_a_obj_toby/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_toby/%.o: rel/d/a/obj/d_a_obj_toby/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_toby/%.d @echo [663] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M663_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M663_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M663_D_FILES := $(M663_O_FILES:.o=.d) +$(M663_D_FILES): +include $(wildcard $(M663_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_tobyhouse/Makefile b/rel/d/a/obj/d_a_obj_tobyhouse/Makefile index 3c011bece2f..d144c59ef3e 100644 --- a/rel/d/a/obj/d_a_obj_tobyhouse/Makefile +++ b/rel/d/a/obj/d_a_obj_tobyhouse/Makefile @@ -40,10 +40,17 @@ $(M664_TARGET): $(M664_O_FILES) $(M664_LIBS) @python3 tools/lcf.py rel 664 --output $(M664_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M664_LDFLAGS) -o $(M664_TARGET) @build/M664_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tobyhouse/%.o: rel/d/a/obj/d_a_obj_tobyhouse/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tobyhouse/%.o: rel/d/a/obj/d_a_obj_tobyhouse/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tobyhouse/%.d @echo [664] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M664_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M664_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M664_D_FILES := $(M664_O_FILES:.o=.d) +$(M664_D_FILES): +include $(wildcard $(M664_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_togeTrap/Makefile b/rel/d/a/obj/d_a_obj_togeTrap/Makefile index 06708988db3..bdba018b390 100644 --- a/rel/d/a/obj/d_a_obj_togeTrap/Makefile +++ b/rel/d/a/obj/d_a_obj_togeTrap/Makefile @@ -40,10 +40,17 @@ $(M665_TARGET): $(M665_O_FILES) $(M665_LIBS) @python3 tools/lcf.py rel 665 --output $(M665_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M665_LDFLAGS) -o $(M665_TARGET) @build/M665_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_togeTrap/%.o: rel/d/a/obj/d_a_obj_togeTrap/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_togeTrap/%.o: rel/d/a/obj/d_a_obj_togeTrap/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_togeTrap/%.d @echo [665] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M665_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M665_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M665_D_FILES := $(M665_O_FILES:.o=.d) +$(M665_D_FILES): +include $(wildcard $(M665_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_tombo/Makefile b/rel/d/a/obj/d_a_obj_tombo/Makefile index 1e451754257..be7df8b0cca 100644 --- a/rel/d/a/obj/d_a_obj_tombo/Makefile +++ b/rel/d/a/obj/d_a_obj_tombo/Makefile @@ -40,10 +40,17 @@ $(M666_TARGET): $(M666_O_FILES) $(M666_LIBS) @python3 tools/lcf.py rel 666 --output $(M666_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M666_LDFLAGS) -o $(M666_TARGET) @build/M666_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tombo/%.o: rel/d/a/obj/d_a_obj_tombo/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tombo/%.o: rel/d/a/obj/d_a_obj_tombo/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tombo/%.d @echo [666] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M666_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M666_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M666_D_FILES := $(M666_O_FILES:.o=.d) +$(M666_D_FILES): +include $(wildcard $(M666_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_tornado/Makefile b/rel/d/a/obj/d_a_obj_tornado/Makefile index 0c878f4769b..98399c48f32 100644 --- a/rel/d/a/obj/d_a_obj_tornado/Makefile +++ b/rel/d/a/obj/d_a_obj_tornado/Makefile @@ -38,10 +38,17 @@ $(M667_TARGET): $(M667_O_FILES) $(M667_LIBS) @python3 tools/lcf.py rel 667 --output $(M667_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M667_LDFLAGS) -o $(M667_TARGET) @build/M667_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tornado/%.o: rel/d/a/obj/d_a_obj_tornado/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tornado/%.o: rel/d/a/obj/d_a_obj_tornado/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tornado/%.d @echo [667] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M667_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M667_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M667_D_FILES := $(M667_O_FILES:.o=.d) +$(M667_D_FILES): +include $(wildcard $(M667_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_tornado2/Makefile b/rel/d/a/obj/d_a_obj_tornado2/Makefile index 05be3bd7961..3cec150964d 100644 --- a/rel/d/a/obj/d_a_obj_tornado2/Makefile +++ b/rel/d/a/obj/d_a_obj_tornado2/Makefile @@ -38,10 +38,17 @@ $(M668_TARGET): $(M668_O_FILES) $(M668_LIBS) @python3 tools/lcf.py rel 668 --output $(M668_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M668_LDFLAGS) -o $(M668_TARGET) @build/M668_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tornado2/%.o: rel/d/a/obj/d_a_obj_tornado2/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tornado2/%.o: rel/d/a/obj/d_a_obj_tornado2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tornado2/%.d @echo [668] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M668_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M668_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M668_D_FILES := $(M668_O_FILES:.o=.d) +$(M668_D_FILES): +include $(wildcard $(M668_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_tp/Makefile b/rel/d/a/obj/d_a_obj_tp/Makefile index 383627b0a48..afc21d91577 100644 --- a/rel/d/a/obj/d_a_obj_tp/Makefile +++ b/rel/d/a/obj/d_a_obj_tp/Makefile @@ -38,10 +38,17 @@ $(M669_TARGET): $(M669_O_FILES) $(M669_LIBS) @python3 tools/lcf.py rel 669 --output $(M669_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M669_LDFLAGS) -o $(M669_TARGET) @build/M669_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tp/%.o: rel/d/a/obj/d_a_obj_tp/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tp/%.o: rel/d/a/obj/d_a_obj_tp/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tp/%.d @echo [669] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M669_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M669_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M669_D_FILES := $(M669_O_FILES:.o=.d) +$(M669_D_FILES): +include $(wildcard $(M669_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_treesh/Makefile b/rel/d/a/obj/d_a_obj_treesh/Makefile index 8295228125a..b30a4c1e062 100644 --- a/rel/d/a/obj/d_a_obj_treesh/Makefile +++ b/rel/d/a/obj/d_a_obj_treesh/Makefile @@ -40,10 +40,17 @@ $(M670_TARGET): $(M670_O_FILES) $(M670_LIBS) @python3 tools/lcf.py rel 670 --output $(M670_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M670_LDFLAGS) -o $(M670_TARGET) @build/M670_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_treesh/%.o: rel/d/a/obj/d_a_obj_treesh/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_treesh/%.o: rel/d/a/obj/d_a_obj_treesh/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_treesh/%.d @echo [670] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M670_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M670_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M670_D_FILES := $(M670_O_FILES:.o=.d) +$(M670_D_FILES): +include $(wildcard $(M670_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_twGate/Makefile b/rel/d/a/obj/d_a_obj_twGate/Makefile index 57276a1b454..87c80cf204a 100644 --- a/rel/d/a/obj/d_a_obj_twGate/Makefile +++ b/rel/d/a/obj/d_a_obj_twGate/Makefile @@ -40,10 +40,17 @@ $(M671_TARGET): $(M671_O_FILES) $(M671_LIBS) @python3 tools/lcf.py rel 671 --output $(M671_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M671_LDFLAGS) -o $(M671_TARGET) @build/M671_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_twGate/%.o: rel/d/a/obj/d_a_obj_twGate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_twGate/%.o: rel/d/a/obj/d_a_obj_twGate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_twGate/%.d @echo [671] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M671_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M671_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M671_D_FILES := $(M671_O_FILES:.o=.d) +$(M671_D_FILES): +include $(wildcard $(M671_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_udoor/Makefile b/rel/d/a/obj/d_a_obj_udoor/Makefile index 1432d7e3a0e..9a755fc7f7d 100644 --- a/rel/d/a/obj/d_a_obj_udoor/Makefile +++ b/rel/d/a/obj/d_a_obj_udoor/Makefile @@ -38,10 +38,17 @@ $(M672_TARGET): $(M672_O_FILES) $(M672_LIBS) @python3 tools/lcf.py rel 672 --output $(M672_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M672_LDFLAGS) -o $(M672_TARGET) @build/M672_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_udoor/%.o: rel/d/a/obj/d_a_obj_udoor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_udoor/%.o: rel/d/a/obj/d_a_obj_udoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_udoor/%.d @echo [672] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M672_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M672_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M672_D_FILES := $(M672_O_FILES:.o=.d) +$(M672_D_FILES): +include $(wildcard $(M672_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_usaku/Makefile b/rel/d/a/obj/d_a_obj_usaku/Makefile index 7aeaea4447b..c9ca8390604 100644 --- a/rel/d/a/obj/d_a_obj_usaku/Makefile +++ b/rel/d/a/obj/d_a_obj_usaku/Makefile @@ -38,10 +38,17 @@ $(M673_TARGET): $(M673_O_FILES) $(M673_LIBS) @python3 tools/lcf.py rel 673 --output $(M673_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M673_LDFLAGS) -o $(M673_TARGET) @build/M673_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_usaku/%.o: rel/d/a/obj/d_a_obj_usaku/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_usaku/%.o: rel/d/a/obj/d_a_obj_usaku/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_usaku/%.d @echo [673] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M673_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M673_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M673_D_FILES := $(M673_O_FILES:.o=.d) +$(M673_D_FILES): +include $(wildcard $(M673_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_vground/Makefile b/rel/d/a/obj/d_a_obj_vground/Makefile index e4f17f5b552..d748f669015 100644 --- a/rel/d/a/obj/d_a_obj_vground/Makefile +++ b/rel/d/a/obj/d_a_obj_vground/Makefile @@ -38,10 +38,17 @@ $(M674_TARGET): $(M674_O_FILES) $(M674_LIBS) @python3 tools/lcf.py rel 674 --output $(M674_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M674_LDFLAGS) -o $(M674_TARGET) @build/M674_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_vground/%.o: rel/d/a/obj/d_a_obj_vground/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_vground/%.o: rel/d/a/obj/d_a_obj_vground/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_vground/%.d @echo [674] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M674_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M674_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M674_D_FILES := $(M674_O_FILES:.o=.d) +$(M674_D_FILES): +include $(wildcard $(M674_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_volcball/Makefile b/rel/d/a/obj/d_a_obj_volcball/Makefile index 7d2be686f47..3bde1eb3b7c 100644 --- a/rel/d/a/obj/d_a_obj_volcball/Makefile +++ b/rel/d/a/obj/d_a_obj_volcball/Makefile @@ -40,10 +40,17 @@ $(M675_TARGET): $(M675_O_FILES) $(M675_LIBS) @python3 tools/lcf.py rel 675 --output $(M675_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M675_LDFLAGS) -o $(M675_TARGET) @build/M675_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_volcball/%.o: rel/d/a/obj/d_a_obj_volcball/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_volcball/%.o: rel/d/a/obj/d_a_obj_volcball/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_volcball/%.d @echo [675] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M675_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M675_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M675_D_FILES := $(M675_O_FILES:.o=.d) +$(M675_D_FILES): +include $(wildcard $(M675_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_volcbom/Makefile b/rel/d/a/obj/d_a_obj_volcbom/Makefile index 2a83d7d0af1..61b47c19238 100644 --- a/rel/d/a/obj/d_a_obj_volcbom/Makefile +++ b/rel/d/a/obj/d_a_obj_volcbom/Makefile @@ -40,10 +40,17 @@ $(M676_TARGET): $(M676_O_FILES) $(M676_LIBS) @python3 tools/lcf.py rel 676 --output $(M676_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M676_LDFLAGS) -o $(M676_TARGET) @build/M676_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_volcbom/%.o: rel/d/a/obj/d_a_obj_volcbom/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_volcbom/%.o: rel/d/a/obj/d_a_obj_volcbom/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_volcbom/%.d @echo [676] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M676_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M676_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M676_D_FILES := $(M676_O_FILES:.o=.d) +$(M676_D_FILES): +include $(wildcard $(M676_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_warp_kbrg/Makefile b/rel/d/a/obj/d_a_obj_warp_kbrg/Makefile index 6e185851221..01769aef54e 100644 --- a/rel/d/a/obj/d_a_obj_warp_kbrg/Makefile +++ b/rel/d/a/obj/d_a_obj_warp_kbrg/Makefile @@ -40,10 +40,17 @@ $(M677_TARGET): $(M677_O_FILES) $(M677_LIBS) @python3 tools/lcf.py rel 677 --output $(M677_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M677_LDFLAGS) -o $(M677_TARGET) @build/M677_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_warp_kbrg/%.o: rel/d/a/obj/d_a_obj_warp_kbrg/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_warp_kbrg/%.o: rel/d/a/obj/d_a_obj_warp_kbrg/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_warp_kbrg/%.d @echo [677] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M677_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M677_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M677_D_FILES := $(M677_O_FILES:.o=.d) +$(M677_D_FILES): +include $(wildcard $(M677_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_warp_obrg/Makefile b/rel/d/a/obj/d_a_obj_warp_obrg/Makefile index bab7b28667e..0332ebdbc4d 100644 --- a/rel/d/a/obj/d_a_obj_warp_obrg/Makefile +++ b/rel/d/a/obj/d_a_obj_warp_obrg/Makefile @@ -40,10 +40,17 @@ $(M678_TARGET): $(M678_O_FILES) $(M678_LIBS) @python3 tools/lcf.py rel 678 --output $(M678_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M678_LDFLAGS) -o $(M678_TARGET) @build/M678_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_warp_obrg/%.o: rel/d/a/obj/d_a_obj_warp_obrg/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_warp_obrg/%.o: rel/d/a/obj/d_a_obj_warp_obrg/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_warp_obrg/%.d @echo [678] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M678_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M678_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M678_D_FILES := $(M678_O_FILES:.o=.d) +$(M678_D_FILES): +include $(wildcard $(M678_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_waterGate/Makefile b/rel/d/a/obj/d_a_obj_waterGate/Makefile index 8d1e3b8c504..0bb7d435fcd 100644 --- a/rel/d/a/obj/d_a_obj_waterGate/Makefile +++ b/rel/d/a/obj/d_a_obj_waterGate/Makefile @@ -40,10 +40,17 @@ $(M679_TARGET): $(M679_O_FILES) $(M679_LIBS) @python3 tools/lcf.py rel 679 --output $(M679_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M679_LDFLAGS) -o $(M679_TARGET) @build/M679_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterGate/%.o: rel/d/a/obj/d_a_obj_waterGate/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterGate/%.o: rel/d/a/obj/d_a_obj_waterGate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterGate/%.d @echo [679] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M679_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M679_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M679_D_FILES := $(M679_O_FILES:.o=.d) +$(M679_D_FILES): +include $(wildcard $(M679_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_waterPillar/Makefile b/rel/d/a/obj/d_a_obj_waterPillar/Makefile index 4fddc1f4c9f..60d4ace7a93 100644 --- a/rel/d/a/obj/d_a_obj_waterPillar/Makefile +++ b/rel/d/a/obj/d_a_obj_waterPillar/Makefile @@ -40,10 +40,17 @@ $(M680_TARGET): $(M680_O_FILES) $(M680_LIBS) @python3 tools/lcf.py rel 680 --output $(M680_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M680_LDFLAGS) -o $(M680_TARGET) @build/M680_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterPillar/%.o: rel/d/a/obj/d_a_obj_waterPillar/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterPillar/%.o: rel/d/a/obj/d_a_obj_waterPillar/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterPillar/%.d @echo [680] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M680_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M680_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M680_D_FILES := $(M680_O_FILES:.o=.d) +$(M680_D_FILES): +include $(wildcard $(M680_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_waterfall/Makefile b/rel/d/a/obj/d_a_obj_waterfall/Makefile index 1cd52c61e50..3148f9ac447 100644 --- a/rel/d/a/obj/d_a_obj_waterfall/Makefile +++ b/rel/d/a/obj/d_a_obj_waterfall/Makefile @@ -38,10 +38,17 @@ $(M681_TARGET): $(M681_O_FILES) $(M681_LIBS) @python3 tools/lcf.py rel 681 --output $(M681_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M681_LDFLAGS) -o $(M681_TARGET) @build/M681_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterfall/%.o: rel/d/a/obj/d_a_obj_waterfall/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterfall/%.o: rel/d/a/obj/d_a_obj_waterfall/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterfall/%.d @echo [681] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M681_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M681_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M681_D_FILES := $(M681_O_FILES:.o=.d) +$(M681_D_FILES): +include $(wildcard $(M681_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_wchain/Makefile b/rel/d/a/obj/d_a_obj_wchain/Makefile index e9e1caea96a..9b5ba0faf92 100644 --- a/rel/d/a/obj/d_a_obj_wchain/Makefile +++ b/rel/d/a/obj/d_a_obj_wchain/Makefile @@ -38,10 +38,17 @@ $(M682_TARGET): $(M682_O_FILES) $(M682_LIBS) @python3 tools/lcf.py rel 682 --output $(M682_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M682_LDFLAGS) -o $(M682_TARGET) @build/M682_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wchain/%.o: rel/d/a/obj/d_a_obj_wchain/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wchain/%.o: rel/d/a/obj/d_a_obj_wchain/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_wchain/%.d @echo [682] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M682_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M682_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M682_D_FILES := $(M682_O_FILES:.o=.d) +$(M682_D_FILES): +include $(wildcard $(M682_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_wdStick/Makefile b/rel/d/a/obj/d_a_obj_wdStick/Makefile index 9abe509f220..c4d2a607b3c 100644 --- a/rel/d/a/obj/d_a_obj_wdStick/Makefile +++ b/rel/d/a/obj/d_a_obj_wdStick/Makefile @@ -40,10 +40,17 @@ $(M683_TARGET): $(M683_O_FILES) $(M683_LIBS) @python3 tools/lcf.py rel 683 --output $(M683_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M683_LDFLAGS) -o $(M683_TARGET) @build/M683_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wdStick/%.o: rel/d/a/obj/d_a_obj_wdStick/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wdStick/%.o: rel/d/a/obj/d_a_obj_wdStick/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_wdStick/%.d @echo [683] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M683_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M683_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M683_D_FILES := $(M683_O_FILES:.o=.d) +$(M683_D_FILES): +include $(wildcard $(M683_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_web0/Makefile b/rel/d/a/obj/d_a_obj_web0/Makefile index f89b3bd079a..6b9ce9ff4a0 100644 --- a/rel/d/a/obj/d_a_obj_web0/Makefile +++ b/rel/d/a/obj/d_a_obj_web0/Makefile @@ -40,10 +40,17 @@ $(M684_TARGET): $(M684_O_FILES) $(M684_LIBS) @python3 tools/lcf.py rel 684 --output $(M684_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M684_LDFLAGS) -o $(M684_TARGET) @build/M684_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_web0/%.o: rel/d/a/obj/d_a_obj_web0/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_web0/%.o: rel/d/a/obj/d_a_obj_web0/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_web0/%.d @echo [684] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M684_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M684_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M684_D_FILES := $(M684_O_FILES:.o=.d) +$(M684_D_FILES): +include $(wildcard $(M684_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_web1/Makefile b/rel/d/a/obj/d_a_obj_web1/Makefile index 04bb5523a0c..d618630e22c 100644 --- a/rel/d/a/obj/d_a_obj_web1/Makefile +++ b/rel/d/a/obj/d_a_obj_web1/Makefile @@ -40,10 +40,17 @@ $(M685_TARGET): $(M685_O_FILES) $(M685_LIBS) @python3 tools/lcf.py rel 685 --output $(M685_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M685_LDFLAGS) -o $(M685_TARGET) @build/M685_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_web1/%.o: rel/d/a/obj/d_a_obj_web1/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_web1/%.o: rel/d/a/obj/d_a_obj_web1/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_web1/%.d @echo [685] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M685_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M685_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M685_D_FILES := $(M685_O_FILES:.o=.d) +$(M685_D_FILES): +include $(wildcard $(M685_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_well_cover/Makefile b/rel/d/a/obj/d_a_obj_well_cover/Makefile index 7ce7d96c1d9..378364ba46e 100644 --- a/rel/d/a/obj/d_a_obj_well_cover/Makefile +++ b/rel/d/a/obj/d_a_obj_well_cover/Makefile @@ -40,10 +40,17 @@ $(M686_TARGET): $(M686_O_FILES) $(M686_LIBS) @python3 tools/lcf.py rel 686 --output $(M686_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M686_LDFLAGS) -o $(M686_TARGET) @build/M686_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_well_cover/%.o: rel/d/a/obj/d_a_obj_well_cover/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_well_cover/%.o: rel/d/a/obj/d_a_obj_well_cover/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_well_cover/%.d @echo [686] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M686_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M686_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M686_D_FILES := $(M686_O_FILES:.o=.d) +$(M686_D_FILES): +include $(wildcard $(M686_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_wflag/Makefile b/rel/d/a/obj/d_a_obj_wflag/Makefile index 760cc0b36eb..8780db46632 100644 --- a/rel/d/a/obj/d_a_obj_wflag/Makefile +++ b/rel/d/a/obj/d_a_obj_wflag/Makefile @@ -38,10 +38,17 @@ $(M687_TARGET): $(M687_O_FILES) $(M687_LIBS) @python3 tools/lcf.py rel 687 --output $(M687_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M687_LDFLAGS) -o $(M687_TARGET) @build/M687_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wflag/%.o: rel/d/a/obj/d_a_obj_wflag/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wflag/%.o: rel/d/a/obj/d_a_obj_wflag/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_wflag/%.d @echo [687] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M687_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M687_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M687_D_FILES := $(M687_O_FILES:.o=.d) +$(M687_D_FILES): +include $(wildcard $(M687_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_wind_stone/Makefile b/rel/d/a/obj/d_a_obj_wind_stone/Makefile index eb8da8d4d56..091d250383d 100644 --- a/rel/d/a/obj/d_a_obj_wind_stone/Makefile +++ b/rel/d/a/obj/d_a_obj_wind_stone/Makefile @@ -38,10 +38,17 @@ $(M688_TARGET): $(M688_O_FILES) $(M688_LIBS) @python3 tools/lcf.py rel 688 --output $(M688_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M688_LDFLAGS) -o $(M688_TARGET) @build/M688_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wind_stone/%.o: rel/d/a/obj/d_a_obj_wind_stone/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wind_stone/%.o: rel/d/a/obj/d_a_obj_wind_stone/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_wind_stone/%.d @echo [688] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M688_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M688_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M688_D_FILES := $(M688_O_FILES:.o=.d) +$(M688_D_FILES): +include $(wildcard $(M688_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_window/Makefile b/rel/d/a/obj/d_a_obj_window/Makefile index 2cc2e22f46a..353cf5427e6 100644 --- a/rel/d/a/obj/d_a_obj_window/Makefile +++ b/rel/d/a/obj/d_a_obj_window/Makefile @@ -38,10 +38,17 @@ $(M689_TARGET): $(M689_O_FILES) $(M689_LIBS) @python3 tools/lcf.py rel 689 --output $(M689_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M689_LDFLAGS) -o $(M689_TARGET) @build/M689_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_window/%.o: rel/d/a/obj/d_a_obj_window/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_window/%.o: rel/d/a/obj/d_a_obj_window/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_window/%.d @echo [689] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M689_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M689_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M689_D_FILES := $(M689_O_FILES:.o=.d) +$(M689_D_FILES): +include $(wildcard $(M689_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_wood_pendulum/Makefile b/rel/d/a/obj/d_a_obj_wood_pendulum/Makefile index cf70be82682..342979aee36 100644 --- a/rel/d/a/obj/d_a_obj_wood_pendulum/Makefile +++ b/rel/d/a/obj/d_a_obj_wood_pendulum/Makefile @@ -38,10 +38,17 @@ $(M690_TARGET): $(M690_O_FILES) $(M690_LIBS) @python3 tools/lcf.py rel 690 --output $(M690_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M690_LDFLAGS) -o $(M690_TARGET) @build/M690_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wood_pendulum/%.o: rel/d/a/obj/d_a_obj_wood_pendulum/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wood_pendulum/%.o: rel/d/a/obj/d_a_obj_wood_pendulum/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_wood_pendulum/%.d @echo [690] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M690_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M690_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M690_D_FILES := $(M690_O_FILES:.o=.d) +$(M690_D_FILES): +include $(wildcard $(M690_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_wood_statue/Makefile b/rel/d/a/obj/d_a_obj_wood_statue/Makefile index e5e51706237..0e7b7fdb32f 100644 --- a/rel/d/a/obj/d_a_obj_wood_statue/Makefile +++ b/rel/d/a/obj/d_a_obj_wood_statue/Makefile @@ -40,10 +40,17 @@ $(M691_TARGET): $(M691_O_FILES) $(M691_LIBS) @python3 tools/lcf.py rel 691 --output $(M691_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M691_LDFLAGS) -o $(M691_TARGET) @build/M691_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wood_statue/%.o: rel/d/a/obj/d_a_obj_wood_statue/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wood_statue/%.o: rel/d/a/obj/d_a_obj_wood_statue/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_wood_statue/%.d @echo [691] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M691_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M691_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M691_D_FILES := $(M691_O_FILES:.o=.d) +$(M691_D_FILES): +include $(wildcard $(M691_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_wsword/Makefile b/rel/d/a/obj/d_a_obj_wsword/Makefile index ebe9304ab0c..5f1cf82e5ee 100644 --- a/rel/d/a/obj/d_a_obj_wsword/Makefile +++ b/rel/d/a/obj/d_a_obj_wsword/Makefile @@ -38,10 +38,17 @@ $(M692_TARGET): $(M692_O_FILES) $(M692_LIBS) @python3 tools/lcf.py rel 692 --output $(M692_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M692_LDFLAGS) -o $(M692_TARGET) @build/M692_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wsword/%.o: rel/d/a/obj/d_a_obj_wsword/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_wsword/%.o: rel/d/a/obj/d_a_obj_wsword/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_wsword/%.d @echo [692] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M692_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M692_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M692_D_FILES := $(M692_O_FILES:.o=.d) +$(M692_D_FILES): +include $(wildcard $(M692_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_yel_bag/Makefile b/rel/d/a/obj/d_a_obj_yel_bag/Makefile index f208b480668..ae77327ec24 100644 --- a/rel/d/a/obj/d_a_obj_yel_bag/Makefile +++ b/rel/d/a/obj/d_a_obj_yel_bag/Makefile @@ -40,10 +40,17 @@ $(M693_TARGET): $(M693_O_FILES) $(M693_LIBS) @python3 tools/lcf.py rel 693 --output $(M693_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M693_LDFLAGS) -o $(M693_TARGET) @build/M693_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_yel_bag/%.o: rel/d/a/obj/d_a_obj_yel_bag/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_yel_bag/%.o: rel/d/a/obj/d_a_obj_yel_bag/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_yel_bag/%.d @echo [693] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M693_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M693_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M693_D_FILES := $(M693_O_FILES:.o=.d) +$(M693_D_FILES): +include $(wildcard $(M693_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_yobikusa/Makefile b/rel/d/a/obj/d_a_obj_yobikusa/Makefile index 8af6f1fb6b3..be948efac72 100644 --- a/rel/d/a/obj/d_a_obj_yobikusa/Makefile +++ b/rel/d/a/obj/d_a_obj_yobikusa/Makefile @@ -38,10 +38,17 @@ $(M116_TARGET): $(M116_O_FILES) $(M116_LIBS) @python3 tools/lcf.py rel 116 --output $(M116_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M116_LDFLAGS) -o $(M116_TARGET) @build/M116_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_yobikusa/%.o: rel/d/a/obj/d_a_obj_yobikusa/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_yobikusa/%.o: rel/d/a/obj/d_a_obj_yobikusa/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_yobikusa/%.d @echo [116] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M116_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M116_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M116_D_FILES := $(M116_O_FILES:.o=.d) +$(M116_D_FILES): +include $(wildcard $(M116_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_yousei/Makefile b/rel/d/a/obj/d_a_obj_yousei/Makefile index 0e3753c8971..b166353573e 100644 --- a/rel/d/a/obj/d_a_obj_yousei/Makefile +++ b/rel/d/a/obj/d_a_obj_yousei/Makefile @@ -38,10 +38,17 @@ $(M54_TARGET): $(M54_O_FILES) $(M54_LIBS) @python3 tools/lcf.py rel 54 --output $(M54_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M54_LDFLAGS) -o $(M54_TARGET) @build/M54_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_yousei/%.o: rel/d/a/obj/d_a_obj_yousei/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_yousei/%.o: rel/d/a/obj/d_a_obj_yousei/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_yousei/%.d @echo [ 54] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M54_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M54_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M54_D_FILES := $(M54_O_FILES:.o=.d) +$(M54_D_FILES): +include $(wildcard $(M54_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_ystone/Makefile b/rel/d/a/obj/d_a_obj_ystone/Makefile index 83a393c702b..10f5a57936e 100644 --- a/rel/d/a/obj/d_a_obj_ystone/Makefile +++ b/rel/d/a/obj/d_a_obj_ystone/Makefile @@ -38,10 +38,17 @@ $(M694_TARGET): $(M694_O_FILES) $(M694_LIBS) @python3 tools/lcf.py rel 694 --output $(M694_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M694_LDFLAGS) -o $(M694_TARGET) @build/M694_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ystone/%.o: rel/d/a/obj/d_a_obj_ystone/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ystone/%.o: rel/d/a/obj/d_a_obj_ystone/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ystone/%.d @echo [694] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M694_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M694_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M694_D_FILES := $(M694_O_FILES:.o=.d) +$(M694_D_FILES): +include $(wildcard $(M694_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_zcloth/Makefile b/rel/d/a/obj/d_a_obj_zcloth/Makefile index 0c040ff2b96..f52506815a1 100644 --- a/rel/d/a/obj/d_a_obj_zcloth/Makefile +++ b/rel/d/a/obj/d_a_obj_zcloth/Makefile @@ -38,10 +38,17 @@ $(M695_TARGET): $(M695_O_FILES) $(M695_LIBS) @python3 tools/lcf.py rel 695 --output $(M695_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M695_LDFLAGS) -o $(M695_TARGET) @build/M695_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zcloth/%.o: rel/d/a/obj/d_a_obj_zcloth/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zcloth/%.o: rel/d/a/obj/d_a_obj_zcloth/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zcloth/%.d @echo [695] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M695_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M695_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M695_D_FILES := $(M695_O_FILES:.o=.d) +$(M695_D_FILES): +include $(wildcard $(M695_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_zdoor/Makefile b/rel/d/a/obj/d_a_obj_zdoor/Makefile index 91b90b73e84..e1030b628b3 100644 --- a/rel/d/a/obj/d_a_obj_zdoor/Makefile +++ b/rel/d/a/obj/d_a_obj_zdoor/Makefile @@ -38,10 +38,17 @@ $(M696_TARGET): $(M696_O_FILES) $(M696_LIBS) @python3 tools/lcf.py rel 696 --output $(M696_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M696_LDFLAGS) -o $(M696_TARGET) @build/M696_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zdoor/%.o: rel/d/a/obj/d_a_obj_zdoor/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zdoor/%.o: rel/d/a/obj/d_a_obj_zdoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zdoor/%.d @echo [696] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M696_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M696_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M696_D_FILES := $(M696_O_FILES:.o=.d) +$(M696_D_FILES): +include $(wildcard $(M696_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_zrTurara/Makefile b/rel/d/a/obj/d_a_obj_zrTurara/Makefile index bbf6a507673..3fe315c4f81 100644 --- a/rel/d/a/obj/d_a_obj_zrTurara/Makefile +++ b/rel/d/a/obj/d_a_obj_zrTurara/Makefile @@ -40,10 +40,17 @@ $(M697_TARGET): $(M697_O_FILES) $(M697_LIBS) @python3 tools/lcf.py rel 697 --output $(M697_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M697_LDFLAGS) -o $(M697_TARGET) @build/M697_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zrTurara/%.o: rel/d/a/obj/d_a_obj_zrTurara/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zrTurara/%.o: rel/d/a/obj/d_a_obj_zrTurara/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zrTurara/%.d @echo [697] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M697_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M697_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M697_D_FILES := $(M697_O_FILES:.o=.d) +$(M697_D_FILES): +include $(wildcard $(M697_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_zrTuraraRock/Makefile b/rel/d/a/obj/d_a_obj_zrTuraraRock/Makefile index 7f6f2db8fa9..1dd14ce9adc 100644 --- a/rel/d/a/obj/d_a_obj_zrTuraraRock/Makefile +++ b/rel/d/a/obj/d_a_obj_zrTuraraRock/Makefile @@ -40,10 +40,17 @@ $(M698_TARGET): $(M698_O_FILES) $(M698_LIBS) @python3 tools/lcf.py rel 698 --output $(M698_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M698_LDFLAGS) -o $(M698_TARGET) @build/M698_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zrTuraraRock/%.o: rel/d/a/obj/d_a_obj_zrTuraraRock/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zrTuraraRock/%.o: rel/d/a/obj/d_a_obj_zrTuraraRock/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zrTuraraRock/%.d @echo [698] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M698_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M698_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M698_D_FILES := $(M698_O_FILES:.o=.d) +$(M698_D_FILES): +include $(wildcard $(M698_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_zraMark/Makefile b/rel/d/a/obj/d_a_obj_zraMark/Makefile index 85dfcbbcb82..d91d6360bce 100644 --- a/rel/d/a/obj/d_a_obj_zraMark/Makefile +++ b/rel/d/a/obj/d_a_obj_zraMark/Makefile @@ -38,10 +38,17 @@ $(M699_TARGET): $(M699_O_FILES) $(M699_LIBS) @python3 tools/lcf.py rel 699 --output $(M699_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M699_LDFLAGS) -o $(M699_TARGET) @build/M699_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zraMark/%.o: rel/d/a/obj/d_a_obj_zraMark/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zraMark/%.o: rel/d/a/obj/d_a_obj_zraMark/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zraMark/%.d @echo [699] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M699_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M699_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M699_D_FILES := $(M699_O_FILES:.o=.d) +$(M699_D_FILES): +include $(wildcard $(M699_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_zra_freeze/Makefile b/rel/d/a/obj/d_a_obj_zra_freeze/Makefile index 84fbf63ddcf..3a3d73d5df8 100644 --- a/rel/d/a/obj/d_a_obj_zra_freeze/Makefile +++ b/rel/d/a/obj/d_a_obj_zra_freeze/Makefile @@ -38,10 +38,17 @@ $(M700_TARGET): $(M700_O_FILES) $(M700_LIBS) @python3 tools/lcf.py rel 700 --output $(M700_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M700_LDFLAGS) -o $(M700_TARGET) @build/M700_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zra_freeze/%.o: rel/d/a/obj/d_a_obj_zra_freeze/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zra_freeze/%.o: rel/d/a/obj/d_a_obj_zra_freeze/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zra_freeze/%.d @echo [700] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M700_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M700_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M700_D_FILES := $(M700_O_FILES:.o=.d) +$(M700_D_FILES): +include $(wildcard $(M700_D_FILES)) +endif diff --git a/rel/d/a/obj/d_a_obj_zra_rock/Makefile b/rel/d/a/obj/d_a_obj_zra_rock/Makefile index 4fbb56cb214..ce37412b3ce 100644 --- a/rel/d/a/obj/d_a_obj_zra_rock/Makefile +++ b/rel/d/a/obj/d_a_obj_zra_rock/Makefile @@ -38,10 +38,17 @@ $(M701_TARGET): $(M701_O_FILES) $(M701_LIBS) @python3 tools/lcf.py rel 701 --output $(M701_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M701_LDFLAGS) -o $(M701_TARGET) @build/M701_ofiles -$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zra_rock/%.o: rel/d/a/obj/d_a_obj_zra_rock/%.cpp +$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zra_rock/%.o: rel/d/a/obj/d_a_obj_zra_rock/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zra_rock/%.d @echo [701] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M701_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M701_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M701_D_FILES := $(M701_O_FILES:.o=.d) +$(M701_D_FILES): +include $(wildcard $(M701_D_FILES)) +endif diff --git a/rel/d/a/obj/mirror/d_a_obj_mirror_6pole/Makefile b/rel/d/a/obj/mirror/d_a_obj_mirror_6pole/Makefile index 7099495b4e0..733afa3bce1 100644 --- a/rel/d/a/obj/mirror/d_a_obj_mirror_6pole/Makefile +++ b/rel/d/a/obj/mirror/d_a_obj_mirror_6pole/Makefile @@ -38,10 +38,17 @@ $(M572_TARGET): $(M572_O_FILES) $(M572_LIBS) @python3 tools/lcf.py rel 572 --output $(M572_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M572_LDFLAGS) -o $(M572_TARGET) @build/M572_ofiles -$(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_6pole/%.o: rel/d/a/obj/mirror/d_a_obj_mirror_6pole/%.cpp +$(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_6pole/%.o: rel/d/a/obj/mirror/d_a_obj_mirror_6pole/%.cpp $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_6pole/%.d @echo [572] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M572_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M572_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M572_D_FILES := $(M572_O_FILES:.o=.d) +$(M572_D_FILES): +include $(wildcard $(M572_D_FILES)) +endif diff --git a/rel/d/a/obj/mirror/d_a_obj_mirror_chain/Makefile b/rel/d/a/obj/mirror/d_a_obj_mirror_chain/Makefile index be91d7376f6..0d551ceaee4 100644 --- a/rel/d/a/obj/mirror/d_a_obj_mirror_chain/Makefile +++ b/rel/d/a/obj/mirror/d_a_obj_mirror_chain/Makefile @@ -38,10 +38,17 @@ $(M573_TARGET): $(M573_O_FILES) $(M573_LIBS) @python3 tools/lcf.py rel 573 --output $(M573_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M573_LDFLAGS) -o $(M573_TARGET) @build/M573_ofiles -$(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_chain/%.o: rel/d/a/obj/mirror/d_a_obj_mirror_chain/%.cpp +$(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_chain/%.o: rel/d/a/obj/mirror/d_a_obj_mirror_chain/%.cpp $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_chain/%.d @echo [573] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M573_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M573_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M573_D_FILES := $(M573_O_FILES:.o=.d) +$(M573_D_FILES): +include $(wildcard $(M573_D_FILES)) +endif diff --git a/rel/d/a/obj/mirror/d_a_obj_mirror_sand/Makefile b/rel/d/a/obj/mirror/d_a_obj_mirror_sand/Makefile index adcfc52bd94..54e3d98b5d0 100644 --- a/rel/d/a/obj/mirror/d_a_obj_mirror_sand/Makefile +++ b/rel/d/a/obj/mirror/d_a_obj_mirror_sand/Makefile @@ -38,10 +38,17 @@ $(M574_TARGET): $(M574_O_FILES) $(M574_LIBS) @python3 tools/lcf.py rel 574 --output $(M574_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M574_LDFLAGS) -o $(M574_TARGET) @build/M574_ofiles -$(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_sand/%.o: rel/d/a/obj/mirror/d_a_obj_mirror_sand/%.cpp +$(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_sand/%.o: rel/d/a/obj/mirror/d_a_obj_mirror_sand/%.cpp $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_sand/%.d @echo [574] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M574_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M574_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M574_D_FILES := $(M574_O_FILES:.o=.d) +$(M574_D_FILES): +include $(wildcard $(M574_D_FILES)) +endif diff --git a/rel/d/a/obj/mirror/d_a_obj_mirror_screw/Makefile b/rel/d/a/obj/mirror/d_a_obj_mirror_screw/Makefile index 6e7472bfa9d..aef5974c099 100644 --- a/rel/d/a/obj/mirror/d_a_obj_mirror_screw/Makefile +++ b/rel/d/a/obj/mirror/d_a_obj_mirror_screw/Makefile @@ -38,10 +38,17 @@ $(M575_TARGET): $(M575_O_FILES) $(M575_LIBS) @python3 tools/lcf.py rel 575 --output $(M575_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M575_LDFLAGS) -o $(M575_TARGET) @build/M575_ofiles -$(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_screw/%.o: rel/d/a/obj/mirror/d_a_obj_mirror_screw/%.cpp +$(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_screw/%.o: rel/d/a/obj/mirror/d_a_obj_mirror_screw/%.cpp $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_screw/%.d @echo [575] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M575_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M575_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M575_D_FILES := $(M575_O_FILES:.o=.d) +$(M575_D_FILES): +include $(wildcard $(M575_D_FILES)) +endif diff --git a/rel/d/a/obj/mirror/d_a_obj_mirror_table/Makefile b/rel/d/a/obj/mirror/d_a_obj_mirror_table/Makefile index 84a889fd1b4..dbc0c85bbdc 100644 --- a/rel/d/a/obj/mirror/d_a_obj_mirror_table/Makefile +++ b/rel/d/a/obj/mirror/d_a_obj_mirror_table/Makefile @@ -38,10 +38,17 @@ $(M576_TARGET): $(M576_O_FILES) $(M576_LIBS) @python3 tools/lcf.py rel 576 --output $(M576_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M576_LDFLAGS) -o $(M576_TARGET) @build/M576_ofiles -$(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_table/%.o: rel/d/a/obj/mirror/d_a_obj_mirror_table/%.cpp +$(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_table/%.o: rel/d/a/obj/mirror/d_a_obj_mirror_table/%.cpp $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_table/%.d @echo [576] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M576_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M576_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M576_D_FILES := $(M576_O_FILES:.o=.d) +$(M576_D_FILES): +include $(wildcard $(M576_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_Lv6Gate/Makefile b/rel/d/a/tag/d_a_tag_Lv6Gate/Makefile index 82c080ac896..7ed339737cd 100644 --- a/rel/d/a/tag/d_a_tag_Lv6Gate/Makefile +++ b/rel/d/a/tag/d_a_tag_Lv6Gate/Makefile @@ -38,10 +38,17 @@ $(M710_TARGET): $(M710_O_FILES) $(M710_LIBS) @python3 tools/lcf.py rel 710 --output $(M710_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M710_LDFLAGS) -o $(M710_TARGET) @build/M710_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_Lv6Gate/%.o: rel/d/a/tag/d_a_tag_Lv6Gate/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_Lv6Gate/%.o: rel/d/a/tag/d_a_tag_Lv6Gate/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_Lv6Gate/%.d @echo [710] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M710_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M710_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M710_D_FILES := $(M710_O_FILES:.o=.d) +$(M710_D_FILES): +include $(wildcard $(M710_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_Lv7Gate/Makefile b/rel/d/a/tag/d_a_tag_Lv7Gate/Makefile index 6eef1c2bf59..8d5d0623378 100644 --- a/rel/d/a/tag/d_a_tag_Lv7Gate/Makefile +++ b/rel/d/a/tag/d_a_tag_Lv7Gate/Makefile @@ -38,10 +38,17 @@ $(M711_TARGET): $(M711_O_FILES) $(M711_LIBS) @python3 tools/lcf.py rel 711 --output $(M711_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M711_LDFLAGS) -o $(M711_TARGET) @build/M711_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_Lv7Gate/%.o: rel/d/a/tag/d_a_tag_Lv7Gate/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_Lv7Gate/%.o: rel/d/a/tag/d_a_tag_Lv7Gate/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_Lv7Gate/%.d @echo [711] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M711_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M711_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M711_D_FILES := $(M711_O_FILES:.o=.d) +$(M711_D_FILES): +include $(wildcard $(M711_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_Lv8Gate/Makefile b/rel/d/a/tag/d_a_tag_Lv8Gate/Makefile index f708c8da2f7..2e5e57f4a39 100644 --- a/rel/d/a/tag/d_a_tag_Lv8Gate/Makefile +++ b/rel/d/a/tag/d_a_tag_Lv8Gate/Makefile @@ -38,10 +38,17 @@ $(M712_TARGET): $(M712_O_FILES) $(M712_LIBS) @python3 tools/lcf.py rel 712 --output $(M712_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M712_LDFLAGS) -o $(M712_TARGET) @build/M712_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_Lv8Gate/%.o: rel/d/a/tag/d_a_tag_Lv8Gate/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_Lv8Gate/%.o: rel/d/a/tag/d_a_tag_Lv8Gate/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_Lv8Gate/%.d @echo [712] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M712_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M712_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M712_D_FILES := $(M712_O_FILES:.o=.d) +$(M712_D_FILES): +include $(wildcard $(M712_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_TWgate/Makefile b/rel/d/a/tag/d_a_tag_TWgate/Makefile index 9452c95f3dc..52fb7c85bfa 100644 --- a/rel/d/a/tag/d_a_tag_TWgate/Makefile +++ b/rel/d/a/tag/d_a_tag_TWgate/Makefile @@ -38,10 +38,17 @@ $(M713_TARGET): $(M713_O_FILES) $(M713_LIBS) @python3 tools/lcf.py rel 713 --output $(M713_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M713_LDFLAGS) -o $(M713_TARGET) @build/M713_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_TWgate/%.o: rel/d/a/tag/d_a_tag_TWgate/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_TWgate/%.o: rel/d/a/tag/d_a_tag_TWgate/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_TWgate/%.d @echo [713] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M713_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M713_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M713_D_FILES := $(M713_O_FILES:.o=.d) +$(M713_D_FILES): +include $(wildcard $(M713_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_ajnot/Makefile b/rel/d/a/tag/d_a_tag_ajnot/Makefile index 4895ca8e764..29377decff5 100644 --- a/rel/d/a/tag/d_a_tag_ajnot/Makefile +++ b/rel/d/a/tag/d_a_tag_ajnot/Makefile @@ -38,10 +38,17 @@ $(M122_TARGET): $(M122_O_FILES) $(M122_LIBS) @python3 tools/lcf.py rel 122 --output $(M122_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M122_LDFLAGS) -o $(M122_TARGET) @build/M122_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_ajnot/%.o: rel/d/a/tag/d_a_tag_ajnot/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_ajnot/%.o: rel/d/a/tag/d_a_tag_ajnot/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_ajnot/%.d @echo [122] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M122_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M122_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M122_D_FILES := $(M122_O_FILES:.o=.d) +$(M122_D_FILES): +include $(wildcard $(M122_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_allmato/Makefile b/rel/d/a/tag/d_a_tag_allmato/Makefile index ce28d56bc38..28c79ed7600 100644 --- a/rel/d/a/tag/d_a_tag_allmato/Makefile +++ b/rel/d/a/tag/d_a_tag_allmato/Makefile @@ -38,10 +38,17 @@ $(M27_TARGET): $(M27_O_FILES) $(M27_LIBS) @python3 tools/lcf.py rel 27 --output $(M27_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M27_LDFLAGS) -o $(M27_TARGET) @build/M27_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_allmato/%.o: rel/d/a/tag/d_a_tag_allmato/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_allmato/%.o: rel/d/a/tag/d_a_tag_allmato/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_allmato/%.d @echo [ 27] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M27_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M27_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M27_D_FILES := $(M27_O_FILES:.o=.d) +$(M27_D_FILES): +include $(wildcard $(M27_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_arena/Makefile b/rel/d/a/tag/d_a_tag_arena/Makefile index 454e6fb0bdb..d0036c788d3 100644 --- a/rel/d/a/tag/d_a_tag_arena/Makefile +++ b/rel/d/a/tag/d_a_tag_arena/Makefile @@ -38,10 +38,17 @@ $(M714_TARGET): $(M714_O_FILES) $(M714_LIBS) @python3 tools/lcf.py rel 714 --output $(M714_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M714_LDFLAGS) -o $(M714_TARGET) @build/M714_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_arena/%.o: rel/d/a/tag/d_a_tag_arena/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_arena/%.o: rel/d/a/tag/d_a_tag_arena/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_arena/%.d @echo [714] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M714_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M714_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M714_D_FILES := $(M714_O_FILES:.o=.d) +$(M714_D_FILES): +include $(wildcard $(M714_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_assistance/Makefile b/rel/d/a/tag/d_a_tag_assistance/Makefile index 31ca6b27221..5937ed197c5 100644 --- a/rel/d/a/tag/d_a_tag_assistance/Makefile +++ b/rel/d/a/tag/d_a_tag_assistance/Makefile @@ -38,10 +38,17 @@ $(M715_TARGET): $(M715_O_FILES) $(M715_LIBS) @python3 tools/lcf.py rel 715 --output $(M715_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M715_LDFLAGS) -o $(M715_TARGET) @build/M715_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_assistance/%.o: rel/d/a/tag/d_a_tag_assistance/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_assistance/%.o: rel/d/a/tag/d_a_tag_assistance/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_assistance/%.d @echo [715] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M715_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M715_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M715_D_FILES := $(M715_O_FILES:.o=.d) +$(M715_D_FILES): +include $(wildcard $(M715_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_attack_item/Makefile b/rel/d/a/tag/d_a_tag_attack_item/Makefile index 2b2cbe5603b..b5d4a94027b 100644 --- a/rel/d/a/tag/d_a_tag_attack_item/Makefile +++ b/rel/d/a/tag/d_a_tag_attack_item/Makefile @@ -38,10 +38,17 @@ $(M123_TARGET): $(M123_O_FILES) $(M123_LIBS) @python3 tools/lcf.py rel 123 --output $(M123_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M123_LDFLAGS) -o $(M123_TARGET) @build/M123_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_attack_item/%.o: rel/d/a/tag/d_a_tag_attack_item/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_attack_item/%.o: rel/d/a/tag/d_a_tag_attack_item/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_attack_item/%.d @echo [123] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M123_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M123_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M123_D_FILES := $(M123_O_FILES:.o=.d) +$(M123_D_FILES): +include $(wildcard $(M123_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_attention/Makefile b/rel/d/a/tag/d_a_tag_attention/Makefile index 8fc2dec83a1..edb385115a3 100644 --- a/rel/d/a/tag/d_a_tag_attention/Makefile +++ b/rel/d/a/tag/d_a_tag_attention/Makefile @@ -38,10 +38,17 @@ $(M57_TARGET): $(M57_O_FILES) $(M57_LIBS) @python3 tools/lcf.py rel 57 --output $(M57_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M57_LDFLAGS) -o $(M57_TARGET) @build/M57_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_attention/%.o: rel/d/a/tag/d_a_tag_attention/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_attention/%.o: rel/d/a/tag/d_a_tag_attention/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_attention/%.d @echo [ 57] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M57_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M57_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M57_D_FILES := $(M57_O_FILES:.o=.d) +$(M57_D_FILES): +include $(wildcard $(M57_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_bottle_item/Makefile b/rel/d/a/tag/d_a_tag_bottle_item/Makefile index 54df538e88d..36f2477fb23 100644 --- a/rel/d/a/tag/d_a_tag_bottle_item/Makefile +++ b/rel/d/a/tag/d_a_tag_bottle_item/Makefile @@ -38,10 +38,17 @@ $(M716_TARGET): $(M716_O_FILES) $(M716_LIBS) @python3 tools/lcf.py rel 716 --output $(M716_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M716_LDFLAGS) -o $(M716_TARGET) @build/M716_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_bottle_item/%.o: rel/d/a/tag/d_a_tag_bottle_item/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_bottle_item/%.o: rel/d/a/tag/d_a_tag_bottle_item/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_bottle_item/%.d @echo [716] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M716_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M716_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M716_D_FILES := $(M716_O_FILES:.o=.d) +$(M716_D_FILES): +include $(wildcard $(M716_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_camera/Makefile b/rel/d/a/tag/d_a_tag_camera/Makefile index 621caf660e6..488d2941bcb 100644 --- a/rel/d/a/tag/d_a_tag_camera/Makefile +++ b/rel/d/a/tag/d_a_tag_camera/Makefile @@ -38,10 +38,17 @@ $(M28_TARGET): $(M28_O_FILES) $(M28_LIBS) @python3 tools/lcf.py rel 28 --output $(M28_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M28_LDFLAGS) -o $(M28_TARGET) @build/M28_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_camera/%.o: rel/d/a/tag/d_a_tag_camera/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_camera/%.o: rel/d/a/tag/d_a_tag_camera/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_camera/%.d @echo [ 28] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M28_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M28_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M28_D_FILES := $(M28_O_FILES:.o=.d) +$(M28_D_FILES): +include $(wildcard $(M28_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_chgrestart/Makefile b/rel/d/a/tag/d_a_tag_chgrestart/Makefile index 0cdf46635f5..21ea1db6069 100644 --- a/rel/d/a/tag/d_a_tag_chgrestart/Makefile +++ b/rel/d/a/tag/d_a_tag_chgrestart/Makefile @@ -38,10 +38,17 @@ $(M717_TARGET): $(M717_O_FILES) $(M717_LIBS) @python3 tools/lcf.py rel 717 --output $(M717_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M717_LDFLAGS) -o $(M717_TARGET) @build/M717_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_chgrestart/%.o: rel/d/a/tag/d_a_tag_chgrestart/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_chgrestart/%.o: rel/d/a/tag/d_a_tag_chgrestart/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_chgrestart/%.d @echo [717] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M717_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M717_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M717_D_FILES := $(M717_O_FILES:.o=.d) +$(M717_D_FILES): +include $(wildcard $(M717_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_chkpoint/Makefile b/rel/d/a/tag/d_a_tag_chkpoint/Makefile index 408efd4370d..3c84d679207 100644 --- a/rel/d/a/tag/d_a_tag_chkpoint/Makefile +++ b/rel/d/a/tag/d_a_tag_chkpoint/Makefile @@ -38,10 +38,17 @@ $(M29_TARGET): $(M29_O_FILES) $(M29_LIBS) @python3 tools/lcf.py rel 29 --output $(M29_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M29_LDFLAGS) -o $(M29_TARGET) @build/M29_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_chkpoint/%.o: rel/d/a/tag/d_a_tag_chkpoint/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_chkpoint/%.o: rel/d/a/tag/d_a_tag_chkpoint/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_chkpoint/%.d @echo [ 29] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M29_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M29_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M29_D_FILES := $(M29_O_FILES:.o=.d) +$(M29_D_FILES): +include $(wildcard $(M29_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_cstasw/Makefile b/rel/d/a/tag/d_a_tag_cstasw/Makefile index 8099bd01173..d6a17eda60b 100644 --- a/rel/d/a/tag/d_a_tag_cstasw/Makefile +++ b/rel/d/a/tag/d_a_tag_cstasw/Makefile @@ -40,10 +40,17 @@ $(M121_TARGET): $(M121_O_FILES) $(M121_LIBS) @python3 tools/lcf.py rel 121 --output $(M121_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M121_LDFLAGS) -o $(M121_TARGET) @build/M121_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_cstasw/%.o: rel/d/a/tag/d_a_tag_cstasw/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_cstasw/%.o: rel/d/a/tag/d_a_tag_cstasw/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_cstasw/%.d @echo [121] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M121_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M121_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M121_D_FILES := $(M121_O_FILES:.o=.d) +$(M121_D_FILES): +include $(wildcard $(M121_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_csw/Makefile b/rel/d/a/tag/d_a_tag_csw/Makefile index 931fd7664be..2eacc2bc883 100644 --- a/rel/d/a/tag/d_a_tag_csw/Makefile +++ b/rel/d/a/tag/d_a_tag_csw/Makefile @@ -38,10 +38,17 @@ $(M718_TARGET): $(M718_O_FILES) $(M718_LIBS) @python3 tools/lcf.py rel 718 --output $(M718_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M718_LDFLAGS) -o $(M718_TARGET) @build/M718_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_csw/%.o: rel/d/a/tag/d_a_tag_csw/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_csw/%.o: rel/d/a/tag/d_a_tag_csw/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_csw/%.d @echo [718] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M718_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M718_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M718_D_FILES := $(M718_O_FILES:.o=.d) +$(M718_D_FILES): +include $(wildcard $(M718_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_escape/Makefile b/rel/d/a/tag/d_a_tag_escape/Makefile index 43acb1f3a9e..30b617bbf4e 100644 --- a/rel/d/a/tag/d_a_tag_escape/Makefile +++ b/rel/d/a/tag/d_a_tag_escape/Makefile @@ -38,10 +38,17 @@ $(M719_TARGET): $(M719_O_FILES) $(M719_LIBS) @python3 tools/lcf.py rel 719 --output $(M719_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M719_LDFLAGS) -o $(M719_TARGET) @build/M719_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_escape/%.o: rel/d/a/tag/d_a_tag_escape/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_escape/%.o: rel/d/a/tag/d_a_tag_escape/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_escape/%.d @echo [719] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M719_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M719_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M719_D_FILES := $(M719_O_FILES:.o=.d) +$(M719_D_FILES): +include $(wildcard $(M719_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_event/Makefile b/rel/d/a/tag/d_a_tag_event/Makefile index 2a88a417fe8..89b8cce84f5 100644 --- a/rel/d/a/tag/d_a_tag_event/Makefile +++ b/rel/d/a/tag/d_a_tag_event/Makefile @@ -38,10 +38,17 @@ $(M30_TARGET): $(M30_O_FILES) $(M30_LIBS) @python3 tools/lcf.py rel 30 --output $(M30_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M30_LDFLAGS) -o $(M30_TARGET) @build/M30_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_event/%.o: rel/d/a/tag/d_a_tag_event/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_event/%.o: rel/d/a/tag/d_a_tag_event/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_event/%.d @echo [ 30] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M30_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M30_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M30_D_FILES := $(M30_O_FILES:.o=.d) +$(M30_D_FILES): +include $(wildcard $(M30_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_evt/Makefile b/rel/d/a/tag/d_a_tag_evt/Makefile index 0a8bb8d1adf..5f273948eb4 100644 --- a/rel/d/a/tag/d_a_tag_evt/Makefile +++ b/rel/d/a/tag/d_a_tag_evt/Makefile @@ -38,10 +38,17 @@ $(M31_TARGET): $(M31_O_FILES) $(M31_LIBS) @python3 tools/lcf.py rel 31 --output $(M31_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M31_LDFLAGS) -o $(M31_TARGET) @build/M31_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_evt/%.o: rel/d/a/tag/d_a_tag_evt/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_evt/%.o: rel/d/a/tag/d_a_tag_evt/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_evt/%.d @echo [ 31] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M31_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M31_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M31_D_FILES := $(M31_O_FILES:.o=.d) +$(M31_D_FILES): +include $(wildcard $(M31_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_evtarea/Makefile b/rel/d/a/tag/d_a_tag_evtarea/Makefile index 5d7d3bdcb16..c4ab0e97719 100644 --- a/rel/d/a/tag/d_a_tag_evtarea/Makefile +++ b/rel/d/a/tag/d_a_tag_evtarea/Makefile @@ -38,10 +38,17 @@ $(M32_TARGET): $(M32_O_FILES) $(M32_LIBS) @python3 tools/lcf.py rel 32 --output $(M32_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M32_LDFLAGS) -o $(M32_TARGET) @build/M32_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_evtarea/%.o: rel/d/a/tag/d_a_tag_evtarea/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_evtarea/%.o: rel/d/a/tag/d_a_tag_evtarea/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_evtarea/%.d @echo [ 32] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M32_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M32_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M32_D_FILES := $(M32_O_FILES:.o=.d) +$(M32_D_FILES): +include $(wildcard $(M32_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_evtmsg/Makefile b/rel/d/a/tag/d_a_tag_evtmsg/Makefile index f1cd575ae0c..66a586a0fc8 100644 --- a/rel/d/a/tag/d_a_tag_evtmsg/Makefile +++ b/rel/d/a/tag/d_a_tag_evtmsg/Makefile @@ -38,10 +38,17 @@ $(M33_TARGET): $(M33_O_FILES) $(M33_LIBS) @python3 tools/lcf.py rel 33 --output $(M33_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M33_LDFLAGS) -o $(M33_TARGET) @build/M33_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_evtmsg/%.o: rel/d/a/tag/d_a_tag_evtmsg/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_evtmsg/%.o: rel/d/a/tag/d_a_tag_evtmsg/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_evtmsg/%.d @echo [ 33] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M33_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M33_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M33_D_FILES := $(M33_O_FILES:.o=.d) +$(M33_D_FILES): +include $(wildcard $(M33_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_firewall/Makefile b/rel/d/a/tag/d_a_tag_firewall/Makefile index 7d5b210eba9..25dfa1c0d12 100644 --- a/rel/d/a/tag/d_a_tag_firewall/Makefile +++ b/rel/d/a/tag/d_a_tag_firewall/Makefile @@ -38,10 +38,17 @@ $(M720_TARGET): $(M720_O_FILES) $(M720_LIBS) @python3 tools/lcf.py rel 720 --output $(M720_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M720_LDFLAGS) -o $(M720_TARGET) @build/M720_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_firewall/%.o: rel/d/a/tag/d_a_tag_firewall/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_firewall/%.o: rel/d/a/tag/d_a_tag_firewall/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_firewall/%.d @echo [720] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M720_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M720_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M720_D_FILES := $(M720_O_FILES:.o=.d) +$(M720_D_FILES): +include $(wildcard $(M720_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_gra/Makefile b/rel/d/a/tag/d_a_tag_gra/Makefile index 877af27ea24..beb8c1ef6be 100644 --- a/rel/d/a/tag/d_a_tag_gra/Makefile +++ b/rel/d/a/tag/d_a_tag_gra/Makefile @@ -38,10 +38,17 @@ $(M721_TARGET): $(M721_O_FILES) $(M721_LIBS) @python3 tools/lcf.py rel 721 --output $(M721_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M721_LDFLAGS) -o $(M721_TARGET) @build/M721_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_gra/%.o: rel/d/a/tag/d_a_tag_gra/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_gra/%.o: rel/d/a/tag/d_a_tag_gra/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_gra/%.d @echo [721] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M721_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M721_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M721_D_FILES := $(M721_O_FILES:.o=.d) +$(M721_D_FILES): +include $(wildcard $(M721_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_gstart/Makefile b/rel/d/a/tag/d_a_tag_gstart/Makefile index bc3a55dcc28..1aeb47f78ab 100644 --- a/rel/d/a/tag/d_a_tag_gstart/Makefile +++ b/rel/d/a/tag/d_a_tag_gstart/Makefile @@ -38,10 +38,17 @@ $(M124_TARGET): $(M124_O_FILES) $(M124_LIBS) @python3 tools/lcf.py rel 124 --output $(M124_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M124_LDFLAGS) -o $(M124_TARGET) @build/M124_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_gstart/%.o: rel/d/a/tag/d_a_tag_gstart/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_gstart/%.o: rel/d/a/tag/d_a_tag_gstart/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_gstart/%.d @echo [124] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M124_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M124_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M124_D_FILES := $(M124_O_FILES:.o=.d) +$(M124_D_FILES): +include $(wildcard $(M124_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_guard/Makefile b/rel/d/a/tag/d_a_tag_guard/Makefile index 9796efa405c..39245e07487 100644 --- a/rel/d/a/tag/d_a_tag_guard/Makefile +++ b/rel/d/a/tag/d_a_tag_guard/Makefile @@ -38,10 +38,17 @@ $(M722_TARGET): $(M722_O_FILES) $(M722_LIBS) @python3 tools/lcf.py rel 722 --output $(M722_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M722_LDFLAGS) -o $(M722_TARGET) @build/M722_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_guard/%.o: rel/d/a/tag/d_a_tag_guard/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_guard/%.o: rel/d/a/tag/d_a_tag_guard/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_guard/%.d @echo [722] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M722_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M722_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M722_D_FILES := $(M722_O_FILES:.o=.d) +$(M722_D_FILES): +include $(wildcard $(M722_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_hinit/Makefile b/rel/d/a/tag/d_a_tag_hinit/Makefile index a9272d71e10..bc43465ef66 100644 --- a/rel/d/a/tag/d_a_tag_hinit/Makefile +++ b/rel/d/a/tag/d_a_tag_hinit/Makefile @@ -38,10 +38,17 @@ $(M125_TARGET): $(M125_O_FILES) $(M125_LIBS) @python3 tools/lcf.py rel 125 --output $(M125_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M125_LDFLAGS) -o $(M125_TARGET) @build/M125_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_hinit/%.o: rel/d/a/tag/d_a_tag_hinit/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_hinit/%.o: rel/d/a/tag/d_a_tag_hinit/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_hinit/%.d @echo [125] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M125_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M125_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M125_D_FILES := $(M125_O_FILES:.o=.d) +$(M125_D_FILES): +include $(wildcard $(M125_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_hjump/Makefile b/rel/d/a/tag/d_a_tag_hjump/Makefile index 09d4e9503a1..f3d5b516761 100644 --- a/rel/d/a/tag/d_a_tag_hjump/Makefile +++ b/rel/d/a/tag/d_a_tag_hjump/Makefile @@ -38,10 +38,17 @@ $(M126_TARGET): $(M126_O_FILES) $(M126_LIBS) @python3 tools/lcf.py rel 126 --output $(M126_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M126_LDFLAGS) -o $(M126_TARGET) @build/M126_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_hjump/%.o: rel/d/a/tag/d_a_tag_hjump/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_hjump/%.o: rel/d/a/tag/d_a_tag_hjump/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_hjump/%.d @echo [126] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M126_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M126_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M126_D_FILES := $(M126_O_FILES:.o=.d) +$(M126_D_FILES): +include $(wildcard $(M126_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_howl/Makefile b/rel/d/a/tag/d_a_tag_howl/Makefile index 456693b1667..46fcf0edcdc 100644 --- a/rel/d/a/tag/d_a_tag_howl/Makefile +++ b/rel/d/a/tag/d_a_tag_howl/Makefile @@ -38,10 +38,17 @@ $(M34_TARGET): $(M34_O_FILES) $(M34_LIBS) @python3 tools/lcf.py rel 34 --output $(M34_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M34_LDFLAGS) -o $(M34_TARGET) @build/M34_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_howl/%.o: rel/d/a/tag/d_a_tag_howl/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_howl/%.o: rel/d/a/tag/d_a_tag_howl/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_howl/%.d @echo [ 34] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M34_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M34_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M34_D_FILES := $(M34_O_FILES:.o=.d) +$(M34_D_FILES): +include $(wildcard $(M34_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_hstop/Makefile b/rel/d/a/tag/d_a_tag_hstop/Makefile index 5012179a528..3342925ade9 100644 --- a/rel/d/a/tag/d_a_tag_hstop/Makefile +++ b/rel/d/a/tag/d_a_tag_hstop/Makefile @@ -40,10 +40,17 @@ $(M127_TARGET): $(M127_O_FILES) $(M127_LIBS) @python3 tools/lcf.py rel 127 --output $(M127_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M127_LDFLAGS) -o $(M127_TARGET) @build/M127_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_hstop/%.o: rel/d/a/tag/d_a_tag_hstop/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_hstop/%.o: rel/d/a/tag/d_a_tag_hstop/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_hstop/%.d @echo [127] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M127_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M127_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M127_D_FILES := $(M127_O_FILES:.o=.d) +$(M127_D_FILES): +include $(wildcard $(M127_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_instruction/Makefile b/rel/d/a/tag/d_a_tag_instruction/Makefile index 4c9367a72a0..d0efb786395 100644 --- a/rel/d/a/tag/d_a_tag_instruction/Makefile +++ b/rel/d/a/tag/d_a_tag_instruction/Makefile @@ -38,10 +38,17 @@ $(M723_TARGET): $(M723_O_FILES) $(M723_LIBS) @python3 tools/lcf.py rel 723 --output $(M723_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M723_LDFLAGS) -o $(M723_TARGET) @build/M723_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_instruction/%.o: rel/d/a/tag/d_a_tag_instruction/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_instruction/%.o: rel/d/a/tag/d_a_tag_instruction/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_instruction/%.d @echo [723] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M723_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M723_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M723_D_FILES := $(M723_O_FILES:.o=.d) +$(M723_D_FILES): +include $(wildcard $(M723_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_kago_fall/Makefile b/rel/d/a/tag/d_a_tag_kago_fall/Makefile index f69407bbad5..ebce17154a8 100644 --- a/rel/d/a/tag/d_a_tag_kago_fall/Makefile +++ b/rel/d/a/tag/d_a_tag_kago_fall/Makefile @@ -38,10 +38,17 @@ $(M724_TARGET): $(M724_O_FILES) $(M724_LIBS) @python3 tools/lcf.py rel 724 --output $(M724_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M724_LDFLAGS) -o $(M724_TARGET) @build/M724_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_kago_fall/%.o: rel/d/a/tag/d_a_tag_kago_fall/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_kago_fall/%.o: rel/d/a/tag/d_a_tag_kago_fall/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_kago_fall/%.d @echo [724] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M724_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M724_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M724_D_FILES := $(M724_O_FILES:.o=.d) +$(M724_D_FILES): +include $(wildcard $(M724_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_kmsg/Makefile b/rel/d/a/tag/d_a_tag_kmsg/Makefile index ebdcf24480d..aa5df9df2a1 100644 --- a/rel/d/a/tag/d_a_tag_kmsg/Makefile +++ b/rel/d/a/tag/d_a_tag_kmsg/Makefile @@ -38,10 +38,17 @@ $(M35_TARGET): $(M35_O_FILES) $(M35_LIBS) @python3 tools/lcf.py rel 35 --output $(M35_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M35_LDFLAGS) -o $(M35_TARGET) @build/M35_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_kmsg/%.o: rel/d/a/tag/d_a_tag_kmsg/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_kmsg/%.o: rel/d/a/tag/d_a_tag_kmsg/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_kmsg/%.d @echo [ 35] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M35_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M35_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M35_D_FILES := $(M35_O_FILES:.o=.d) +$(M35_D_FILES): +include $(wildcard $(M35_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_lantern/Makefile b/rel/d/a/tag/d_a_tag_lantern/Makefile index 28ff87d0c3c..d175760b4a0 100644 --- a/rel/d/a/tag/d_a_tag_lantern/Makefile +++ b/rel/d/a/tag/d_a_tag_lantern/Makefile @@ -40,10 +40,17 @@ $(M36_TARGET): $(M36_O_FILES) $(M36_LIBS) @python3 tools/lcf.py rel 36 --output $(M36_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M36_LDFLAGS) -o $(M36_TARGET) @build/M36_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_lantern/%.o: rel/d/a/tag/d_a_tag_lantern/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_lantern/%.o: rel/d/a/tag/d_a_tag_lantern/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_lantern/%.d @echo [ 36] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M36_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M36_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M36_D_FILES := $(M36_O_FILES:.o=.d) +$(M36_D_FILES): +include $(wildcard $(M36_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_lightball/Makefile b/rel/d/a/tag/d_a_tag_lightball/Makefile index 75d82bcff2c..f3ae91e65fc 100644 --- a/rel/d/a/tag/d_a_tag_lightball/Makefile +++ b/rel/d/a/tag/d_a_tag_lightball/Makefile @@ -38,10 +38,17 @@ $(M725_TARGET): $(M725_O_FILES) $(M725_LIBS) @python3 tools/lcf.py rel 725 --output $(M725_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M725_LDFLAGS) -o $(M725_TARGET) @build/M725_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_lightball/%.o: rel/d/a/tag/d_a_tag_lightball/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_lightball/%.o: rel/d/a/tag/d_a_tag_lightball/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_lightball/%.d @echo [725] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M725_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M725_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M725_D_FILES := $(M725_O_FILES:.o=.d) +$(M725_D_FILES): +include $(wildcard $(M725_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_lv2prchk/Makefile b/rel/d/a/tag/d_a_tag_lv2prchk/Makefile index 1fc6b410710..2ac9618a267 100644 --- a/rel/d/a/tag/d_a_tag_lv2prchk/Makefile +++ b/rel/d/a/tag/d_a_tag_lv2prchk/Makefile @@ -40,10 +40,17 @@ $(M128_TARGET): $(M128_O_FILES) $(M128_LIBS) @python3 tools/lcf.py rel 128 --output $(M128_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M128_LDFLAGS) -o $(M128_TARGET) @build/M128_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_lv2prchk/%.o: rel/d/a/tag/d_a_tag_lv2prchk/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_lv2prchk/%.o: rel/d/a/tag/d_a_tag_lv2prchk/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_lv2prchk/%.d @echo [128] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M128_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M128_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M128_D_FILES := $(M128_O_FILES:.o=.d) +$(M128_D_FILES): +include $(wildcard $(M128_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_lv5soup/Makefile b/rel/d/a/tag/d_a_tag_lv5soup/Makefile index ae7d06432db..3bfd8f0a831 100644 --- a/rel/d/a/tag/d_a_tag_lv5soup/Makefile +++ b/rel/d/a/tag/d_a_tag_lv5soup/Makefile @@ -38,10 +38,17 @@ $(M726_TARGET): $(M726_O_FILES) $(M726_LIBS) @python3 tools/lcf.py rel 726 --output $(M726_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M726_LDFLAGS) -o $(M726_TARGET) @build/M726_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_lv5soup/%.o: rel/d/a/tag/d_a_tag_lv5soup/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_lv5soup/%.o: rel/d/a/tag/d_a_tag_lv5soup/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_lv5soup/%.d @echo [726] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M726_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M726_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M726_D_FILES := $(M726_O_FILES:.o=.d) +$(M726_D_FILES): +include $(wildcard $(M726_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_lv6CstaSw/Makefile b/rel/d/a/tag/d_a_tag_lv6CstaSw/Makefile index 00b4c27585f..81b956649c9 100644 --- a/rel/d/a/tag/d_a_tag_lv6CstaSw/Makefile +++ b/rel/d/a/tag/d_a_tag_lv6CstaSw/Makefile @@ -40,10 +40,17 @@ $(M727_TARGET): $(M727_O_FILES) $(M727_LIBS) @python3 tools/lcf.py rel 727 --output $(M727_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M727_LDFLAGS) -o $(M727_TARGET) @build/M727_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_lv6CstaSw/%.o: rel/d/a/tag/d_a_tag_lv6CstaSw/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_lv6CstaSw/%.o: rel/d/a/tag/d_a_tag_lv6CstaSw/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_lv6CstaSw/%.d @echo [727] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M727_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M727_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M727_D_FILES := $(M727_O_FILES:.o=.d) +$(M727_D_FILES): +include $(wildcard $(M727_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_magne/Makefile b/rel/d/a/tag/d_a_tag_magne/Makefile index 714c3afb03e..6aeaef2c94b 100644 --- a/rel/d/a/tag/d_a_tag_magne/Makefile +++ b/rel/d/a/tag/d_a_tag_magne/Makefile @@ -38,10 +38,17 @@ $(M129_TARGET): $(M129_O_FILES) $(M129_LIBS) @python3 tools/lcf.py rel 129 --output $(M129_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M129_LDFLAGS) -o $(M129_TARGET) @build/M129_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_magne/%.o: rel/d/a/tag/d_a_tag_magne/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_magne/%.o: rel/d/a/tag/d_a_tag_magne/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_magne/%.d @echo [129] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M129_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M129_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M129_D_FILES := $(M129_O_FILES:.o=.d) +$(M129_D_FILES): +include $(wildcard $(M129_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_mhint/Makefile b/rel/d/a/tag/d_a_tag_mhint/Makefile index 381732a6bfd..c43a013fae0 100644 --- a/rel/d/a/tag/d_a_tag_mhint/Makefile +++ b/rel/d/a/tag/d_a_tag_mhint/Makefile @@ -38,10 +38,17 @@ $(M130_TARGET): $(M130_O_FILES) $(M130_LIBS) @python3 tools/lcf.py rel 130 --output $(M130_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M130_LDFLAGS) -o $(M130_TARGET) @build/M130_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_mhint/%.o: rel/d/a/tag/d_a_tag_mhint/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_mhint/%.o: rel/d/a/tag/d_a_tag_mhint/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_mhint/%.d @echo [130] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M130_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M130_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M130_D_FILES := $(M130_O_FILES:.o=.d) +$(M130_D_FILES): +include $(wildcard $(M130_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_mist/Makefile b/rel/d/a/tag/d_a_tag_mist/Makefile index fe249433b76..58849e347aa 100644 --- a/rel/d/a/tag/d_a_tag_mist/Makefile +++ b/rel/d/a/tag/d_a_tag_mist/Makefile @@ -38,10 +38,17 @@ $(M37_TARGET): $(M37_O_FILES) $(M37_LIBS) @python3 tools/lcf.py rel 37 --output $(M37_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M37_LDFLAGS) -o $(M37_TARGET) @build/M37_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_mist/%.o: rel/d/a/tag/d_a_tag_mist/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_mist/%.o: rel/d/a/tag/d_a_tag_mist/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_mist/%.d @echo [ 37] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M37_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M37_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M37_D_FILES := $(M37_O_FILES:.o=.d) +$(M37_D_FILES): +include $(wildcard $(M37_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_mmsg/Makefile b/rel/d/a/tag/d_a_tag_mmsg/Makefile index 5ba4dc58440..aea09887421 100644 --- a/rel/d/a/tag/d_a_tag_mmsg/Makefile +++ b/rel/d/a/tag/d_a_tag_mmsg/Makefile @@ -38,10 +38,17 @@ $(M728_TARGET): $(M728_O_FILES) $(M728_LIBS) @python3 tools/lcf.py rel 728 --output $(M728_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M728_LDFLAGS) -o $(M728_TARGET) @build/M728_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_mmsg/%.o: rel/d/a/tag/d_a_tag_mmsg/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_mmsg/%.o: rel/d/a/tag/d_a_tag_mmsg/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_mmsg/%.d @echo [728] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M728_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M728_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M728_D_FILES := $(M728_O_FILES:.o=.d) +$(M728_D_FILES): +include $(wildcard $(M728_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_msg/Makefile b/rel/d/a/tag/d_a_tag_msg/Makefile index d313c8c011f..58365093d82 100644 --- a/rel/d/a/tag/d_a_tag_msg/Makefile +++ b/rel/d/a/tag/d_a_tag_msg/Makefile @@ -38,10 +38,17 @@ $(M38_TARGET): $(M38_O_FILES) $(M38_LIBS) @python3 tools/lcf.py rel 38 --output $(M38_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M38_LDFLAGS) -o $(M38_TARGET) @build/M38_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_msg/%.o: rel/d/a/tag/d_a_tag_msg/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_msg/%.o: rel/d/a/tag/d_a_tag_msg/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_msg/%.d @echo [ 38] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M38_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M38_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M38_D_FILES := $(M38_O_FILES:.o=.d) +$(M38_D_FILES): +include $(wildcard $(M38_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_mstop/Makefile b/rel/d/a/tag/d_a_tag_mstop/Makefile index acdb616d373..170c4384c87 100644 --- a/rel/d/a/tag/d_a_tag_mstop/Makefile +++ b/rel/d/a/tag/d_a_tag_mstop/Makefile @@ -38,10 +38,17 @@ $(M131_TARGET): $(M131_O_FILES) $(M131_LIBS) @python3 tools/lcf.py rel 131 --output $(M131_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M131_LDFLAGS) -o $(M131_TARGET) @build/M131_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_mstop/%.o: rel/d/a/tag/d_a_tag_mstop/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_mstop/%.o: rel/d/a/tag/d_a_tag_mstop/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_mstop/%.d @echo [131] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M131_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M131_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M131_D_FILES := $(M131_O_FILES:.o=.d) +$(M131_D_FILES): +include $(wildcard $(M131_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_mwait/Makefile b/rel/d/a/tag/d_a_tag_mwait/Makefile index 668c11313a8..e4c0017c4af 100644 --- a/rel/d/a/tag/d_a_tag_mwait/Makefile +++ b/rel/d/a/tag/d_a_tag_mwait/Makefile @@ -38,10 +38,17 @@ $(M729_TARGET): $(M729_O_FILES) $(M729_LIBS) @python3 tools/lcf.py rel 729 --output $(M729_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M729_LDFLAGS) -o $(M729_TARGET) @build/M729_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_mwait/%.o: rel/d/a/tag/d_a_tag_mwait/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_mwait/%.o: rel/d/a/tag/d_a_tag_mwait/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_mwait/%.d @echo [729] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M729_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M729_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M729_D_FILES := $(M729_O_FILES:.o=.d) +$(M729_D_FILES): +include $(wildcard $(M729_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_myna2/Makefile b/rel/d/a/tag/d_a_tag_myna2/Makefile index 22f6f5254bb..43af892c470 100644 --- a/rel/d/a/tag/d_a_tag_myna2/Makefile +++ b/rel/d/a/tag/d_a_tag_myna2/Makefile @@ -38,10 +38,17 @@ $(M730_TARGET): $(M730_O_FILES) $(M730_LIBS) @python3 tools/lcf.py rel 730 --output $(M730_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M730_LDFLAGS) -o $(M730_TARGET) @build/M730_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_myna2/%.o: rel/d/a/tag/d_a_tag_myna2/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_myna2/%.o: rel/d/a/tag/d_a_tag_myna2/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_myna2/%.d @echo [730] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M730_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M730_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M730_D_FILES := $(M730_O_FILES:.o=.d) +$(M730_D_FILES): +include $(wildcard $(M730_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_myna_light/Makefile b/rel/d/a/tag/d_a_tag_myna_light/Makefile index 08f51a4e1b7..b1318dcc637 100644 --- a/rel/d/a/tag/d_a_tag_myna_light/Makefile +++ b/rel/d/a/tag/d_a_tag_myna_light/Makefile @@ -38,10 +38,17 @@ $(M731_TARGET): $(M731_O_FILES) $(M731_LIBS) @python3 tools/lcf.py rel 731 --output $(M731_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M731_LDFLAGS) -o $(M731_TARGET) @build/M731_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_myna_light/%.o: rel/d/a/tag/d_a_tag_myna_light/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_myna_light/%.o: rel/d/a/tag/d_a_tag_myna_light/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_myna_light/%.d @echo [731] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M731_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M731_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M731_D_FILES := $(M731_O_FILES:.o=.d) +$(M731_D_FILES): +include $(wildcard $(M731_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_pachi/Makefile b/rel/d/a/tag/d_a_tag_pachi/Makefile index 232ac412ccc..1b026de0db6 100644 --- a/rel/d/a/tag/d_a_tag_pachi/Makefile +++ b/rel/d/a/tag/d_a_tag_pachi/Makefile @@ -38,10 +38,17 @@ $(M732_TARGET): $(M732_O_FILES) $(M732_LIBS) @python3 tools/lcf.py rel 732 --output $(M732_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M732_LDFLAGS) -o $(M732_TARGET) @build/M732_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_pachi/%.o: rel/d/a/tag/d_a_tag_pachi/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_pachi/%.o: rel/d/a/tag/d_a_tag_pachi/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_pachi/%.d @echo [732] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M732_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M732_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M732_D_FILES := $(M732_O_FILES:.o=.d) +$(M732_D_FILES): +include $(wildcard $(M732_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_poFire/Makefile b/rel/d/a/tag/d_a_tag_poFire/Makefile index 727669b2f09..f55740d1fa5 100644 --- a/rel/d/a/tag/d_a_tag_poFire/Makefile +++ b/rel/d/a/tag/d_a_tag_poFire/Makefile @@ -40,10 +40,17 @@ $(M733_TARGET): $(M733_O_FILES) $(M733_LIBS) @python3 tools/lcf.py rel 733 --output $(M733_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M733_LDFLAGS) -o $(M733_TARGET) @build/M733_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_poFire/%.o: rel/d/a/tag/d_a_tag_poFire/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_poFire/%.o: rel/d/a/tag/d_a_tag_poFire/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_poFire/%.d @echo [733] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M733_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M733_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M733_D_FILES := $(M733_O_FILES:.o=.d) +$(M733_D_FILES): +include $(wildcard $(M733_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_push/Makefile b/rel/d/a/tag/d_a_tag_push/Makefile index e37621ecc73..a8db48b4f59 100644 --- a/rel/d/a/tag/d_a_tag_push/Makefile +++ b/rel/d/a/tag/d_a_tag_push/Makefile @@ -38,10 +38,17 @@ $(M39_TARGET): $(M39_O_FILES) $(M39_LIBS) @python3 tools/lcf.py rel 39 --output $(M39_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M39_LDFLAGS) -o $(M39_TARGET) @build/M39_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_push/%.o: rel/d/a/tag/d_a_tag_push/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_push/%.o: rel/d/a/tag/d_a_tag_push/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_push/%.d @echo [ 39] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M39_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M39_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M39_D_FILES := $(M39_O_FILES:.o=.d) +$(M39_D_FILES): +include $(wildcard $(M39_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_qs/Makefile b/rel/d/a/tag/d_a_tag_qs/Makefile index bcbbfe72a6f..052659ac2ce 100644 --- a/rel/d/a/tag/d_a_tag_qs/Makefile +++ b/rel/d/a/tag/d_a_tag_qs/Makefile @@ -38,10 +38,17 @@ $(M734_TARGET): $(M734_O_FILES) $(M734_LIBS) @python3 tools/lcf.py rel 734 --output $(M734_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M734_LDFLAGS) -o $(M734_TARGET) @build/M734_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_qs/%.o: rel/d/a/tag/d_a_tag_qs/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_qs/%.o: rel/d/a/tag/d_a_tag_qs/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_qs/%.d @echo [734] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M734_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M734_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M734_D_FILES := $(M734_O_FILES:.o=.d) +$(M734_D_FILES): +include $(wildcard $(M734_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_ret_room/Makefile b/rel/d/a/tag/d_a_tag_ret_room/Makefile index 397bb97f75d..91371070f9b 100644 --- a/rel/d/a/tag/d_a_tag_ret_room/Makefile +++ b/rel/d/a/tag/d_a_tag_ret_room/Makefile @@ -38,10 +38,17 @@ $(M735_TARGET): $(M735_O_FILES) $(M735_LIBS) @python3 tools/lcf.py rel 735 --output $(M735_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M735_LDFLAGS) -o $(M735_TARGET) @build/M735_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_ret_room/%.o: rel/d/a/tag/d_a_tag_ret_room/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_ret_room/%.o: rel/d/a/tag/d_a_tag_ret_room/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_ret_room/%.d @echo [735] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M735_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M735_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M735_D_FILES := $(M735_O_FILES:.o=.d) +$(M735_D_FILES): +include $(wildcard $(M735_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_river_back/Makefile b/rel/d/a/tag/d_a_tag_river_back/Makefile index bc08cd553df..75f3db3e6c3 100644 --- a/rel/d/a/tag/d_a_tag_river_back/Makefile +++ b/rel/d/a/tag/d_a_tag_river_back/Makefile @@ -40,10 +40,17 @@ $(M736_TARGET): $(M736_O_FILES) $(M736_LIBS) @python3 tools/lcf.py rel 736 --output $(M736_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M736_LDFLAGS) -o $(M736_TARGET) @build/M736_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_river_back/%.o: rel/d/a/tag/d_a_tag_river_back/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_river_back/%.o: rel/d/a/tag/d_a_tag_river_back/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_river_back/%.d @echo [736] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M736_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M736_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M736_D_FILES := $(M736_O_FILES:.o=.d) +$(M736_D_FILES): +include $(wildcard $(M736_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_rmbit_sw/Makefile b/rel/d/a/tag/d_a_tag_rmbit_sw/Makefile index afea547906d..994bb64b9b1 100644 --- a/rel/d/a/tag/d_a_tag_rmbit_sw/Makefile +++ b/rel/d/a/tag/d_a_tag_rmbit_sw/Makefile @@ -38,10 +38,17 @@ $(M737_TARGET): $(M737_O_FILES) $(M737_LIBS) @python3 tools/lcf.py rel 737 --output $(M737_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M737_LDFLAGS) -o $(M737_TARGET) @build/M737_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_rmbit_sw/%.o: rel/d/a/tag/d_a_tag_rmbit_sw/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_rmbit_sw/%.o: rel/d/a/tag/d_a_tag_rmbit_sw/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_rmbit_sw/%.d @echo [737] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M737_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M737_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M737_D_FILES := $(M737_O_FILES:.o=.d) +$(M737_D_FILES): +include $(wildcard $(M737_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_schedule/Makefile b/rel/d/a/tag/d_a_tag_schedule/Makefile index a3c4a3ad7f7..6fffd39a136 100644 --- a/rel/d/a/tag/d_a_tag_schedule/Makefile +++ b/rel/d/a/tag/d_a_tag_schedule/Makefile @@ -38,10 +38,17 @@ $(M738_TARGET): $(M738_O_FILES) $(M738_LIBS) @python3 tools/lcf.py rel 738 --output $(M738_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M738_LDFLAGS) -o $(M738_TARGET) @build/M738_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_schedule/%.o: rel/d/a/tag/d_a_tag_schedule/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_schedule/%.o: rel/d/a/tag/d_a_tag_schedule/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_schedule/%.d @echo [738] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M738_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M738_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M738_D_FILES := $(M738_O_FILES:.o=.d) +$(M738_D_FILES): +include $(wildcard $(M738_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_setBall/Makefile b/rel/d/a/tag/d_a_tag_setBall/Makefile index 4a82589fb46..af53ee8e108 100644 --- a/rel/d/a/tag/d_a_tag_setBall/Makefile +++ b/rel/d/a/tag/d_a_tag_setBall/Makefile @@ -38,10 +38,17 @@ $(M739_TARGET): $(M739_O_FILES) $(M739_LIBS) @python3 tools/lcf.py rel 739 --output $(M739_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M739_LDFLAGS) -o $(M739_TARGET) @build/M739_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_setBall/%.o: rel/d/a/tag/d_a_tag_setBall/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_setBall/%.o: rel/d/a/tag/d_a_tag_setBall/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_setBall/%.d @echo [739] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M739_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M739_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M739_D_FILES := $(M739_O_FILES:.o=.d) +$(M739_D_FILES): +include $(wildcard $(M739_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_setrestart/Makefile b/rel/d/a/tag/d_a_tag_setrestart/Makefile index 26fd65b82f5..15ff40b09f2 100644 --- a/rel/d/a/tag/d_a_tag_setrestart/Makefile +++ b/rel/d/a/tag/d_a_tag_setrestart/Makefile @@ -38,10 +38,17 @@ $(M740_TARGET): $(M740_O_FILES) $(M740_LIBS) @python3 tools/lcf.py rel 740 --output $(M740_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M740_LDFLAGS) -o $(M740_TARGET) @build/M740_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_setrestart/%.o: rel/d/a/tag/d_a_tag_setrestart/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_setrestart/%.o: rel/d/a/tag/d_a_tag_setrestart/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_setrestart/%.d @echo [740] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M740_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M740_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M740_D_FILES := $(M740_O_FILES:.o=.d) +$(M740_D_FILES): +include $(wildcard $(M740_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_shop_camera/Makefile b/rel/d/a/tag/d_a_tag_shop_camera/Makefile index 0c4cfdb0557..5bb64d202e9 100644 --- a/rel/d/a/tag/d_a_tag_shop_camera/Makefile +++ b/rel/d/a/tag/d_a_tag_shop_camera/Makefile @@ -38,10 +38,17 @@ $(M741_TARGET): $(M741_O_FILES) $(M741_LIBS) @python3 tools/lcf.py rel 741 --output $(M741_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M741_LDFLAGS) -o $(M741_TARGET) @build/M741_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_shop_camera/%.o: rel/d/a/tag/d_a_tag_shop_camera/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_shop_camera/%.o: rel/d/a/tag/d_a_tag_shop_camera/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_shop_camera/%.d @echo [741] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M741_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M741_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M741_D_FILES := $(M741_O_FILES:.o=.d) +$(M741_D_FILES): +include $(wildcard $(M741_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_shop_item/Makefile b/rel/d/a/tag/d_a_tag_shop_item/Makefile index d82ebbc0213..5b0fc30b6f7 100644 --- a/rel/d/a/tag/d_a_tag_shop_item/Makefile +++ b/rel/d/a/tag/d_a_tag_shop_item/Makefile @@ -38,10 +38,17 @@ $(M742_TARGET): $(M742_O_FILES) $(M742_LIBS) @python3 tools/lcf.py rel 742 --output $(M742_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M742_LDFLAGS) -o $(M742_TARGET) @build/M742_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_shop_item/%.o: rel/d/a/tag/d_a_tag_shop_item/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_shop_item/%.o: rel/d/a/tag/d_a_tag_shop_item/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_shop_item/%.d @echo [742] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M742_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M742_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M742_D_FILES := $(M742_O_FILES:.o=.d) +$(M742_D_FILES): +include $(wildcard $(M742_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_smk_emt/Makefile b/rel/d/a/tag/d_a_tag_smk_emt/Makefile index e0e5c56a7fc..9fb7ff7c4cb 100644 --- a/rel/d/a/tag/d_a_tag_smk_emt/Makefile +++ b/rel/d/a/tag/d_a_tag_smk_emt/Makefile @@ -38,10 +38,17 @@ $(M743_TARGET): $(M743_O_FILES) $(M743_LIBS) @python3 tools/lcf.py rel 743 --output $(M743_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M743_LDFLAGS) -o $(M743_TARGET) @build/M743_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_smk_emt/%.o: rel/d/a/tag/d_a_tag_smk_emt/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_smk_emt/%.o: rel/d/a/tag/d_a_tag_smk_emt/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_smk_emt/%.d @echo [743] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M743_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M743_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M743_D_FILES := $(M743_O_FILES:.o=.d) +$(M743_D_FILES): +include $(wildcard $(M743_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_spinner/Makefile b/rel/d/a/tag/d_a_tag_spinner/Makefile index 1644778a035..b6bdb2bd8e6 100644 --- a/rel/d/a/tag/d_a_tag_spinner/Makefile +++ b/rel/d/a/tag/d_a_tag_spinner/Makefile @@ -38,10 +38,17 @@ $(M744_TARGET): $(M744_O_FILES) $(M744_LIBS) @python3 tools/lcf.py rel 744 --output $(M744_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M744_LDFLAGS) -o $(M744_TARGET) @build/M744_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_spinner/%.o: rel/d/a/tag/d_a_tag_spinner/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_spinner/%.o: rel/d/a/tag/d_a_tag_spinner/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_spinner/%.d @echo [744] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M744_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M744_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M744_D_FILES := $(M744_O_FILES:.o=.d) +$(M744_D_FILES): +include $(wildcard $(M744_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_sppath/Makefile b/rel/d/a/tag/d_a_tag_sppath/Makefile index c7031227f9c..d9e5aed13de 100644 --- a/rel/d/a/tag/d_a_tag_sppath/Makefile +++ b/rel/d/a/tag/d_a_tag_sppath/Makefile @@ -38,10 +38,17 @@ $(M745_TARGET): $(M745_O_FILES) $(M745_LIBS) @python3 tools/lcf.py rel 745 --output $(M745_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M745_LDFLAGS) -o $(M745_TARGET) @build/M745_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_sppath/%.o: rel/d/a/tag/d_a_tag_sppath/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_sppath/%.o: rel/d/a/tag/d_a_tag_sppath/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_sppath/%.d @echo [745] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M745_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M745_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M745_D_FILES := $(M745_O_FILES:.o=.d) +$(M745_D_FILES): +include $(wildcard $(M745_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_spring/Makefile b/rel/d/a/tag/d_a_tag_spring/Makefile index 33710312c2f..048dcd9bf93 100644 --- a/rel/d/a/tag/d_a_tag_spring/Makefile +++ b/rel/d/a/tag/d_a_tag_spring/Makefile @@ -38,10 +38,17 @@ $(M132_TARGET): $(M132_O_FILES) $(M132_LIBS) @python3 tools/lcf.py rel 132 --output $(M132_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M132_LDFLAGS) -o $(M132_TARGET) @build/M132_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_spring/%.o: rel/d/a/tag/d_a_tag_spring/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_spring/%.o: rel/d/a/tag/d_a_tag_spring/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_spring/%.d @echo [132] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M132_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M132_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M132_D_FILES := $(M132_O_FILES:.o=.d) +$(M132_D_FILES): +include $(wildcard $(M132_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_ss_drink/Makefile b/rel/d/a/tag/d_a_tag_ss_drink/Makefile index 6ee08b07f9f..72615e15ccd 100644 --- a/rel/d/a/tag/d_a_tag_ss_drink/Makefile +++ b/rel/d/a/tag/d_a_tag_ss_drink/Makefile @@ -38,10 +38,17 @@ $(M746_TARGET): $(M746_O_FILES) $(M746_LIBS) @python3 tools/lcf.py rel 746 --output $(M746_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M746_LDFLAGS) -o $(M746_TARGET) @build/M746_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_ss_drink/%.o: rel/d/a/tag/d_a_tag_ss_drink/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_ss_drink/%.o: rel/d/a/tag/d_a_tag_ss_drink/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_ss_drink/%.d @echo [746] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M746_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M746_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M746_D_FILES := $(M746_O_FILES:.o=.d) +$(M746_D_FILES): +include $(wildcard $(M746_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_statue_evt/Makefile b/rel/d/a/tag/d_a_tag_statue_evt/Makefile index 20b6d7eeaf2..a491f8db1f1 100644 --- a/rel/d/a/tag/d_a_tag_statue_evt/Makefile +++ b/rel/d/a/tag/d_a_tag_statue_evt/Makefile @@ -40,10 +40,17 @@ $(M133_TARGET): $(M133_O_FILES) $(M133_LIBS) @python3 tools/lcf.py rel 133 --output $(M133_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M133_LDFLAGS) -o $(M133_TARGET) @build/M133_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_statue_evt/%.o: rel/d/a/tag/d_a_tag_statue_evt/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_statue_evt/%.o: rel/d/a/tag/d_a_tag_statue_evt/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_statue_evt/%.d @echo [133] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M133_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M133_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M133_D_FILES := $(M133_O_FILES:.o=.d) +$(M133_D_FILES): +include $(wildcard $(M133_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_stream/Makefile b/rel/d/a/tag/d_a_tag_stream/Makefile index b7bf5fb6734..32c2d037822 100644 --- a/rel/d/a/tag/d_a_tag_stream/Makefile +++ b/rel/d/a/tag/d_a_tag_stream/Makefile @@ -38,10 +38,17 @@ $(M747_TARGET): $(M747_O_FILES) $(M747_LIBS) @python3 tools/lcf.py rel 747 --output $(M747_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M747_LDFLAGS) -o $(M747_TARGET) @build/M747_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_stream/%.o: rel/d/a/tag/d_a_tag_stream/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_stream/%.o: rel/d/a/tag/d_a_tag_stream/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_stream/%.d @echo [747] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M747_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M747_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M747_D_FILES := $(M747_O_FILES:.o=.d) +$(M747_D_FILES): +include $(wildcard $(M747_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_telop/Makefile b/rel/d/a/tag/d_a_tag_telop/Makefile index 4540f9d08ed..18734afa71a 100644 --- a/rel/d/a/tag/d_a_tag_telop/Makefile +++ b/rel/d/a/tag/d_a_tag_telop/Makefile @@ -38,10 +38,17 @@ $(M40_TARGET): $(M40_O_FILES) $(M40_LIBS) @python3 tools/lcf.py rel 40 --output $(M40_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M40_LDFLAGS) -o $(M40_TARGET) @build/M40_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_telop/%.o: rel/d/a/tag/d_a_tag_telop/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_telop/%.o: rel/d/a/tag/d_a_tag_telop/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_telop/%.d @echo [ 40] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M40_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M40_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M40_D_FILES := $(M40_O_FILES:.o=.d) +$(M40_D_FILES): +include $(wildcard $(M40_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_theB_hint/Makefile b/rel/d/a/tag/d_a_tag_theB_hint/Makefile index 8d2c128ba4f..a87e01829a3 100644 --- a/rel/d/a/tag/d_a_tag_theB_hint/Makefile +++ b/rel/d/a/tag/d_a_tag_theB_hint/Makefile @@ -38,10 +38,17 @@ $(M748_TARGET): $(M748_O_FILES) $(M748_LIBS) @python3 tools/lcf.py rel 748 --output $(M748_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M748_LDFLAGS) -o $(M748_TARGET) @build/M748_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_theB_hint/%.o: rel/d/a/tag/d_a_tag_theB_hint/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_theB_hint/%.o: rel/d/a/tag/d_a_tag_theB_hint/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_theB_hint/%.d @echo [748] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M748_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M748_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M748_D_FILES := $(M748_O_FILES:.o=.d) +$(M748_D_FILES): +include $(wildcard $(M748_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_wara_howl/Makefile b/rel/d/a/tag/d_a_tag_wara_howl/Makefile index 7c3eeb01796..9a6acad37a4 100644 --- a/rel/d/a/tag/d_a_tag_wara_howl/Makefile +++ b/rel/d/a/tag/d_a_tag_wara_howl/Makefile @@ -38,10 +38,17 @@ $(M749_TARGET): $(M749_O_FILES) $(M749_LIBS) @python3 tools/lcf.py rel 749 --output $(M749_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M749_LDFLAGS) -o $(M749_TARGET) @build/M749_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_wara_howl/%.o: rel/d/a/tag/d_a_tag_wara_howl/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_wara_howl/%.o: rel/d/a/tag/d_a_tag_wara_howl/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_wara_howl/%.d @echo [749] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M749_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M749_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M749_D_FILES := $(M749_O_FILES:.o=.d) +$(M749_D_FILES): +include $(wildcard $(M749_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_watchge/Makefile b/rel/d/a/tag/d_a_tag_watchge/Makefile index 5560d0506e6..360f968c0d8 100644 --- a/rel/d/a/tag/d_a_tag_watchge/Makefile +++ b/rel/d/a/tag/d_a_tag_watchge/Makefile @@ -38,10 +38,17 @@ $(M750_TARGET): $(M750_O_FILES) $(M750_LIBS) @python3 tools/lcf.py rel 750 --output $(M750_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M750_LDFLAGS) -o $(M750_TARGET) @build/M750_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_watchge/%.o: rel/d/a/tag/d_a_tag_watchge/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_watchge/%.o: rel/d/a/tag/d_a_tag_watchge/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_watchge/%.d @echo [750] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M750_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M750_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M750_D_FILES := $(M750_O_FILES:.o=.d) +$(M750_D_FILES): +include $(wildcard $(M750_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_waterfall/Makefile b/rel/d/a/tag/d_a_tag_waterfall/Makefile index 0443091ec38..f487378ebfd 100644 --- a/rel/d/a/tag/d_a_tag_waterfall/Makefile +++ b/rel/d/a/tag/d_a_tag_waterfall/Makefile @@ -40,10 +40,17 @@ $(M751_TARGET): $(M751_O_FILES) $(M751_LIBS) @python3 tools/lcf.py rel 751 --output $(M751_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M751_LDFLAGS) -o $(M751_TARGET) @build/M751_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_waterfall/%.o: rel/d/a/tag/d_a_tag_waterfall/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_waterfall/%.o: rel/d/a/tag/d_a_tag_waterfall/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_waterfall/%.d @echo [751] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M751_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M751_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M751_D_FILES := $(M751_O_FILES:.o=.d) +$(M751_D_FILES): +include $(wildcard $(M751_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_wljump/Makefile b/rel/d/a/tag/d_a_tag_wljump/Makefile index 1360fa867a7..bfe7c9986cf 100644 --- a/rel/d/a/tag/d_a_tag_wljump/Makefile +++ b/rel/d/a/tag/d_a_tag_wljump/Makefile @@ -38,10 +38,17 @@ $(M752_TARGET): $(M752_O_FILES) $(M752_LIBS) @python3 tools/lcf.py rel 752 --output $(M752_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M752_LDFLAGS) -o $(M752_TARGET) @build/M752_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_wljump/%.o: rel/d/a/tag/d_a_tag_wljump/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_wljump/%.o: rel/d/a/tag/d_a_tag_wljump/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_wljump/%.d @echo [752] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M752_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M752_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M752_D_FILES := $(M752_O_FILES:.o=.d) +$(M752_D_FILES): +include $(wildcard $(M752_D_FILES)) +endif diff --git a/rel/d/a/tag/d_a_tag_yami/Makefile b/rel/d/a/tag/d_a_tag_yami/Makefile index 5bbd2f909d7..da987775582 100644 --- a/rel/d/a/tag/d_a_tag_yami/Makefile +++ b/rel/d/a/tag/d_a_tag_yami/Makefile @@ -38,10 +38,17 @@ $(M753_TARGET): $(M753_O_FILES) $(M753_LIBS) @python3 tools/lcf.py rel 753 --output $(M753_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M753_LDFLAGS) -o $(M753_TARGET) @build/M753_ofiles -$(BUILD_DIR)/rel/d/a/tag/d_a_tag_yami/%.o: rel/d/a/tag/d_a_tag_yami/%.cpp +$(BUILD_DIR)/rel/d/a/tag/d_a_tag_yami/%.o: rel/d/a/tag/d_a_tag_yami/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_yami/%.d @echo [753] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M753_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M753_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M753_D_FILES := $(M753_O_FILES:.o=.d) +$(M753_D_FILES): +include $(wildcard $(M753_D_FILES)) +endif diff --git a/rel/f_pc/f_pc_profile_lst/Makefile b/rel/f_pc/f_pc_profile_lst/Makefile index 300ac3cb5c2..120b2e58204 100644 --- a/rel/f_pc/f_pc_profile_lst/Makefile +++ b/rel/f_pc/f_pc_profile_lst/Makefile @@ -38,10 +38,17 @@ $(M1_TARGET): $(M1_O_FILES) $(M1_LIBS) @python3 tools/lcf.py rel 1 --output $(M1_LDSCRIPT) @$(LD) -opt_partial -strip_partial $(M1_LDFLAGS) -o $(M1_TARGET) @build/M1_ofiles -$(BUILD_DIR)/rel/f_pc/f_pc_profile_lst/%.o: rel/f_pc/f_pc_profile_lst/%.cpp +$(BUILD_DIR)/rel/f_pc/f_pc_profile_lst/%.o: rel/f_pc/f_pc_profile_lst/%.cpp $(BUILD_DIR)/rel/f_pc/f_pc_profile_lst/%.d @echo [ 1] building $@ @mkdir -p $(@D) @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(M1_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(M1_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp + @if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi + +ifndef DISABLE_DEPS +M1_D_FILES := $(M1_O_FILES:.o=.d) +$(M1_D_FILES): +include $(wildcard $(M1_D_FILES)) +endif diff --git a/tools/dol2asm.py b/tools/dol2asm.py index 222d4b32340..4c80bfc5b08 100644 --- a/tools/dol2asm.py +++ b/tools/dol2asm.py @@ -12,6 +12,7 @@ from pathlib import Path try: import click import libdol2asm + import libdol2asm.util except ImportError as e: MISSING_PREREQUISITES = ( f"Missing prerequisite python module {e}.\n" diff --git a/tools/dol2asm_settings.py b/tools/dol2asm_settings.py index 571d4f50ef7..8d73b6ecc5f 100644 --- a/tools/dol2asm_settings.py +++ b/tools/dol2asm_settings.py @@ -1613,6 +1613,7 @@ LIBRARY_LUT = [ ("db", "dolphin/"), ("dsp", "dolphin/"), ("dvd", "dolphin/"), + ("exi", "dolphin/"), ("gd", "dolphin/"), ("gf", "dolphin/"), ("gx", "dolphin/"), diff --git a/tools/libdol2asm/data/function/store.py b/tools/libdol2asm/data/function/store.py index 48116e6edc8..794a26bddea 100644 --- a/tools/libdol2asm/data/function/store.py +++ b/tools/libdol2asm/data/function/store.py @@ -1,8 +1,7 @@ from dataclasses import dataclass, field -from capstone import * -from capstone.ppc import * +from capstone.ppc import PPC_REG_R3 from ...builder import AsyncBuilder from ...types import * diff --git a/tools/libdol2asm/exporter/makefile.py b/tools/libdol2asm/exporter/makefile.py index f06fc51cb9b..ecdf81454ad 100644 --- a/tools/libdol2asm/exporter/makefile.py +++ b/tools/libdol2asm/exporter/makefile.py @@ -1,4 +1,4 @@ -from pathlib import Path +from pathlib import Path, PurePosixPath from .. import util from ..globals import * @@ -8,7 +8,7 @@ from ..builder import AsyncBuilder async def create_library(library: Library): assert library.name lib_path = library.makefile_path - cpp_path = library.source_path + cpp_path = PurePosixPath(library.source_path) o_path = f"$(BUILD_DIR)/{cpp_path}" makefile_path = lib_path.joinpath("Makefile") @@ -30,7 +30,7 @@ async def create_library(library: Library): if tu.is_empty: continue - await builder.write(f"\t{tu.source_path(library)} \\") + await builder.write(f"\t{PurePosixPath(tu.source_path(library))} \\") await builder.write("") await builder.write(f"{prefix}_O_FILES := \\") @@ -38,7 +38,7 @@ async def create_library(library: Library): if tu.is_empty: continue - await builder.write(f"\t$(BUILD_DIR)/{tu.object_path(library)} \\") + await builder.write(f"\t$(BUILD_DIR)/{PurePosixPath(tu.object_path(library))} \\") await builder.write("") await builder.write(f"{prefix}_CFLAGS := \\") @@ -58,11 +58,19 @@ async def create_library(library: Library): #await builder.write(f"\t@$(STRIP) -d -R .dead -R .comment {target_path}") await builder.write("") - await builder.write(f"{o_path}/%.o: {cpp_path}/%.cpp") + await builder.write(f"{o_path}/%.o: {cpp_path}/%.cpp {o_path}/%.d") await builder.write(f"\t@mkdir -p $(@D)") await builder.write(f"\t@echo building... $<") - await builder.write(f"\t@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp") - await builder.write(f"\t@$(CC) $(CFLAGS) $({prefix}_CFLAGS) -c -o $@ $@.iconv.cpp") + await builder.write(f"\t@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp") + await builder.write(f"\t@$(CC) $(CFLAGS) $({prefix}_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp") + await builder.write("\t@if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi") + await builder.write("") + + await builder.write("ifndef DISABLE_DEPS") + await builder.write(f"{prefix}_D_FILES := $({prefix}_O_FILES:.o=.d)") + await builder.write(f"$({prefix}_D_FILES):") + await builder.write(f"include $(wildcard $({prefix}_D_FILES))") + await builder.write("endif") await builder.write("") debug(f"generated Makefile: '{makefile_path}'") @@ -73,7 +81,7 @@ async def create_rel(module: Module, rel_path: Path): prefix = f"m{module.index}".upper() lib_path = base.makefile_path - cpp_path = base.source_path + cpp_path = PurePosixPath(base.source_path) o_path = f"$(BUILD_DIR)/{cpp_path}" makefile_path = lib_path.joinpath("Makefile") @@ -101,9 +109,9 @@ async def create_rel(module: Module, rel_path: Path): if tu.is_empty: continue if tu.special == "rel": - await builder.write(f"\t{rel_path.joinpath(tu.name)}.cpp \\") + await builder.write(f"\t{PurePosixPath(rel_path.joinpath(tu.name))}.cpp \\") else: - await builder.write(f"\t{tu.source_path(base)} \\") + await builder.write(f"\t{PurePosixPath(tu.source_path(base))} \\") await builder.write("") await builder.write(f"{prefix}_O_FILES := \\") @@ -111,9 +119,9 @@ async def create_rel(module: Module, rel_path: Path): if tu.is_empty: continue if tu.special == "rel": - await builder.write(f"\t$(BUILD_DIR)/{rel_path.joinpath(tu.name)}.o \\") + await builder.write(f"\t$(BUILD_DIR)/{PurePosixPath(rel_path.joinpath(tu.name))}.o \\") else: - await builder.write(f"\t$(BUILD_DIR)/{tu.object_path(base)} \\") + await builder.write(f"\t$(BUILD_DIR)/{PurePosixPath(tu.object_path(base))} \\") await builder.write("") await builder.write(f"{prefix}_LIBS := \\") @@ -146,11 +154,19 @@ async def create_rel(module: Module, rel_path: Path): await builder.write(f"\t@$(LD) -opt_partial -strip_partial $({prefix}_LDFLAGS) -o $({prefix}_TARGET) @{input_file}") await builder.write("") - await builder.write(f"{o_path}/%.o: {cpp_path}/%.cpp") + await builder.write(f"{o_path}/%.o: {cpp_path}/%.cpp {o_path}/%.d") await builder.write(f"\t@echo [{module.index:>3}] building $@") await builder.write(f"\t@mkdir -p $(@D)") - await builder.write(f"\t@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp") - await builder.write(f"\t@$(CC) $(CFLAGS) $({prefix}_CFLAGS) -c -o $@ $@.iconv.cpp") + await builder.write(f"\t@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp") + await builder.write(f"\t@$(CC) $(CFLAGS) $({prefix}_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp") + await builder.write("\t@if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi") + await builder.write("") + + await builder.write("ifndef DISABLE_DEPS") + await builder.write(f"{prefix}_D_FILES := $({prefix}_O_FILES:.o=.d)") + await builder.write(f"$({prefix}_D_FILES):") + await builder.write(f"include $(wildcard $({prefix}_D_FILES))") + await builder.write("endif") await builder.write("") for library in libraries[1:]: @@ -250,7 +266,7 @@ async def create_obj_files(modules: Module): if tu.is_empty: continue - await builder.write(f"\t$(BUILD_DIR)/{tu.object_path(base)} \\") + await builder.write(f"\t$(BUILD_DIR)/{PurePosixPath(tu.object_path(base))} \\") await builder.write("") await builder.write(f"LIBS := \\") @@ -288,7 +304,7 @@ async def create_include_link(modules: Module): if name == None: continue - target = lib.makefile_path.joinpath('Makefile') + target = PurePosixPath(lib.makefile_path.joinpath('Makefile')) await builder.write(f"-include {target}") await builder.write("") @@ -297,7 +313,7 @@ async def create_include_link(modules: Module): if module.index == 0: continue - target = module.base_library.makefile_path.joinpath('Makefile') + target = PurePosixPath(module.base_library.makefile_path.joinpath('Makefile')) await builder.write(f"-include {target}") await builder.write("") diff --git a/tools/libdol2asm/settings.py b/tools/libdol2asm/settings.py index c33fcd26b2a..84a55c02085 100644 --- a/tools/libdol2asm/settings.py +++ b/tools/libdol2asm/settings.py @@ -1613,6 +1613,7 @@ LIBRARY_LUT = [ ("db", "dolphin/"), ("dsp", "dolphin/"), ("dvd", "dolphin/"), + ("exi", "dolphin/"), ("gd", "dolphin/"), ("gf", "dolphin/"), ("gx", "dolphin/"), diff --git a/tools/libdol2asm/split_asm.py b/tools/libdol2asm/split_asm.py index c796e006d8d..5bfa4e654dc 100644 --- a/tools/libdol2asm/split_asm.py +++ b/tools/libdol2asm/split_asm.py @@ -61,6 +61,8 @@ class Dol2AsmSplitter: select_tu, select_asm): self.debug_logging = debug_logging self.game_path = game_path + self.files_path = game_path / "files" + self.sys_path = game_path / "sys" self.lib_path = lib_path self.src_path = src_path self.asm_path = asm_path @@ -88,15 +90,15 @@ class Dol2AsmSplitter: fatal_exit() # check if the 'main.dol' and 'frameworkF.map' exists - self.baserom_path = util.check_file(self.game_path, "main.dol") + self.baserom_path = util.check_file(self.sys_path, "main.dol") self.framework_path = util.check_file( - self.game_path, "map/Final/Release/frameworkF.map") + self.files_path , "map/Final/Release/frameworkF.map") info(f"found 'main.dol' at '{self.baserom_path}'") info(f"found 'frameworkF.map' at '{self.framework_path}'") # search for '.map' files - self.map_path = util.check_dir(self.game_path, "map/Final/Release") + self.map_path = util.check_dir(self.files_path, "map/Final/Release") self.maps_path = [ x for x in util.get_files_with_ext(self.map_path, ".map") @@ -105,9 +107,9 @@ class Dol2AsmSplitter: info(f"found {len(self.maps_path)} map files in '{self.map_path}'") # search for '.rel' files - self._rel_path = util.check_dir(self.game_path, "rel/Final/Release") + self._rel_path = util.check_dir(self.files_path, "rel/Final/Release") self.rels_path = util.get_files_with_ext(self._rel_path, ".rel") - self.rels_archive_path = util.check_file(self.game_path, "RELS.arc") + self.rels_archive_path = util.check_file(self.files_path, "RELS.arc") info(f"found {len(self.rels_path)} RELs in '{self._rel_path}'") def read_dol(self): diff --git a/tools/transform-dep.py b/tools/transform-dep.py new file mode 100755 index 00000000000..bdb29e50133 --- /dev/null +++ b/tools/transform-dep.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# borrowed from prime-decomp +import argparse +import os +from platform import uname + +if os.name != 'nt': + wineprefix = os.environ.get('WINEPREFIX', os.path.join(os.environ['HOME'], '.wine')) + winedevices = os.path.join(wineprefix, 'dosdevices') + +def in_wsl() -> bool: + return 'microsoft-standard' in uname().release + +def import_d_file(in_file) -> str: + out_lines = [] + + with open(in_file) as file: + for idx, line in enumerate(file): + if idx == 0: + if line.endswith(' \\\n'): + out_lines.append(line[:-3].replace('\\', '/') + " \\\n") + else: + out_lines.append(line.replace('\\', '/')) + else: + suffix = '' + if line.endswith(' \\\n'): + suffix = ' \\' + path = line.lstrip()[:-3] + else: + path = line.strip() + # lowercase drive letter + path = path[0].lower() + path[1:] + if os.name == 'nt': + path = path.replace('\\', '/') + elif path[0] == 'z': + # shortcut for z: + path = path[2:].replace('\\', '/') + elif in_wsl(): + path = path[0:1] + path[2:] + path = os.path.join('/mnt', path.replace('\\', '/')) + else: + # use $WINEPREFIX/dosdevices to resolve path + path = os.path.realpath(os.path.join(winedevices, path.replace('\\', '/'))) + out_lines.append(f"\t{path}{suffix}\n") + + return ''.join(out_lines) + +def main(): + parser = argparse.ArgumentParser( + description="""Transform a .d file from Wine paths to normal paths""" + ) + parser.add_argument( + "d_file", + help="""Dependency file in""", + ) + parser.add_argument( + "d_file_out", + help="""Dependency file out""", + ) + args = parser.parse_args() + + output = import_d_file(args.d_file) + + with open(args.d_file_out, "w", encoding="UTF-8") as f: + f.write(output) + + +if __name__ == "__main__": + main() \ No newline at end of file