#
# Generated By: dol2asm
#

M521_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3saka00.plf
M521_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3saka00.lcf
M521_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3saka00.map

M521_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_lv3saka00/d_a_obj_lv3saka00.cpp \

M521_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3saka00/d_a_obj_lv3saka00.o \

M521_LIBS := \

M521_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M521_TARGET): $(M521_O_FILES) $(M521_LIBS)
	@echo [521] creating $(M521_TARGET)
	@echo $(M521_LIBS) $(M521_O_FILES) > build/M521_ofiles
	@python3 tools/lcf.py rel 521 --output $(M521_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M521_LDFLAGS) -o $(M521_TARGET) @build/M521_ofiles

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


