#
# Generated By: dol2asm
#

M531_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4bridge.plf
M531_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4bridge.lcf
M531_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4bridge.map

M531_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_lv4bridge/unknown_translation_unit_bss.cpp \
	rel/d/a/obj/d_a_obj_lv4bridge/d_a_obj_lv4bridge.cpp \

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

M531_LIBS := \

M531_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M531_TARGET): $(M531_O_FILES) $(M531_LIBS)
	@echo [531] creating $(M531_TARGET)
	@echo $(M531_LIBS) $(M531_O_FILES) > build/M531_ofiles
	@python3 tools/lcf.py rel 531 --output $(M531_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M531_LDFLAGS) -o $(M531_TARGET) @build/M531_ofiles

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


