#
# Generated By: dol2asm
#

M64_TARGET := $(BUILD_DIR)/rel/d/a/door/d_a_door_bossL1.plf
M64_LDSCRIPT := $(BUILD_DIR)/rel/d/a/door/d_a_door_bossL1.lcf
M64_MAP := $(BUILD_DIR)/rel/d/a/door/d_a_door_bossL1.map

M64_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/door/d_a_door_bossL1/d_a_door_bossL1.cpp \

M64_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/door/d_a_door_bossL1/d_a_door_bossL1.o \

M64_LIBS := \

M64_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M64_TARGET): $(M64_O_FILES) $(M64_LIBS)
	@echo [ 64] creating $(M64_TARGET)
	@echo $(M64_LIBS) $(M64_O_FILES) > build/M64_ofiles
	@python3 tools/lcf.py rel 64 --output $(M64_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M64_LDFLAGS) -o $(M64_TARGET) @build/M64_ofiles

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


