#
# Generated By: dol2asm
#

M488_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kabuto.plf
M488_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kabuto.lcf
M488_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kabuto.map

M488_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_kabuto/d_a_obj_kabuto.cpp \

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

M488_LIBS := \

M488_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M488_TARGET): $(M488_O_FILES) $(M488_LIBS)
	@echo [488] creating $(M488_TARGET)
	@echo $(M488_LIBS) $(M488_O_FILES) > build/M488_ofiles
	@python3 tools/lcf.py rel 488 --output $(M488_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M488_LDFLAGS) -o $(M488_TARGET) @build/M488_ofiles

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


