1# $FreeBSD$ 2 3CFLAGS+= -I${WORLDTMP}/legacy/usr/include 4DPADD+= ${WORLDTMP}/legacy/usr/lib/libegacy.a 5LDADD+= -legacy 6LDFLAGS+= -L${WORLDTMP}/legacy/usr/lib 7 8# we do not want to capture dependencies referring to the above 9UPDATE_DEPENDFILE= no 10 11# When building host tools we should never pull in headers from the source sys 12# directory to avoid any ABI issues that might cause the built binary to crash. 13# The only exceptions to this are sys/cddl/compat for dtrace bootstrap tools and 14# sys/crypto for libmd bootstrap. 15.if !empty(CFLAGS:M*${SRCTOP}/sys*:N*${SRCTOP}/sys/cddl/compat*:N*${SRCTOP}/sys/crypto*) 16.error Do not include $${SRCTOP}/sys when building bootstrap tools. \ 17 Copy the header to $${WORLDTMP}/legacy in tools/build/Makefile instead. \ 18 Error was caused by Makefile in ${.CURDIR} 19.endif 20 21# ${SRCTOP}/include should also never be used to avoid ABI issues 22.if !empty(CFLAGS:M*${SRCTOP}/include*) 23.error Do not include $${SRCTOP}/include when building bootstrap tools. \ 24 Copy the header to $${WORLDTMP}/legacy in tools/build/Makefile instead. \ 25 Error was caused by Makefile in ${.CURDIR} 26.endif 27