#
# Generated By: dol2asm
#

M520_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3WaterB.plf
M520_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3WaterB.lcf
M520_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3WaterB.map

M520_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_lv3WaterB/d_a_obj_lv3WaterB.cpp \

M520_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3WaterB/d_a_obj_lv3WaterB.o \

M520_LIBS := \

M520_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M520_TARGET): $(M520_O_FILES) $(M520_LIBS)
	@echo [520] creating $(M520_TARGET)
	@echo $(M520_LIBS) $(M520_O_FILES) > build/M520_ofiles
	@python3 tools/lcf.py rel 520 --output $(M520_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M520_LDFLAGS) -o $(M520_TARGET) @build/M520_ofiles

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


