#
# Generated By: dol2asm
#

M423_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cho.plf
M423_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cho.lcf
M423_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cho.map

M423_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_cho/d_a_obj_cho.cpp \

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

M423_LIBS := \

M423_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M423_TARGET): $(M423_O_FILES) $(M423_LIBS)
	@echo [423] creating $(M423_TARGET)
	@echo $(M423_LIBS) $(M423_O_FILES) > build/M423_ofiles
	@python3 tools/lcf.py rel 423 --output $(M423_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M423_LDFLAGS) -o $(M423_TARGET) @build/M423_ofiles

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


