#
# Generated By: dol2asm
#

M180_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_cr.plf
M180_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_cr.lcf
M180_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_cr.map

M180_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_cr/d_a_e_cr.cpp \

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

M180_LIBS := \

M180_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M180_TARGET): $(M180_O_FILES) $(M180_LIBS)
	@echo [180] creating $(M180_TARGET)
	@echo $(M180_LIBS) $(M180_O_FILES) > build/M180_ofiles
	@python3 tools/lcf.py rel 180 --output $(M180_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M180_LDFLAGS) -o $(M180_TARGET) @build/M180_ofiles

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


