#
# Generated By: dol2asm
#

M453_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fw.plf
M453_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fw.lcf
M453_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fw.map

M453_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_fw/d_a_obj_fw.cpp \

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

M453_LIBS := \

M453_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M453_TARGET): $(M453_O_FILES) $(M453_LIBS)
	@echo [453] creating $(M453_TARGET)
	@echo $(M453_LIBS) $(M453_O_FILES) > build/M453_ofiles
	@python3 tools/lcf.py rel 453 --output $(M453_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M453_LDFLAGS) -o $(M453_TARGET) @build/M453_ofiles

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


