1PACKAGE= bhyve 2FILESDIR= ${SHAREDIR}/bhyve/gdb 3 4FILES+= target.xml 5 6.if ${MACHINE_ARCH} == "amd64" 7XMLARCH= i386:x86-64 8FILES+= amd64.xml 9.elif ${MACHINE_ARCH} == "aarch64" 10XMLARCH= aarch64 11FILES+= aarch64-core.xml 12.endif 13 14.if !make(install*) 15target.xml: .PHONY 16 @echo "<?xml version=\"1.0\"?>" > ${.TARGET} 17 @echo "<!DOCTYPE target SYSTEM \"gdb-target.dtd\">" >> ${.TARGET} 18 @echo "<target>" >> ${.TARGET} 19 @echo " <architecture>${XMLARCH}</architecture>" >> ${.TARGET} 20.for file in ${FILES:Ntarget.xml} 21 @echo " <xi:include href=\"${file}\"/>" >> ${.TARGET} 22.endfor 23 @echo "</target>" >> ${.TARGET} 24.endif 25 26.include <bsd.prog.mk> 27