#
# Generated By: dol2asm
#

M99_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbacket.plf
M99_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbacket.lcf
M99_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbacket.map

M99_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_kbacket/d_a_obj_kbacket.cpp \

M99_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbacket/d_a_obj_kbacket.o \

M99_LIBS := \

M99_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M99_TARGET): $(M99_O_FILES) $(M99_LIBS)
	@echo [ 99] creating $(M99_TARGET)
	@echo $(M99_LIBS) $(M99_O_FILES) > build/M99_ofiles
	@python3 tools/lcf.py rel 99 --output $(M99_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M99_LDFLAGS) -o $(M99_TARGET) @build/M99_ofiles

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


