#
# Generated By: dol2asm
#

M25_TARGET := $(BUILD_DIR)/rel/d/a/d_a_set_bgobj.plf
M25_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_set_bgobj.lcf
M25_MAP := $(BUILD_DIR)/rel/d/a/d_a_set_bgobj.map

M25_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_set_bgobj/d_a_set_bgobj.cpp \

M25_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_set_bgobj/d_a_set_bgobj.o \

M25_LIBS := \

M25_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M25_TARGET): $(M25_O_FILES) $(M25_LIBS)
	@echo [ 25] creating $(M25_TARGET)
	@echo $(M25_LIBS) $(M25_O_FILES) > build/M25_ofiles
	@python3 tools/lcf.py rel 25 --output $(M25_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M25_LDFLAGS) -o $(M25_TARGET) @build/M25_ofiles

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


