#
# Generated By: dol2asm
#

M689_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_window.plf
M689_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_window.lcf
M689_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_window.map

M689_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_window/d_a_obj_window.cpp \

M689_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_window/d_a_obj_window.o \

M689_LIBS := \

M689_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M689_TARGET): $(M689_O_FILES) $(M689_LIBS)
	@echo [689] creating $(M689_TARGET)
	@echo $(M689_LIBS) $(M689_O_FILES) > build/M689_ofiles
	@python3 tools/lcf.py rel 689 --output $(M689_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M689_LDFLAGS) -o $(M689_TARGET) @build/M689_ofiles

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


