#
# Generated By: dol2asm
#

M244_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_wb.plf
M244_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_wb.lcf
M244_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_wb.map

M244_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_wb/d_a_e_wb.cpp \

M244_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_wb/d_a_e_wb.o \

M244_LIBS := \

M244_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M244_TARGET): $(M244_O_FILES) $(M244_LIBS)
	@echo [244] creating $(M244_TARGET)
	@echo $(M244_LIBS) $(M244_O_FILES) > build/M244_ofiles
	@python3 tools/lcf.py rel 244 --output $(M244_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M244_LDFLAGS) -o $(M244_TARGET) @build/M244_ofiles

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


