#
# Generated By: dol2asm
#

M105_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_magne_arm.plf
M105_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_magne_arm.lcf
M105_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_magne_arm.map

M105_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_magne_arm/d_a_obj_magne_arm.cpp \

M105_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_magne_arm/d_a_obj_magne_arm.o \

M105_LIBS := \

M105_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M105_TARGET): $(M105_O_FILES) $(M105_LIBS)
	@echo [105] creating $(M105_TARGET)
	@echo $(M105_LIBS) $(M105_O_FILES) > build/M105_ofiles
	@python3 tools/lcf.py rel 105 --output $(M105_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M105_LDFLAGS) -o $(M105_TARGET) @build/M105_ofiles

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


