#
# Generated By: dol2asm
#

M8_TARGET := $(BUILD_DIR)/rel/d/a/door/d_a_door_shutter.plf
M8_LDSCRIPT := $(BUILD_DIR)/rel/d/a/door/d_a_door_shutter.lcf
M8_MAP := $(BUILD_DIR)/rel/d/a/door/d_a_door_shutter.map

M8_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/door/d_a_door_shutter/d_a_door_shutter.cpp \

M8_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/door/d_a_door_shutter/d_a_door_shutter.o \

M8_LIBS := \

M8_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M8_TARGET): $(M8_O_FILES) $(M8_LIBS)
	@echo [  8] creating $(M8_TARGET)
	@echo $(M8_LIBS) $(M8_O_FILES) > build/M8_ofiles
	@python3 tools/lcf.py rel 8 --output $(M8_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M8_LDFLAGS) -o $(M8_TARGET) @build/M8_ofiles

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


