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