mirror of https://github.com/zeldaret/tp.git
38 lines
952 B
Makefile
38 lines
952 B
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
LIBMTX_A_CPP_FILES := \
|
|
libs/dolphin/mtx/mtx.cpp \
|
|
libs/dolphin/mtx/mtxvec.cpp \
|
|
libs/dolphin/mtx/mtx44.cpp \
|
|
libs/dolphin/mtx/vec.cpp \
|
|
libs/dolphin/mtx/quat.cpp \
|
|
|
|
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 := \
|
|
|
|
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/%.cpp
|
|
@mkdir -p $(@D)
|
|
@echo building... $<
|
|
@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp
|
|
@$(CC) $(CFLAGS) $(LIBMTX_A_CFLAGS) -c -o $@ $@.iconv.cpp
|
|
|