#
# Generated By: dol2asm
#

M98_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kanban2.plf
M98_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kanban2.lcf
M98_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kanban2.map

M98_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_kanban2/d_a_obj_kanban2.cpp \

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

M98_LIBS := \

M98_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M98_TARGET): $(M98_O_FILES) $(M98_LIBS)
	@echo [ 98] creating $(M98_TARGET)
	@echo $(M98_LIBS) $(M98_O_FILES) > build/M98_ofiles
	@python3 tools/lcf.py rel 98 --output $(M98_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M98_LDFLAGS) -o $(M98_TARGET) @build/M98_ofiles

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


