#
# Generated By: dol2asm
#

M442_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fallobj.plf
M442_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fallobj.lcf
M442_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fallobj.map

M442_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_fallobj/d_a_obj_fallobj.cpp \

M442_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fallobj/d_a_obj_fallobj.o \

M442_LIBS := \

M442_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M442_TARGET): $(M442_O_FILES) $(M442_LIBS)
	@echo [442] creating $(M442_TARGET)
	@echo $(M442_LIBS) $(M442_O_FILES) > build/M442_ofiles
	@python3 tools/lcf.py rel 442 --output $(M442_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M442_LDFLAGS) -o $(M442_TARGET) @build/M442_ofiles

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


