#
# Generated By: dol2asm
#

M543_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5yiblltray.plf
M543_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5yiblltray.lcf
M543_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5yiblltray.map

M543_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_lv5yiblltray/d_a_obj_lv5yiblltray.cpp \

M543_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5yiblltray/d_a_obj_lv5yiblltray.o \

M543_LIBS := \

M543_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M543_TARGET): $(M543_O_FILES) $(M543_LIBS)
	@echo [543] creating $(M543_TARGET)
	@echo $(M543_LIBS) $(M543_O_FILES) > build/M543_ofiles
	@python3 tools/lcf.py rel 543 --output $(M543_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M543_LDFLAGS) -o $(M543_TARGET) @build/M543_ofiles

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


