mirror of https://github.com/zeldaret/tp.git
93 lines
2.7 KiB
Makefile
93 lines
2.7 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
LIBOS_A_CPP_FILES := \
|
|
libs/dolphin/os/OS.c \
|
|
libs/dolphin/os/OSAlarm.c \
|
|
libs/dolphin/os/OSAlloc.c \
|
|
libs/dolphin/os/OSArena.c \
|
|
libs/dolphin/os/OSAudioSystem.c \
|
|
libs/dolphin/os/OSCache.c \
|
|
libs/dolphin/os/OSContext.c \
|
|
libs/dolphin/os/OSError.c \
|
|
libs/dolphin/os/OSExec.c \
|
|
libs/dolphin/os/OSFont.c \
|
|
libs/dolphin/os/OSInterrupt.c \
|
|
libs/dolphin/os/OSLink.c \
|
|
libs/dolphin/os/OSMessage.c \
|
|
libs/dolphin/os/OSMemory.c \
|
|
libs/dolphin/os/OSMutex.c \
|
|
libs/dolphin/os/OSReboot.c \
|
|
libs/dolphin/os/OSReset.c \
|
|
libs/dolphin/os/OSResetSW.c \
|
|
libs/dolphin/os/OSRtc.c \
|
|
libs/dolphin/os/OSSync.c \
|
|
libs/dolphin/os/OSThread.c \
|
|
libs/dolphin/os/OSTime.c \
|
|
libs/dolphin/os/__ppc_eabi_init.c \
|
|
|
|
LIBOS_A_O_FILES := \
|
|
$(BUILD_DIR)/libs/dolphin/os/OS.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSAlarm.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSAlloc.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSArena.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSAudioSystem.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSCache.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSContext.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSError.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSExec.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSFont.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSInterrupt.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSLink.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSMessage.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSMemory.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSMutex.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSReboot.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSReset.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSResetSW.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSRtc.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSSync.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSThread.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSTime.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/__ppc_eabi_init.o \
|
|
|
|
LIBOS_A_CFLAGS := \
|
|
-Cpp_exceptions off \
|
|
-proc gekko \
|
|
-fp hard \
|
|
-nodefaults \
|
|
-str reuse \
|
|
-RTTI off \
|
|
-maxerrors 5 \
|
|
-enum int $(INCLUDES) \
|
|
-O4,p \
|
|
-lang=c \
|
|
|
|
LIBOS_A_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
|
|
$(BUILD_DIR)/libos.a: $(LIBOS_A_O_FILES)
|
|
@echo linking... $(BUILD_DIR)/libos.a
|
|
@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/%.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) $(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
|
|
|