#
# Generated By: dol2asm
#

M197_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_gs.plf
M197_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_gs.lcf
M197_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_gs.map

M197_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_gs/d_a_e_gs.cpp \

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

M197_LIBS := \

M197_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M197_TARGET): $(M197_O_FILES) $(M197_LIBS)
	@echo [197] creating $(M197_TARGET)
	@echo $(M197_LIBS) $(M197_O_FILES) > build/M197_ofiles
	@python3 tools/lcf.py rel 197 --output $(M197_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M197_LDFLAGS) -o $(M197_TARGET) @build/M197_ofiles

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


