#
# Generated By: dol2asm
#

M666_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tombo.plf
M666_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tombo.lcf
M666_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tombo.map

M666_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_tombo/d_a_obj_tombo.cpp \

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

M666_LIBS := \

M666_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M666_TARGET): $(M666_O_FILES) $(M666_LIBS)
	@echo [666] creating $(M666_TARGET)
	@echo $(M666_LIBS) $(M666_O_FILES) > build/M666_ofiles
	@python3 tools/lcf.py rel 666 --output $(M666_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M666_LDFLAGS) -o $(M666_TARGET) @build/M666_ofiles

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


