#
# Generated By: dol2asm
#

M660_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tks.plf
M660_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tks.lcf
M660_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tks.map

M660_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_tks/d_a_obj_tks.cpp \

M660_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tks/d_a_obj_tks.o \

M660_LIBS := \

M660_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M660_TARGET): $(M660_O_FILES) $(M660_LIBS)
	@echo [660] creating $(M660_TARGET)
	@echo $(M660_LIBS) $(M660_O_FILES) > build/M660_ofiles
	@python3 tools/lcf.py rel 660 --output $(M660_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M660_LDFLAGS) -o $(M660_TARGET) @build/M660_ofiles

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


