#
# Generated By: dol2asm
#

M178_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_bu.plf
M178_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_bu.lcf
M178_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_bu.map

M178_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_bu/d_a_e_bu.cpp \

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

M178_LIBS := \

M178_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M178_TARGET): $(M178_O_FILES) $(M178_LIBS)
	@echo [178] creating $(M178_TARGET)
	@echo $(M178_LIBS) $(M178_O_FILES) > build/M178_ofiles
	@python3 tools/lcf.py rel 178 --output $(M178_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M178_LDFLAGS) -o $(M178_TARGET) @build/M178_ofiles

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


