#
# Generated By: dol2asm
#

M166_TARGET := $(BUILD_DIR)/rel/d/a/door/d_a_door_boss.plf
M166_LDSCRIPT := $(BUILD_DIR)/rel/d/a/door/d_a_door_boss.lcf
M166_MAP := $(BUILD_DIR)/rel/d/a/door/d_a_door_boss.map

M166_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/door/d_a_door_boss/d_a_door_boss.cpp \

M166_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/door/d_a_door_boss/d_a_door_boss.o \

M166_LIBS := \

M166_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M166_TARGET): $(M166_O_FILES) $(M166_LIBS)
	@echo [166] creating $(M166_TARGET)
	@echo $(M166_LIBS) $(M166_O_FILES) > build/M166_ofiles
	@python3 tools/lcf.py rel 166 --output $(M166_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M166_LDFLAGS) -o $(M166_TARGET) @build/M166_ofiles

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


