#
# Generated By: dol2asm
#

M49_TARGET := $(BUILD_DIR)/rel/d/a/d_a_disappear.plf
M49_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_disappear.lcf
M49_MAP := $(BUILD_DIR)/rel/d/a/d_a_disappear.map

M49_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_disappear/d_a_disappear.cpp \

M49_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_disappear/d_a_disappear.o \

M49_LIBS := \

M49_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M49_TARGET): $(M49_O_FILES) $(M49_LIBS)
	@echo [ 49] creating $(M49_TARGET)
	@echo $(M49_LIBS) $(M49_O_FILES) > build/M49_ofiles
	@python3 tools/lcf.py rel 49 --output $(M49_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M49_LDFLAGS) -o $(M49_TARGET) @build/M49_ofiles

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


