mirror of https://github.com/zeldaret/tp.git
76 lines
2.3 KiB
Makefile
76 lines
2.3 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 := \
|
|
-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
|
|
@mkdir -p $(@D)
|
|
@echo building... $<
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c
|
|
@$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(CFLAGS) $(LIBOS_A_CFLAGS) -c -o $@ $(basename $@).c
|
|
|