#
# Generated By: dol2asm
#

M638_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallA.plf
M638_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallA.lcf
M638_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallA.map

M638_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_swBallA/d_a_obj_swBallA.cpp \

M638_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swBallA/d_a_obj_swBallA.o \

M638_LIBS := \

M638_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M638_TARGET): $(M638_O_FILES) $(M638_LIBS)
	@echo [638] creating $(M638_TARGET)
	@echo $(M638_LIBS) $(M638_O_FILES) > build/M638_ofiles
	@python3 tools/lcf.py rel 638 --output $(M638_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M638_LDFLAGS) -o $(M638_TARGET) @build/M638_ofiles

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


