#
# Generated By: dol2asm
#

M189_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_fk.plf
M189_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_fk.lcf
M189_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_fk.map

M189_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_fk/d_a_e_fk.cpp \

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

M189_LIBS := \

M189_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M189_TARGET): $(M189_O_FILES) $(M189_LIBS)
	@echo [189] creating $(M189_TARGET)
	@echo $(M189_LIBS) $(M189_O_FILES) > build/M189_ofiles
	@python3 tools/lcf.py rel 189 --output $(M189_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M189_LDFLAGS) -o $(M189_TARGET) @build/M189_ofiles

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


