#
# Generated By: dol2asm
#

M24_TARGET := $(BUILD_DIR)/rel/d/a/d_a_scene_exit.plf
M24_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_scene_exit.lcf
M24_MAP := $(BUILD_DIR)/rel/d/a/d_a_scene_exit.map

M24_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_scene_exit/d_a_scene_exit.cpp \

M24_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_scene_exit/d_a_scene_exit.o \

M24_LIBS := \

M24_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M24_TARGET): $(M24_O_FILES) $(M24_LIBS)
	@echo [ 24] creating $(M24_TARGET)
	@echo $(M24_LIBS) $(M24_O_FILES) > build/M24_ofiles
	@python3 tools/lcf.py rel 24 --output $(M24_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M24_LDFLAGS) -o $(M24_TARGET) @build/M24_ofiles

$(BUILD_DIR)/rel/d/a/d_a_scene_exit/%.o: rel/d/a/d_a_scene_exit/%.cpp $(BUILD_DIR)/rel/d/a/d_a_scene_exit/%.d
	@echo [ 24] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M24_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
M24_D_FILES := $(M24_O_FILES:.o=.d)
$(M24_D_FILES):
include $(wildcard $(M24_D_FILES))
endif


