#
# Generated By: dol2asm
#

M71_TARGET := $(BUILD_DIR)/rel/d/a/d_a_econt.plf
M71_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_econt.lcf
M71_MAP := $(BUILD_DIR)/rel/d/a/d_a_econt.map

M71_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_econt/unknown_translation_unit_bss.cpp \
	rel/d/a/d_a_econt/d_a_econt.cpp \

M71_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_econt/unknown_translation_unit_bss.o \
	$(BUILD_DIR)/rel/d/a/d_a_econt/d_a_econt.o \

M71_LIBS := \

M71_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M71_TARGET): $(M71_O_FILES) $(M71_LIBS)
	@echo [ 71] creating $(M71_TARGET)
	@echo $(M71_LIBS) $(M71_O_FILES) > build/M71_ofiles
	@python3 tools/lcf.py rel 71 --output $(M71_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M71_LDFLAGS) -o $(M71_TARGET) @build/M71_ofiles

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


