#
# Generated By: dol2asm
#

M141_TARGET := $(BUILD_DIR)/rel/d/a/b/d_a_b_dre.plf
M141_LDSCRIPT := $(BUILD_DIR)/rel/d/a/b/d_a_b_dre.lcf
M141_MAP := $(BUILD_DIR)/rel/d/a/b/d_a_b_dre.map

M141_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/b/d_a_b_dre/d_a_b_dre.cpp \

M141_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/b/d_a_b_dre/d_a_b_dre.o \

M141_LIBS := \

M141_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

M141_LDFLAGS := \
	-nodefaults \
	-fp hard \
	-proc gekko \
	-linkmode moreram \
	-sdata 0 \
	-sdata2 0 \
	-m _prolog \
	-lcf $(M141_LDSCRIPT) \
	-unused -map $(M141_MAP) \
	-w off \

$(M141_TARGET): $(M141_O_FILES) $(M141_LIBS)
	@echo [141] creating $(M141_TARGET)
	@echo $(M141_LIBS) $(M141_O_FILES) > build/M141_ofiles
	@python3 tools/lcf.py rel 141 --output $(M141_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M141_LDFLAGS) -o $(M141_TARGET) @build/M141_ofiles

$(BUILD_DIR)/rel/d/a/b/d_a_b_dre/%.o: rel/d/a/b/d_a_b_dre/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_dre/%.d
	@echo [141] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M141_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp
	@if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi

ifndef DISABLE_DEPS
M141_D_FILES := $(M141_O_FILES:.o=.d)
$(M141_D_FILES):
include $(wildcard $(M141_D_FILES))
endif


