#
# Generated By: dol2asm
#

M435_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dan.plf
M435_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dan.lcf
M435_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dan.map

M435_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_dan/d_a_obj_dan.cpp \

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

M435_LIBS := \

M435_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M435_TARGET): $(M435_O_FILES) $(M435_LIBS)
	@echo [435] creating $(M435_TARGET)
	@echo $(M435_LIBS) $(M435_O_FILES) > build/M435_ofiles
	@python3 tools/lcf.py rel 435 --output $(M435_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M435_LDFLAGS) -o $(M435_TARGET) @build/M435_ofiles

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


