#
# Generated By: dol2asm
#

M240_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_tk_ball.plf
M240_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_tk_ball.lcf
M240_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_tk_ball.map

M240_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/e/d_a_e_tk_ball/d_a_e_tk_ball.cpp \

M240_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_tk_ball/d_a_e_tk_ball.o \

M240_LIBS := \

M240_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M240_TARGET): $(M240_O_FILES) $(M240_LIBS)
	@echo [240] creating $(M240_TARGET)
	@echo $(M240_LIBS) $(M240_O_FILES) > build/M240_ofiles
	@python3 tools/lcf.py rel 240 --output $(M240_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M240_LDFLAGS) -o $(M240_TARGET) @build/M240_ofiles

$(BUILD_DIR)/rel/d/a/e/d_a_e_tk_ball/%.o: rel/d/a/e/d_a_e_tk_ball/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_tk_ball/%.d
	@echo [240] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M240_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
M240_D_FILES := $(M240_O_FILES:.o=.d)
$(M240_D_FILES):
include $(wildcard $(M240_D_FILES))
endif


