mirror of https://github.com/zeldaret/tp.git
34 lines
773 B
Makefile
34 lines
773 B
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
LIBEXI_A_CPP_FILES := \
|
|
libs/exi/EXIBios.c \
|
|
libs/exi/EXIUart.c \
|
|
|
|
LIBEXI_A_O_FILES := \
|
|
$(BUILD_DIR)/libs/exi/EXIBios.o \
|
|
$(BUILD_DIR)/libs/exi/EXIUart.o \
|
|
|
|
LIBEXI_A_CFLAGS := \
|
|
-O4,p \
|
|
-lang=c \
|
|
|
|
LIBEXI_A_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
|
|
$(BUILD_DIR)/libexi.a: $(LIBEXI_A_O_FILES)
|
|
@echo linking... $(BUILD_DIR)/libexi.a
|
|
@echo $(LIBEXI_A_O_FILES) > build/LIBEXI_A_ofiles
|
|
@$(LD) -xm l $(LIBEXI_A_LDFLAGS) -o $(BUILD_DIR)/libexi.a @build/LIBEXI_A_ofiles
|
|
|
|
$(BUILD_DIR)/libs/exi/%.o: libs/exi/%.c
|
|
@mkdir -p $(@D)
|
|
@echo building... $<
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c
|
|
@$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(CFLAGS) $(LIBEXI_A_CFLAGS) -c -o $@ $(basename $@).c
|
|
|