#
# Generated By: dol2asm
#

M65_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_dn.plf
M65_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_dn.lcf
M65_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_dn.map

M65_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_dn/d_a_e_dn.cpp \

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

M65_LIBS := \

M65_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M65_TARGET): $(M65_O_FILES) $(M65_LIBS)
	@echo [ 65] creating $(M65_TARGET)
	@echo $(M65_LIBS) $(M65_O_FILES) > build/M65_ofiles
	@python3 tools/lcf.py rel 65 --output $(M65_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M65_LDFLAGS) -o $(M65_TARGET) @build/M65_ofiles

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


