#
# Generated By: dol2asm
#

M119_TARGET := $(BUILD_DIR)/rel/d/a/d_a_sq.plf
M119_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_sq.lcf
M119_MAP := $(BUILD_DIR)/rel/d/a/d_a_sq.map

M119_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/d_a_sq/d_a_sq.cpp \

M119_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/d_a_sq/d_a_sq.o \

M119_LIBS := \

M119_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M119_TARGET): $(M119_O_FILES) $(M119_LIBS)
	@echo [119] creating $(M119_TARGET)
	@echo $(M119_LIBS) $(M119_O_FILES) > build/M119_ofiles
	@python3 tools/lcf.py rel 119 --output $(M119_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M119_LDFLAGS) -o $(M119_TARGET) @build/M119_ofiles

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


