2003-04-05 20:30:30 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2003-04-06 21:46:44 +00:00
|
|
|
CFLAGS+= -I${WORLDTMP}/legacy/usr/include
|
2003-04-12 15:07:46 +00:00
|
|
|
DPADD+= ${WORLDTMP}/legacy/usr/lib/libegacy.a
|
|
|
|
LDADD+= -legacy
|
|
|
|
LDFLAGS+= -L${WORLDTMP}/legacy/usr/lib
|
2012-08-22 19:25:57 +00:00
|
|
|
|
2016-05-01 16:20:14 +00:00
|
|
|
# we do not want to capture dependencies referring to the above
|
2012-08-22 19:25:57 +00:00
|
|
|
UPDATE_DEPENDFILE= no
|
2018-08-20 10:39:42 +00:00
|
|
|
|
|
|
|
# When building host tools we should never pull in headers from the source sys
|
|
|
|
# directory to avoid any ABI issues that might cause the built binary to crash.
|
|
|
|
# The only exceptions to this are sys/cddl/compat for dtrace bootstrap tools and
|
|
|
|
# sys/crypto for libmd bootstrap.
|
2018-08-21 16:52:14 +00:00
|
|
|
# We have to skip this check during make obj since bsd.crunchgen.mk will run
|
|
|
|
# make obj on every directory during the build-tools phase.
|
|
|
|
.if !make(obj)
|
|
|
|
.if !empty(CFLAGS:M*${SRCTOP}/sys)
|
2018-08-20 10:39:42 +00:00
|
|
|
.error Do not include $${SRCTOP}/sys when building bootstrap tools. \
|
|
|
|
Copy the header to $${WORLDTMP}/legacy in tools/build/Makefile instead. \
|
|
|
|
Error was caused by Makefile in ${.CURDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# ${SRCTOP}/include should also never be used to avoid ABI issues
|
|
|
|
.if !empty(CFLAGS:M*${SRCTOP}/include*)
|
|
|
|
.error Do not include $${SRCTOP}/include when building bootstrap tools. \
|
|
|
|
Copy the header to $${WORLDTMP}/legacy in tools/build/Makefile instead. \
|
|
|
|
Error was caused by Makefile in ${.CURDIR}
|
|
|
|
.endif
|
2018-08-21 09:35:56 +00:00
|
|
|
.endif
|