#
# Generated By: dol2asm
#

M174_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_bg.plf
M174_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_bg.lcf
M174_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_bg.map

M174_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_bg/d_a_e_bg.cpp \

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

M174_LIBS := \

M174_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M174_TARGET): $(M174_O_FILES) $(M174_LIBS)
	@echo [174] creating $(M174_TARGET)
	@echo $(M174_LIBS) $(M174_O_FILES) > build/M174_ofiles
	@python3 tools/lcf.py rel 174 --output $(M174_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M174_LDFLAGS) -o $(M174_TARGET) @build/M174_ofiles

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


