freebsd-nq/usr.bin/xlint/llib/Makefile
Bryan Drewery 31dd9effd9 Fix with external GCC after r300886.
Somehow the /usr/include path got lost in this particular case.
Just pass it along from --sysroot as was already done for
DIRDEPS_BUILD.

Sponsored by:	EMC / Isilon Storage Division
2016-05-29 01:15:15 +00:00

31 lines
648 B
Makefile

# $NetBSD: Makefile,v 1.7 2000/06/14 20:22:19 matt Exp $
# $FreeBSD$
LIBS= llib-lposix.ln llib-lstdc.ln
FILES= ${LIBS}
FILESDIR= ${LINTLIBDIR}
CLEANFILES+= ${LIBS}
llib-lposix.ln: llib-lposix
${LINT} ${LINTFLAGS} -Cposix ${.ALLSRC}
llib-lstdc.ln: llib-lstdc
${LINT} ${LINTFLAGS} -Cstdc ${.ALLSRC}
.include <bsd.prog.mk>
.if !empty(STAGE_INCLUDEDIR)
LINTFLAGS+= -I${STAGE_INCLUDEDIR}
.else
.if ${CFLAGS:M--sysroot=*} != ""
_sysroot?= ${CFLAGS:M--sysroot=*:[1]:C,^--sysroot=,,}
.elif ${CC:M--sysroot=*} != ""
_sysroot?= ${CC:M--sysroot=*:[1]:C,^--sysroot=,,}
.endif
.if !empty(_sysroot)
LINTFLAGS+= -I${_sysroot}/usr/include
.endif
.endif