#
# Generated By: dol2asm
#

M460_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gm.plf
M460_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gm.lcf
M460_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gm.map

M460_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_gm/d_a_obj_gm.cpp \

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

M460_LIBS := \

M460_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M460_TARGET): $(M460_O_FILES) $(M460_LIBS)
	@echo [460] creating $(M460_TARGET)
	@echo $(M460_LIBS) $(M460_O_FILES) > build/M460_ofiles
	@python3 tools/lcf.py rel 460 --output $(M460_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M460_LDFLAGS) -o $(M460_TARGET) @build/M460_ofiles

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


