#
# Generated By: dol2asm
#

M245_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_ws.plf
M245_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_ws.lcf
M245_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_ws.map

M245_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_ws/d_a_e_ws.cpp \

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

M245_LIBS := \

M245_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M245_TARGET): $(M245_O_FILES) $(M245_LIBS)
	@echo [245] creating $(M245_TARGET)
	@echo $(M245_LIBS) $(M245_O_FILES) > build/M245_ofiles
	@python3 tools/lcf.py rel 245 --output $(M245_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M245_LDFLAGS) -o $(M245_TARGET) @build/M245_ofiles

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


