#
# Generated By: dol2asm
#

M551_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6TogeTrap.plf
M551_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6TogeTrap.lcf
M551_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6TogeTrap.map

M551_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_lv6TogeTrap/d_a_obj_lv6TogeTrap.cpp \

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

M551_LIBS := \

M551_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M551_TARGET): $(M551_O_FILES) $(M551_LIBS)
	@echo [551] creating $(M551_TARGET)
	@echo $(M551_LIBS) $(M551_O_FILES) > build/M551_ofiles
	@python3 tools/lcf.py rel 551 --output $(M551_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M551_LDFLAGS) -o $(M551_TARGET) @build/M551_ofiles

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


