#
# Generated By: dol2asm
#

M672_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_udoor.plf
M672_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_udoor.lcf
M672_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_udoor.map

M672_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_udoor/d_a_obj_udoor.cpp \

M672_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_udoor/d_a_obj_udoor.o \

M672_LIBS := \

M672_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M672_TARGET): $(M672_O_FILES) $(M672_LIBS)
	@echo [672] creating $(M672_TARGET)
	@echo $(M672_LIBS) $(M672_O_FILES) > build/M672_ofiles
	@python3 tools/lcf.py rel 672 --output $(M672_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M672_LDFLAGS) -o $(M672_TARGET) @build/M672_ofiles

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


