mirror of https://github.com/zeldaret/tp.git
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M61_TARGET := $(BUILD_DIR)/rel/d/a/d_a_canoe.plf
|
|
M61_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_canoe.lcf
|
|
M61_MAP := $(BUILD_DIR)/rel/d/a/d_a_canoe.map
|
|
|
|
M61_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/d_a_canoe/d_a_canoe.cpp \
|
|
|
|
M61_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/d_a_canoe/d_a_canoe.o \
|
|
|
|
M61_LIBS := \
|
|
|
|
M61_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M61_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M61_LDSCRIPT) \
|
|
-unused -map $(M61_MAP) \
|
|
-w off \
|
|
|
|
$(M61_TARGET): $(M61_O_FILES) $(M61_LIBS)
|
|
@echo [ 61] creating $(M61_TARGET)
|
|
@echo $(M61_LIBS) $(M61_O_FILES) > build/M61_ofiles
|
|
@python3 tools/lcf.py rel 61 --output $(M61_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M61_LDFLAGS) -o $(M61_TARGET) @build/M61_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/d_a_canoe/%.o: rel/d/a/d_a_canoe/%.cpp
|
|
@echo [ 61] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M61_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|