#
# Generated By: dol2asm
#

M440_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dust.plf
M440_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dust.lcf
M440_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dust.map

M440_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_dust/d_a_obj_dust.cpp \

M440_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_dust/d_a_obj_dust.o \

M440_LIBS := \

M440_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M440_TARGET): $(M440_O_FILES) $(M440_LIBS)
	@echo [440] creating $(M440_TARGET)
	@echo $(M440_LIBS) $(M440_O_FILES) > build/M440_ofiles
	@python3 tools/lcf.py rel 440 --output $(M440_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M440_LDFLAGS) -o $(M440_TARGET) @build/M440_ofiles

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


