tp/libs/dolphin/ai/Makefile

41 lines
899 B
Makefile

#
# Generated By: dol2asm
#
LIBAI_A_CPP_FILES := \
libs/dolphin/ai/ai.c \
LIBAI_A_O_FILES := \
$(BUILD_DIR)/libs/dolphin/ai/ai.o \
LIBAI_A_CFLAGS := \
-Cpp_exceptions off \
-proc gekko \
-fp hard \
-nodefaults \
-str reuse \
-RTTI off \
-maxerrors 5 \
-enum int $(INCLUDES) \
-O4,p \
-lang=c \
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/%.c
@mkdir -p $(@D)
@echo building... $<
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c
@$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBAI_A_CFLAGS) -c -o $@ $(basename $@).c
@echo Frank is fixing $@
@$(PYTHON) $(FRANK) $@ $@ $@