#
# Generated By: dol2asm
#

M473_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hata.plf
M473_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hata.lcf
M473_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hata.map

M473_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_hata/d_a_obj_hata.cpp \

M473_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hata/d_a_obj_hata.o \

M473_LIBS := \

M473_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M473_TARGET): $(M473_O_FILES) $(M473_LIBS)
	@echo [473] creating $(M473_TARGET)
	@echo $(M473_LIBS) $(M473_O_FILES) > build/M473_ofiles
	@python3 tools/lcf.py rel 473 --output $(M473_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M473_LDFLAGS) -o $(M473_TARGET) @build/M473_ofiles

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


