#
# Generated By: dol2asm
#

M281_TARGET := $(BUILD_DIR)/rel/d/a/d_a_myna.plf
M281_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_myna.lcf
M281_MAP := $(BUILD_DIR)/rel/d/a/d_a_myna.map

M281_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/d_a_myna/d_a_myna.cpp \

M281_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/d_a_myna/d_a_myna.o \

M281_LIBS := \

M281_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M281_TARGET): $(M281_O_FILES) $(M281_LIBS)
	@echo [281] creating $(M281_TARGET)
	@echo $(M281_LIBS) $(M281_O_FILES) > build/M281_ofiles
	@python3 tools/lcf.py rel 281 --output $(M281_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M281_LDFLAGS) -o $(M281_TARGET) @build/M281_ofiles

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


