From dd984e3b8e9da4251f4c0afea305fb235bc5ff54 Mon Sep 17 00:00:00 2001 From: Jcw87 Date: Fri, 6 Jan 2023 03:42:56 -0800 Subject: Generate makefiles from dol2asm --- libs/JSystem/JMessage/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'libs/JSystem/JMessage/Makefile') diff --git a/libs/JSystem/JMessage/Makefile b/libs/JSystem/JMessage/Makefile index f5755e34f1..4c8687e0e4 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 -- cgit v1.2.3