#
# Generated By: dol2asm
#

M93_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_digplace.plf
M93_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_digplace.lcf
M93_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_digplace.map

M93_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_digplace/d_a_obj_digplace.cpp \

M93_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_digplace/d_a_obj_digplace.o \

M93_LIBS := \

M93_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M93_TARGET): $(M93_O_FILES) $(M93_LIBS)
	@echo [ 93] creating $(M93_TARGET)
	@echo $(M93_LIBS) $(M93_O_FILES) > build/M93_ofiles
	@python3 tools/lcf.py rel 93 --output $(M93_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M93_LDFLAGS) -o $(M93_TARGET) @build/M93_ofiles

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


