#
# Generated By: dol2asm
#

M153_TARGET := $(BUILD_DIR)/rel/d/a/b/d_a_b_yo.plf
M153_LDSCRIPT := $(BUILD_DIR)/rel/d/a/b/d_a_b_yo.lcf
M153_MAP := $(BUILD_DIR)/rel/d/a/b/d_a_b_yo.map

M153_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/b/d_a_b_yo/d_a_b_yo.cpp \

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

M153_LIBS := \

M153_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M153_TARGET): $(M153_O_FILES) $(M153_LIBS)
	@echo [153] creating $(M153_TARGET)
	@echo $(M153_LIBS) $(M153_O_FILES) > build/M153_ofiles
	@python3 tools/lcf.py rel 153 --output $(M153_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M153_LDFLAGS) -o $(M153_TARGET) @build/M153_ofiles

$(BUILD_DIR)/rel/d/a/b/d_a_b_yo/%.o: rel/d/a/b/d_a_b_yo/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_yo/%.d
	@echo [153] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M153_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
M153_D_FILES := $(M153_O_FILES:.o=.d)
$(M153_D_FILES):
include $(wildcard $(M153_D_FILES))
endif


