#
# Generated By: dol2asm
#

M618_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekizoa.plf
M618_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekizoa.lcf
M618_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekizoa.map

M618_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_sekizoa/d_a_obj_sekizoa.cpp \

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

M618_LIBS := \

M618_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M618_TARGET): $(M618_O_FILES) $(M618_LIBS)
	@echo [618] creating $(M618_TARGET)
	@echo $(M618_LIBS) $(M618_O_FILES) > build/M618_ofiles
	@python3 tools/lcf.py rel 618 --output $(M618_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M618_LDFLAGS) -o $(M618_TARGET) @build/M618_ofiles

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


