summaryrefslogtreecommitdiff
path: root/libs/JSystem/JStudio
diff options
context:
space:
mode:
authorJcw87 <Jcw87@users.noreply.github.com>2023-01-06 03:42:56 -0800
committerJcw87 <Jcw87@users.noreply.github.com>2023-01-06 03:52:59 -0800
commitdd984e3b8e9da4251f4c0afea305fb235bc5ff54 (patch)
tree0576cc627ce755031c482a1ac176bf45ff9f2dfe /libs/JSystem/JStudio
parent5aa83db436135272bcb51ec6824ee3c4275285e4 (diff)
Generate makefiles from dol2asm
Diffstat (limited to 'libs/JSystem/JStudio')
-rw-r--r--libs/JSystem/JStudio/JStudio/Makefile11
-rw-r--r--libs/JSystem/JStudio/JStudio_JAudio2/Makefile11
-rw-r--r--libs/JSystem/JStudio/JStudio_JParticle/Makefile11
-rw-r--r--libs/JSystem/JStudio/JStudio_JStage/Makefile11
4 files changed, 36 insertions, 8 deletions
diff --git a/libs/JSystem/JStudio/JStudio/Makefile b/libs/JSystem/JStudio/JStudio/Makefile
index babd1d84de..5a0414ecda 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 5ec8a7cd29..1ced071d60 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 b8db51d5b9..20244d3886 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 4c48f6ec89..315f641ff7 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