#
# Generated By: dol2asm
#

M559_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7bridge.plf
M559_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7bridge.lcf
M559_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv7bridge.map

M559_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_lv7bridge/unknown_translation_unit_bss.cpp \
	rel/d/a/obj/d_a_obj_lv7bridge/d_a_obj_lv7bridge.cpp \

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

M559_LIBS := \

M559_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M559_TARGET): $(M559_O_FILES) $(M559_LIBS)
	@echo [559] creating $(M559_TARGET)
	@echo $(M559_LIBS) $(M559_O_FILES) > build/M559_ofiles
	@python3 tools/lcf.py rel 559 --output $(M559_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M559_LDFLAGS) -o $(M559_TARGET) @build/M559_ofiles

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


