#
# Generated By: dol2asm
#

M263_TARGET := $(BUILD_DIR)/rel/d/a/d_a_hozelda.plf
M263_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_hozelda.lcf
M263_MAP := $(BUILD_DIR)/rel/d/a/d_a_hozelda.map

M263_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_hozelda/unknown_translation_unit_bss.cpp \
	rel/d/a/d_a_hozelda/d_a_hozelda.cpp \

M263_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_hozelda/unknown_translation_unit_bss.o \
	$(BUILD_DIR)/rel/d/a/d_a_hozelda/d_a_hozelda.o \

M263_LIBS := \

M263_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M263_TARGET): $(M263_O_FILES) $(M263_LIBS)
	@echo [263] creating $(M263_TARGET)
	@echo $(M263_LIBS) $(M263_O_FILES) > build/M263_ofiles
	@python3 tools/lcf.py rel 263 --output $(M263_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M263_LDFLAGS) -o $(M263_TARGET) @build/M263_ofiles

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


