#
# Generated By: dol2asm
#

M228_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_sf.plf
M228_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_sf.lcf
M228_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_sf.map

M228_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_sf/d_a_e_sf.cpp \

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

M228_LIBS := \

M228_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M228_TARGET): $(M228_O_FILES) $(M228_LIBS)
	@echo [228] creating $(M228_TARGET)
	@echo $(M228_LIBS) $(M228_O_FILES) > build/M228_ofiles
	@python3 tools/lcf.py rel 228 --output $(M228_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M228_LDFLAGS) -o $(M228_TARGET) @build/M228_ofiles

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


