#
# Generated By: dol2asm
#

M420_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cdoor.plf
M420_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cdoor.lcf
M420_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cdoor.map

M420_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_cdoor/d_a_obj_cdoor.cpp \

M420_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cdoor/d_a_obj_cdoor.o \

M420_LIBS := \

M420_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M420_TARGET): $(M420_O_FILES) $(M420_LIBS)
	@echo [420] creating $(M420_TARGET)
	@echo $(M420_LIBS) $(M420_O_FILES) > build/M420_ofiles
	@python3 tools/lcf.py rel 420 --output $(M420_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M420_LDFLAGS) -o $(M420_TARGET) @build/M420_ofiles

$(BUILD_DIR)/rel/d/a/obj/d_a_obj_cdoor/%.o: rel/d/a/obj/d_a_obj_cdoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_cdoor/%.d
	@echo [420] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M420_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
M420_D_FILES := $(M420_O_FILES:.o=.d)
$(M420_D_FILES):
include $(wildcard $(M420_D_FILES))
endif


