#
# Generated By: dol2asm
#

M154_TARGET := $(BUILD_DIR)/rel/d/a/b/d_a_b_yo_ice.plf
M154_LDSCRIPT := $(BUILD_DIR)/rel/d/a/b/d_a_b_yo_ice.lcf
M154_MAP := $(BUILD_DIR)/rel/d/a/b/d_a_b_yo_ice.map

M154_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/b/d_a_b_yo_ice/d_a_b_yo_ice.cpp \

M154_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/b/d_a_b_yo_ice/d_a_b_yo_ice.o \

M154_LIBS := \

M154_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M154_TARGET): $(M154_O_FILES) $(M154_LIBS)
	@echo [154] creating $(M154_TARGET)
	@echo $(M154_LIBS) $(M154_O_FILES) > build/M154_ofiles
	@python3 tools/lcf.py rel 154 --output $(M154_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M154_LDFLAGS) -o $(M154_TARGET) @build/M154_ofiles

$(BUILD_DIR)/rel/d/a/b/d_a_b_yo_ice/%.o: rel/d/a/b/d_a_b_yo_ice/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_yo_ice/%.d
	@echo [154] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M154_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
M154_D_FILES := $(M154_O_FILES:.o=.d)
$(M154_D_FILES):
include $(wildcard $(M154_D_FILES))
endif


