#
# Generated By: dol2asm
#

M278_TARGET := $(BUILD_DIR)/rel/d/a/d_a_mg_fshop.plf
M278_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_mg_fshop.lcf
M278_MAP := $(BUILD_DIR)/rel/d/a/d_a_mg_fshop.map

M278_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/d_a_mg_fshop/d_a_mg_fshop.cpp \

M278_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/d_a_mg_fshop/d_a_mg_fshop.o \

M278_LIBS := \

M278_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M278_TARGET): $(M278_O_FILES) $(M278_LIBS)
	@echo [278] creating $(M278_TARGET)
	@echo $(M278_LIBS) $(M278_O_FILES) > build/M278_ofiles
	@python3 tools/lcf.py rel 278 --output $(M278_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M278_LDFLAGS) -o $(M278_TARGET) @build/M278_ofiles

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


