#
# Generated By: dol2asm
#

M669_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tp.plf
M669_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tp.lcf
M669_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_tp.map

M669_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_tp/d_a_obj_tp.cpp \

M669_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_tp/d_a_obj_tp.o \

M669_LIBS := \

M669_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M669_TARGET): $(M669_O_FILES) $(M669_LIBS)
	@echo [669] creating $(M669_TARGET)
	@echo $(M669_LIBS) $(M669_O_FILES) > build/M669_ofiles
	@python3 tools/lcf.py rel 669 --output $(M669_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M669_LDFLAGS) -o $(M669_TARGET) @build/M669_ofiles

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


