#
# Generated By: dol2asm
#

M681_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterfall.plf
M681_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterfall.lcf
M681_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterfall.map

M681_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_waterfall/d_a_obj_waterfall.cpp \

M681_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterfall/d_a_obj_waterfall.o \

M681_LIBS := \

M681_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M681_TARGET): $(M681_O_FILES) $(M681_LIBS)
	@echo [681] creating $(M681_TARGET)
	@echo $(M681_LIBS) $(M681_O_FILES) > build/M681_ofiles
	@python3 tools/lcf.py rel 681 --output $(M681_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M681_LDFLAGS) -o $(M681_TARGET) @build/M681_ofiles

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


