#
# Generated By: dol2asm
#

M706_TARGET := $(BUILD_DIR)/rel/d/a/d_a_startAndGoal.plf
M706_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_startAndGoal.lcf
M706_MAP := $(BUILD_DIR)/rel/d/a/d_a_startAndGoal.map

M706_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_startAndGoal/d_a_startAndGoal.cpp \

M706_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_startAndGoal/d_a_startAndGoal.o \

M706_LIBS := \

M706_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \
	-sym on \

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

$(M706_TARGET): $(M706_O_FILES) $(M706_LIBS)
	@echo [706] creating $(M706_TARGET)
	@echo $(M706_LIBS) $(M706_O_FILES) > build/M706_ofiles
	@python3 tools/lcf.py rel 706 --output $(M706_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M706_LDFLAGS) -o $(M706_TARGET) @build/M706_ofiles

$(BUILD_DIR)/rel/d/a/d_a_startAndGoal/%.o: rel/d/a/d_a_startAndGoal/%.cpp $(BUILD_DIR)/rel/d/a/d_a_startAndGoal/%.d
	@echo [706] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M706_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
M706_D_FILES := $(M706_O_FILES:.o=.d)
$(M706_D_FILES):
include $(wildcard $(M706_D_FILES))
endif


