#
# Generated By: dol2asm
#

M60_TARGET := $(BUILD_DIR)/rel/d/a/d_a_bd.plf
M60_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_bd.lcf
M60_MAP := $(BUILD_DIR)/rel/d/a/d_a_bd.map

M60_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/d_a_bd/d_a_bd.cpp \

M60_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/d_a_bd/d_a_bd.o \

M60_LIBS := \

M60_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M60_TARGET): $(M60_O_FILES) $(M60_LIBS)
	@echo [ 60] creating $(M60_TARGET)
	@echo $(M60_LIBS) $(M60_O_FILES) > build/M60_ofiles
	@python3 tools/lcf.py rel 60 --output $(M60_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M60_LDFLAGS) -o $(M60_TARGET) @build/M60_ofiles

$(BUILD_DIR)/rel/d/a/d_a_bd/%.o: rel/d/a/d_a_bd/%.cpp $(BUILD_DIR)/rel/d/a/d_a_bd/%.d
	@echo [ 60] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M60_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
M60_D_FILES := $(M60_O_FILES:.o=.d)
$(M60_D_FILES):
include $(wildcard $(M60_D_FILES))
endif


