#
# Generated By: dol2asm
#

M405_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bed.plf
M405_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bed.lcf
M405_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bed.map

M405_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_bed/d_a_obj_bed.cpp \

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

M405_LIBS := \

M405_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M405_TARGET): $(M405_O_FILES) $(M405_LIBS)
	@echo [405] creating $(M405_TARGET)
	@echo $(M405_LIBS) $(M405_O_FILES) > build/M405_ofiles
	@python3 tools/lcf.py rel 405 --output $(M405_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M405_LDFLAGS) -o $(M405_TARGET) @build/M405_ofiles

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


