#
# Generated By: dol2asm
#

M9_TARGET := $(BUILD_DIR)/rel/d/a/door/d_a_door_spiral.plf
M9_LDSCRIPT := $(BUILD_DIR)/rel/d/a/door/d_a_door_spiral.lcf
M9_MAP := $(BUILD_DIR)/rel/d/a/door/d_a_door_spiral.map

M9_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/door/d_a_door_spiral/d_a_door_spiral.cpp \

M9_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/door/d_a_door_spiral/d_a_door_spiral.o \

M9_LIBS := \

M9_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M9_TARGET): $(M9_O_FILES) $(M9_LIBS)
	@echo [  9] creating $(M9_TARGET)
	@echo $(M9_LIBS) $(M9_O_FILES) > build/M9_ofiles
	@python3 tools/lcf.py rel 9 --output $(M9_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M9_LDFLAGS) -o $(M9_TARGET) @build/M9_ofiles

$(BUILD_DIR)/rel/d/a/door/d_a_door_spiral/%.o: rel/d/a/door/d_a_door_spiral/%.cpp $(BUILD_DIR)/rel/d/a/door/d_a_door_spiral/%.d
	@echo [  9] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M9_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
M9_D_FILES := $(M9_O_FILES:.o=.d)
$(M9_D_FILES):
include $(wildcard $(M9_D_FILES))
endif


