#
# Generated By: dol2asm
#

M167_TARGET := $(BUILD_DIR)/rel/d/a/door/d_a_door_bossL5.plf
M167_LDSCRIPT := $(BUILD_DIR)/rel/d/a/door/d_a_door_bossL5.lcf
M167_MAP := $(BUILD_DIR)/rel/d/a/door/d_a_door_bossL5.map

M167_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/door/d_a_door_bossL5/d_a_door_bossL5.cpp \

M167_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/door/d_a_door_bossL5/d_a_door_bossL5.o \

M167_LIBS := \

M167_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M167_TARGET): $(M167_O_FILES) $(M167_LIBS)
	@echo [167] creating $(M167_TARGET)
	@echo $(M167_LIBS) $(M167_O_FILES) > build/M167_ofiles
	@python3 tools/lcf.py rel 167 --output $(M167_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M167_LDFLAGS) -o $(M167_TARGET) @build/M167_ofiles

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


