#
# Generated By: dol2asm
#

M679_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterGate.plf
M679_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterGate.lcf
M679_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterGate.map

M679_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_waterGate/d_a_obj_waterGate.cpp \

M679_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_waterGate/d_a_obj_waterGate.o \

M679_LIBS := \

M679_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M679_TARGET): $(M679_O_FILES) $(M679_LIBS)
	@echo [679] creating $(M679_TARGET)
	@echo $(M679_LIBS) $(M679_O_FILES) > build/M679_ofiles
	@python3 tools/lcf.py rel 679 --output $(M679_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M679_LDFLAGS) -o $(M679_TARGET) @build/M679_ofiles

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


