#
# Generated By: dol2asm
#

M89_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bhashi.plf
M89_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bhashi.lcf
M89_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bhashi.map

M89_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_bhashi/d_a_obj_bhashi.cpp \

M89_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bhashi/d_a_obj_bhashi.o \

M89_LIBS := \

M89_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M89_TARGET): $(M89_O_FILES) $(M89_LIBS)
	@echo [ 89] creating $(M89_TARGET)
	@echo $(M89_LIBS) $(M89_O_FILES) > build/M89_ofiles
	@python3 tools/lcf.py rel 89 --output $(M89_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M89_LDFLAGS) -o $(M89_TARGET) @build/M89_ofiles

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


