#
# Generated By: dol2asm
#

M120_TARGET := $(BUILD_DIR)/rel/d/a/d_a_swc00.plf
M120_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_swc00.lcf
M120_MAP := $(BUILD_DIR)/rel/d/a/d_a_swc00.map

M120_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_swc00/unknown_translation_unit_bss.cpp \
	rel/d/a/d_a_swc00/d_a_swc00.cpp \

M120_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_swc00/unknown_translation_unit_bss.o \
	$(BUILD_DIR)/rel/d/a/d_a_swc00/d_a_swc00.o \

M120_LIBS := \

M120_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M120_TARGET): $(M120_O_FILES) $(M120_LIBS)
	@echo [120] creating $(M120_TARGET)
	@echo $(M120_LIBS) $(M120_O_FILES) > build/M120_ofiles
	@python3 tools/lcf.py rel 120 --output $(M120_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M120_LDFLAGS) -o $(M120_TARGET) @build/M120_ofiles

$(BUILD_DIR)/rel/d/a/d_a_swc00/%.o: rel/d/a/d_a_swc00/%.cpp $(BUILD_DIR)/rel/d/a/d_a_swc00/%.d
	@echo [120] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M120_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
M120_D_FILES := $(M120_O_FILES:.o=.d)
$(M120_D_FILES):
include $(wildcard $(M120_D_FILES))
endif


