#
# Generated By: dol2asm
#

M565_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_magLift.plf
M565_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_magLift.lcf
M565_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_magLift.map

M565_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_magLift/d_a_obj_magLift.cpp \

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

M565_LIBS := \

M565_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M565_TARGET): $(M565_O_FILES) $(M565_LIBS)
	@echo [565] creating $(M565_TARGET)
	@echo $(M565_LIBS) $(M565_O_FILES) > build/M565_ofiles
	@python3 tools/lcf.py rel 565 --output $(M565_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M565_LDFLAGS) -o $(M565_TARGET) @build/M565_ofiles

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


