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