mirror of
https://github.com/zeldaret/tp
synced 2026-07-08 06:30:32 -04:00
Generate makefiles from dol2asm
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user