#
# Generated By: dol2asm
#

M18_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_carry.plf
M18_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_carry.lcf
M18_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_carry.map

M18_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_carry/d_a_obj_carry.cpp \

M18_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_carry/d_a_obj_carry.o \

M18_LIBS := \

M18_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M18_TARGET): $(M18_O_FILES) $(M18_LIBS)
	@echo [ 18] creating $(M18_TARGET)
	@echo $(M18_LIBS) $(M18_O_FILES) > build/M18_ofiles
	@python3 tools/lcf.py rel 18 --output $(M18_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M18_LDFLAGS) -o $(M18_TARGET) @build/M18_ofiles

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


