#
# Generated By: dol2asm
#

M393_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Lv5Key.plf
M393_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Lv5Key.lcf
M393_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Lv5Key.map

M393_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_Lv5Key/d_a_obj_Lv5Key.cpp \

M393_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_Lv5Key/d_a_obj_Lv5Key.o \

M393_LIBS := \

M393_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M393_TARGET): $(M393_O_FILES) $(M393_LIBS)
	@echo [393] creating $(M393_TARGET)
	@echo $(M393_LIBS) $(M393_O_FILES) > build/M393_ofiles
	@python3 tools/lcf.py rel 393 --output $(M393_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M393_LDFLAGS) -o $(M393_TARGET) @build/M393_ofiles

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


