#
# Generated By: dol2asm
#

M7_TARGET := $(BUILD_DIR)/rel/d/a/door/d_a_door_knob00.plf
M7_LDSCRIPT := $(BUILD_DIR)/rel/d/a/door/d_a_door_knob00.lcf
M7_MAP := $(BUILD_DIR)/rel/d/a/door/d_a_door_knob00.map

M7_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/door/d_a_door_knob00/d_a_door_knob00.cpp \

M7_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/door/d_a_door_knob00/d_a_door_knob00.o \

M7_LIBS := \

M7_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M7_TARGET): $(M7_O_FILES) $(M7_LIBS)
	@echo [  7] creating $(M7_TARGET)
	@echo $(M7_LIBS) $(M7_O_FILES) > build/M7_ofiles
	@python3 tools/lcf.py rel 7 --output $(M7_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M7_LDFLAGS) -o $(M7_TARGET) @build/M7_ofiles

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


