#
# Generated By: dol2asm
#

M568_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_master_sword.plf
M568_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_master_sword.lcf
M568_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_master_sword.map

M568_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_master_sword/unknown_translation_unit_bss.cpp \
	rel/d/a/obj/d_a_obj_master_sword/d_a_obj_master_sword.cpp \

M568_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_master_sword/unknown_translation_unit_bss.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_master_sword/d_a_obj_master_sword.o \

M568_LIBS := \

M568_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M568_TARGET): $(M568_O_FILES) $(M568_LIBS)
	@echo [568] creating $(M568_TARGET)
	@echo $(M568_LIBS) $(M568_O_FILES) > build/M568_ofiles
	@python3 tools/lcf.py rel 568 --output $(M568_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M568_LDFLAGS) -o $(M568_TARGET) @build/M568_ofiles

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


