#
# Generated By: dol2asm
#

M653_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tatigi.plf
M653_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tatigi.lcf
M653_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tatigi.map

M653_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_tatigi/d_a_obj_tatigi.cpp \

M653_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tatigi/d_a_obj_tatigi.o \

M653_LIBS := \

M653_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M653_TARGET): $(M653_O_FILES) $(M653_LIBS)
	@echo [653] creating $(M653_TARGET)
	@echo $(M653_LIBS) $(M653_O_FILES) > build/M653_ofiles
	@python3 tools/lcf.py rel 653 --output $(M653_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M653_LDFLAGS) -o $(M653_TARGET) @build/M653_ofiles

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


