#
# Generated By: dol2asm
#

M168_TARGET := $(BUILD_DIR)/rel/d/a/door/d_a_door_mbossL1.plf
M168_LDSCRIPT := $(BUILD_DIR)/rel/d/a/door/d_a_door_mbossL1.lcf
M168_MAP := $(BUILD_DIR)/rel/d/a/door/d_a_door_mbossL1.map

M168_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/door/d_a_door_mbossL1/unknown_translation_unit_bss.cpp \
	rel/d/a/door/d_a_door_mbossL1/d_a_door_mbossL1.cpp \

M168_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/door/d_a_door_mbossL1/unknown_translation_unit_bss.o \
	$(BUILD_DIR)/rel/d/a/door/d_a_door_mbossL1/d_a_door_mbossL1.o \

M168_LIBS := \

M168_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M168_TARGET): $(M168_O_FILES) $(M168_LIBS)
	@echo [168] creating $(M168_TARGET)
	@echo $(M168_LIBS) $(M168_O_FILES) > build/M168_ofiles
	@python3 tools/lcf.py rel 168 --output $(M168_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M168_LDFLAGS) -o $(M168_TARGET) @build/M168_ofiles

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


