mirror of https://github.com/zeldaret/tp.git
40 lines
1012 B
Makefile
40 lines
1012 B
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
LIBMTX_A_CPP_FILES := \
|
|
libs/dolphin/mtx/mtx.c \
|
|
libs/dolphin/mtx/mtxvec.c \
|
|
libs/dolphin/mtx/mtx44.c \
|
|
libs/dolphin/mtx/vec.c \
|
|
libs/dolphin/mtx/quat.c \
|
|
|
|
LIBMTX_A_O_FILES := \
|
|
$(BUILD_DIR)/libs/dolphin/mtx/mtx.o \
|
|
$(BUILD_DIR)/libs/dolphin/mtx/mtxvec.o \
|
|
$(BUILD_DIR)/libs/dolphin/mtx/mtx44.o \
|
|
$(BUILD_DIR)/libs/dolphin/mtx/vec.o \
|
|
$(BUILD_DIR)/libs/dolphin/mtx/quat.o \
|
|
|
|
LIBMTX_A_CFLAGS := \
|
|
-O4,p \
|
|
-lang=c \
|
|
|
|
LIBMTX_A_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
|
|
$(BUILD_DIR)/libmtx.a: $(LIBMTX_A_O_FILES)
|
|
@echo linking... $(BUILD_DIR)/libmtx.a
|
|
@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
|
|
@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
|
|
|