#
# Generated By: dol2asm
#

M195_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_gm.plf
M195_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_gm.lcf
M195_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_gm.map

M195_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_gm/d_a_e_gm.cpp \

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

M195_LIBS := \

M195_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M195_TARGET): $(M195_O_FILES) $(M195_LIBS)
	@echo [195] creating $(M195_TARGET)
	@echo $(M195_LIBS) $(M195_O_FILES) > build/M195_ofiles
	@python3 tools/lcf.py rel 195 --output $(M195_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M195_LDFLAGS) -o $(M195_TARGET) @build/M195_ofiles

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


