#
# Generated By: dol2asm
#

M683_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_wdStick.plf
M683_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_wdStick.lcf
M683_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_wdStick.map

M683_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_wdStick/d_a_obj_wdStick.cpp \

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

M683_LIBS := \

M683_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M683_TARGET): $(M683_O_FILES) $(M683_LIBS)
	@echo [683] creating $(M683_TARGET)
	@echo $(M683_LIBS) $(M683_O_FILES) > build/M683_ofiles
	@python3 tools/lcf.py rel 683 --output $(M683_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M683_LDFLAGS) -o $(M683_TARGET) @build/M683_ofiles

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


