#
# Generated By: dol2asm
#

M557_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7BsGate.plf
M557_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7BsGate.lcf
M557_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7BsGate.map

M557_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_lv7BsGate/d_a_obj_lv7BsGate.cpp \

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

M557_LIBS := \

M557_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M557_TARGET): $(M557_O_FILES) $(M557_LIBS)
	@echo [557] creating $(M557_TARGET)
	@echo $(M557_LIBS) $(M557_O_FILES) > build/M557_ofiles
	@python3 tools/lcf.py rel 557 --output $(M557_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M557_LDFLAGS) -o $(M557_TARGET) @build/M557_ofiles

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


