#
# Generated By: dol2asm
#

M414_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_brg.plf
M414_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_brg.lcf
M414_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_brg.map

M414_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_brg/d_a_obj_brg.cpp \

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

M414_LIBS := \

M414_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M414_TARGET): $(M414_O_FILES) $(M414_LIBS)
	@echo [414] creating $(M414_TARGET)
	@echo $(M414_LIBS) $(M414_O_FILES) > build/M414_ofiles
	@python3 tools/lcf.py rel 414 --output $(M414_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M414_LDFLAGS) -o $(M414_TARGET) @build/M414_ofiles

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


