#
# Generated By: dol2asm
#

M514_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lp.plf
M514_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lp.lcf
M514_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lp.map

M514_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_lp/d_a_obj_lp.cpp \

M514_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lp/d_a_obj_lp.o \

M514_LIBS := \

M514_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M514_TARGET): $(M514_O_FILES) $(M514_LIBS)
	@echo [514] creating $(M514_TARGET)
	@echo $(M514_LIBS) $(M514_O_FILES) > build/M514_ofiles
	@python3 tools/lcf.py rel 514 --output $(M514_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M514_LDFLAGS) -o $(M514_TARGET) @build/M514_ofiles

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


