#
# Generated By: dol2asm
#

M398_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ari.plf
M398_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ari.lcf
M398_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ari.map

M398_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_ari/d_a_obj_ari.cpp \

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

M398_LIBS := \

M398_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M398_TARGET): $(M398_O_FILES) $(M398_LIBS)
	@echo [398] creating $(M398_TARGET)
	@echo $(M398_LIBS) $(M398_O_FILES) > build/M398_ofiles
	@python3 tools/lcf.py rel 398 --output $(M398_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M398_LDFLAGS) -o $(M398_TARGET) @build/M398_ofiles

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


