#
# Generated By: dol2asm
#

M27_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_allmato.plf
M27_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_allmato.lcf
M27_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_allmato.map

M27_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_allmato/d_a_tag_allmato.cpp \

M27_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_allmato/d_a_tag_allmato.o \

M27_LIBS := \

M27_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M27_TARGET): $(M27_O_FILES) $(M27_LIBS)
	@echo [ 27] creating $(M27_TARGET)
	@echo $(M27_LIBS) $(M27_O_FILES) > build/M27_ofiles
	@python3 tools/lcf.py rel 27 --output $(M27_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M27_LDFLAGS) -o $(M27_TARGET) @build/M27_ofiles

$(BUILD_DIR)/rel/d/a/tag/d_a_tag_allmato/%.o: rel/d/a/tag/d_a_tag_allmato/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_allmato/%.d
	@echo [ 27] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M27_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
M27_D_FILES := $(M27_O_FILES:.o=.d)
$(M27_D_FILES):
include $(wildcard $(M27_D_FILES))
endif


