#
# Generated By: dol2asm
#

M229_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_sg.plf
M229_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_sg.lcf
M229_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_sg.map

M229_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_sg/d_a_e_sg.cpp \

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

M229_LIBS := \

M229_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M229_TARGET): $(M229_O_FILES) $(M229_LIBS)
	@echo [229] creating $(M229_TARGET)
	@echo $(M229_LIBS) $(M229_O_FILES) > build/M229_ofiles
	@python3 tools/lcf.py rel 229 --output $(M229_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M229_LDFLAGS) -o $(M229_TARGET) @build/M229_ofiles

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


