#
# Generated By: dol2asm
#

M235_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_sw.plf
M235_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_sw.lcf
M235_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_sw.map

M235_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_sw/d_a_e_sw.cpp \

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

M235_LIBS := \

M235_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M235_TARGET): $(M235_O_FILES) $(M235_LIBS)
	@echo [235] creating $(M235_TARGET)
	@echo $(M235_LIBS) $(M235_O_FILES) > build/M235_ofiles
	@python3 tools/lcf.py rel 235 --output $(M235_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M235_LDFLAGS) -o $(M235_TARGET) @build/M235_ofiles

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


