#
# Generated By: dol2asm
#

M506_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kshutter.plf
M506_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kshutter.lcf
M506_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kshutter.map

M506_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_kshutter/unknown_translation_unit_bss.cpp \
	rel/d/a/obj/d_a_obj_kshutter/d_a_obj_kshutter.cpp \

M506_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kshutter/unknown_translation_unit_bss.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kshutter/d_a_obj_kshutter.o \

M506_LIBS := \

M506_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M506_TARGET): $(M506_O_FILES) $(M506_LIBS)
	@echo [506] creating $(M506_TARGET)
	@echo $(M506_LIBS) $(M506_O_FILES) > build/M506_ofiles
	@python3 tools/lcf.py rel 506 --output $(M506_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M506_LDFLAGS) -o $(M506_TARGET) @build/M506_ofiles

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


