#
# Generated By: dol2asm
#

M472_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hasu2.plf
M472_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hasu2.lcf
M472_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hasu2.map

M472_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_hasu2/d_a_obj_hasu2.cpp \

M472_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hasu2/d_a_obj_hasu2.o \

M472_LIBS := \

M472_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M472_TARGET): $(M472_O_FILES) $(M472_LIBS)
	@echo [472] creating $(M472_TARGET)
	@echo $(M472_LIBS) $(M472_O_FILES) > build/M472_ofiles
	@python3 tools/lcf.py rel 472 --output $(M472_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M472_LDFLAGS) -o $(M472_TARGET) @build/M472_ofiles

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


