#
# Generated By: dol2asm
#

M232_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_sm2.plf
M232_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_sm2.lcf
M232_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_sm2.map

M232_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_sm2/d_a_e_sm2.cpp \

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

M232_LIBS := \

M232_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M232_TARGET): $(M232_O_FILES) $(M232_LIBS)
	@echo [232] creating $(M232_TARGET)
	@echo $(M232_LIBS) $(M232_O_FILES) > build/M232_ofiles
	@python3 tools/lcf.py rel 232 --output $(M232_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M232_LDFLAGS) -o $(M232_TARGET) @build/M232_ofiles

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


