#
# Generated By: dol2asm
#

M477_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hfuta.plf
M477_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hfuta.lcf
M477_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hfuta.map

M477_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_hfuta/d_a_obj_hfuta.cpp \

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

M477_LIBS := \

M477_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M477_TARGET): $(M477_O_FILES) $(M477_LIBS)
	@echo [477] creating $(M477_TARGET)
	@echo $(M477_LIBS) $(M477_O_FILES) > build/M477_ofiles
	@python3 tools/lcf.py rel 477 --output $(M477_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M477_LDFLAGS) -o $(M477_TARGET) @build/M477_ofiles

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


