#
# Generated By: dol2asm
#

M176_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_bi_leaf.plf
M176_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_bi_leaf.lcf
M176_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_bi_leaf.map

M176_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/e/d_a_e_bi_leaf/d_a_e_bi_leaf.cpp \

M176_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_bi_leaf/d_a_e_bi_leaf.o \

M176_LIBS := \

M176_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M176_TARGET): $(M176_O_FILES) $(M176_LIBS)
	@echo [176] creating $(M176_TARGET)
	@echo $(M176_LIBS) $(M176_O_FILES) > build/M176_ofiles
	@python3 tools/lcf.py rel 176 --output $(M176_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M176_LDFLAGS) -o $(M176_TARGET) @build/M176_ofiles

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


