#
# Generated By: dol2asm
#

M463_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra2.plf
M463_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra2.lcf
M463_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra2.map

M463_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_gra2/d_a_obj_gra2.cpp \

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

M463_LIBS := \

M463_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M463_TARGET): $(M463_O_FILES) $(M463_LIBS)
	@echo [463] creating $(M463_TARGET)
	@echo $(M463_LIBS) $(M463_O_FILES) > build/M463_ofiles
	@python3 tools/lcf.py rel 463 --output $(M463_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M463_LDFLAGS) -o $(M463_TARGET) @build/M463_ofiles

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


