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