#
# Generated By: dol2asm
#

M556_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6swturn.plf
M556_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6swturn.lcf
M556_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6swturn.map

M556_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_lv6swturn/unknown_translation_unit_bss.cpp \
	rel/d/a/obj/d_a_obj_lv6swturn/d_a_obj_lv6swturn.cpp \

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

M556_LIBS := \

M556_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M556_TARGET): $(M556_O_FILES) $(M556_LIBS)
	@echo [556] creating $(M556_TARGET)
	@echo $(M556_LIBS) $(M556_O_FILES) > build/M556_ofiles
	@python3 tools/lcf.py rel 556 --output $(M556_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M556_LDFLAGS) -o $(M556_TARGET) @build/M556_ofiles

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


