#
# Generated By: dol2asm
#

M451_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag3.plf
M451_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag3.lcf
M451_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag3.map

M451_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_flag3/d_a_obj_flag3.cpp \

M451_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_flag3/d_a_obj_flag3.o \

M451_LIBS := \

M451_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M451_TARGET): $(M451_O_FILES) $(M451_LIBS)
	@echo [451] creating $(M451_TARGET)
	@echo $(M451_LIBS) $(M451_O_FILES) > build/M451_ofiles
	@python3 tools/lcf.py rel 451 --output $(M451_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M451_LDFLAGS) -o $(M451_TARGET) @build/M451_ofiles

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


