#
# Generated By: dol2asm
#

M413_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_boumato.plf
M413_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_boumato.lcf
M413_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_boumato.map

M413_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_boumato/d_a_obj_boumato.cpp \

M413_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_boumato/d_a_obj_boumato.o \

M413_LIBS := \

M413_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M413_TARGET): $(M413_O_FILES) $(M413_LIBS)
	@echo [413] creating $(M413_TARGET)
	@echo $(M413_LIBS) $(M413_O_FILES) > build/M413_ofiles
	@python3 tools/lcf.py rel 413 --output $(M413_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M413_LDFLAGS) -o $(M413_TARGET) @build/M413_ofiles

$(BUILD_DIR)/rel/d/a/obj/d_a_obj_boumato/%.o: rel/d/a/obj/d_a_obj_boumato/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_boumato/%.d
	@echo [413] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M413_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
M413_D_FILES := $(M413_O_FILES:.o=.d)
$(M413_D_FILES):
include $(wildcard $(M413_D_FILES))
endif


