#
# Generated By: dol2asm
#

M113_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stoneMark.plf
M113_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stoneMark.lcf
M113_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stoneMark.map

M113_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_stoneMark/d_a_obj_stoneMark.cpp \

M113_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stoneMark/d_a_obj_stoneMark.o \

M113_LIBS := \

M113_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M113_TARGET): $(M113_O_FILES) $(M113_LIBS)
	@echo [113] creating $(M113_TARGET)
	@echo $(M113_LIBS) $(M113_O_FILES) > build/M113_ofiles
	@python3 tools/lcf.py rel 113 --output $(M113_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M113_LDFLAGS) -o $(M113_TARGET) @build/M113_ofiles

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


