mirror of https://github.com/zeldaret/tp.git
30 lines
653 B
Makefile
30 lines
653 B
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
LIBAI_A_CPP_FILES := \
|
|
libs/dolphin/ai/ai.cpp \
|
|
|
|
LIBAI_A_O_FILES := \
|
|
$(BUILD_DIR)/libs/dolphin/ai/ai.o \
|
|
|
|
LIBAI_A_CFLAGS := \
|
|
|
|
LIBAI_A_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
|
|
$(BUILD_DIR)/libai.a: $(LIBAI_A_O_FILES)
|
|
@echo linking... $(BUILD_DIR)/libai.a
|
|
@echo $(LIBAI_A_O_FILES) > build/LIBAI_A_ofiles
|
|
@$(LD) -xm l $(LIBAI_A_LDFLAGS) -o $(BUILD_DIR)/libai.a @build/LIBAI_A_ofiles
|
|
|
|
$(BUILD_DIR)/libs/dolphin/ai/%.o: libs/dolphin/ai/%.cpp
|
|
@mkdir -p $(@D)
|
|
@echo building... $<
|
|
@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp
|
|
@$(CC) $(CFLAGS) $(LIBAI_A_CFLAGS) -c -o $@ $@.iconv.cpp
|
|
|