#
# Generated By: dol2asm
#

M640_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallC.plf
M640_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallC.lcf
M640_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallC.map

M640_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_swBallC/d_a_obj_swBallC.cpp \

M640_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallC/d_a_obj_swBallC.o \

M640_LIBS := \

M640_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M640_TARGET): $(M640_O_FILES) $(M640_LIBS)
	@echo [640] creating $(M640_TARGET)
	@echo $(M640_LIBS) $(M640_O_FILES) > build/M640_ofiles
	@python3 tools/lcf.py rel 640 --output $(M640_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M640_LDFLAGS) -o $(M640_TARGET) @build/M640_ofiles

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


