#
# Generated By: dol2asm
#

M701_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zra_rock.plf
M701_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zra_rock.lcf
M701_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zra_rock.map

M701_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_zra_rock/d_a_obj_zra_rock.cpp \

M701_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zra_rock/d_a_obj_zra_rock.o \

M701_LIBS := \

M701_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M701_TARGET): $(M701_O_FILES) $(M701_LIBS)
	@echo [701] creating $(M701_TARGET)
	@echo $(M701_LIBS) $(M701_O_FILES) > build/M701_ofiles
	@python3 tools/lcf.py rel 701 --output $(M701_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M701_LDFLAGS) -o $(M701_TARGET) @build/M701_ofiles

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


