#
# Generated By: dol2asm
#

M62_TARGET := $(BUILD_DIR)/rel/d/a/d_a_cstaF.plf
M62_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_cstaF.lcf
M62_MAP := $(BUILD_DIR)/rel/d/a/d_a_cstaF.map

M62_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_cstaF/d_a_cstaF.cpp \

M62_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_cstaF/d_a_cstaF.o \

M62_LIBS := \

M62_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M62_TARGET): $(M62_O_FILES) $(M62_LIBS)
	@echo [ 62] creating $(M62_TARGET)
	@echo $(M62_LIBS) $(M62_O_FILES) > build/M62_ofiles
	@python3 tools/lcf.py rel 62 --output $(M62_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M62_LDFLAGS) -o $(M62_TARGET) @build/M62_ofiles

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


