#
# Generated By: dol2asm
#

M66_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_fm.plf
M66_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_fm.lcf
M66_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_fm.map

M66_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_fm/d_a_e_fm.cpp \

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

M66_LIBS := \

M66_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M66_TARGET): $(M66_O_FILES) $(M66_LIBS)
	@echo [ 66] creating $(M66_TARGET)
	@echo $(M66_LIBS) $(M66_O_FILES) > build/M66_ofiles
	@python3 tools/lcf.py rel 66 --output $(M66_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M66_LDFLAGS) -o $(M66_TARGET) @build/M66_ofiles

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


