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