#
# Generated By: dol2asm
#

M78_TARGET := $(BUILD_DIR)/rel/d/a/d_a_mg_fish.plf
M78_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_mg_fish.lcf
M78_MAP := $(BUILD_DIR)/rel/d/a/d_a_mg_fish.map

M78_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/d_a_mg_fish/d_a_mg_fish.cpp \

M78_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/d_a_mg_fish/d_a_mg_fish.o \

M78_LIBS := \

M78_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M78_TARGET): $(M78_O_FILES) $(M78_LIBS)
	@echo [ 78] creating $(M78_TARGET)
	@echo $(M78_LIBS) $(M78_O_FILES) > build/M78_ofiles
	@python3 tools/lcf.py rel 78 --output $(M78_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M78_LDFLAGS) -o $(M78_TARGET) @build/M78_ofiles

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


