#
# Generated By: dol2asm
#

M661_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tmoon.plf
M661_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tmoon.lcf
M661_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tmoon.map

M661_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_tmoon/d_a_obj_tmoon.cpp \

M661_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tmoon/d_a_obj_tmoon.o \

M661_LIBS := \

M661_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M661_TARGET): $(M661_O_FILES) $(M661_LIBS)
	@echo [661] creating $(M661_TARGET)
	@echo $(M661_LIBS) $(M661_O_FILES) > build/M661_ofiles
	@python3 tools/lcf.py rel 661 --output $(M661_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M661_LDFLAGS) -o $(M661_TARGET) @build/M661_ofiles

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


