#
# Generated By: dol2asm
#

M246_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_ww.plf
M246_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_ww.lcf
M246_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_ww.map

M246_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_ww/d_a_e_ww.cpp \

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

M246_LIBS := \

M246_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M246_TARGET): $(M246_O_FILES) $(M246_LIBS)
	@echo [246] creating $(M246_TARGET)
	@echo $(M246_LIBS) $(M246_O_FILES) > build/M246_ofiles
	@python3 tools/lcf.py rel 246 --output $(M246_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M246_LDFLAGS) -o $(M246_TARGET) @build/M246_ofiles

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


