#
# Generated By: dol2asm
#

M259_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_zs.plf
M259_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_zs.lcf
M259_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_zs.map

M259_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_zs/d_a_e_zs.cpp \

M259_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_zs/d_a_e_zs.o \

M259_LIBS := \

M259_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M259_TARGET): $(M259_O_FILES) $(M259_LIBS)
	@echo [259] creating $(M259_TARGET)
	@echo $(M259_LIBS) $(M259_O_FILES) > build/M259_ofiles
	@python3 tools/lcf.py rel 259 --output $(M259_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M259_LDFLAGS) -o $(M259_TARGET) @build/M259_ofiles

$(BUILD_DIR)/rel/d/a/e/d_a_e_zs/%.o: rel/d/a/e/d_a_e_zs/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_zs/%.d
	@echo [259] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M259_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
M259_D_FILES := $(M259_O_FILES:.o=.d)
$(M259_D_FILES):
include $(wildcard $(M259_D_FILES))
endif


