1# $NetBSD: Makefile,v 1.7 2000/06/14 20:22:19 matt Exp $
| 1# $NetBSD: Makefile,v 1.7 2000/06/14 20:22:19 matt Exp $
|
2# $FreeBSD: head/usr.bin/xlint/llib/Makefile 290816 2015-11-14 03:24:48Z sjg $
| 2# $FreeBSD: head/usr.bin/xlint/llib/Makefile 300920 2016-05-29 01:15:15Z bdrewery $
|
3 4LIBS= llib-lposix.ln llib-lstdc.ln 5 6FILES= ${LIBS} 7FILESDIR= ${LINTLIBDIR} 8 9CLEANFILES+= ${LIBS} 10 11llib-lposix.ln: llib-lposix 12 ${LINT} ${LINTFLAGS} -Cposix ${.ALLSRC} 13 14llib-lstdc.ln: llib-lstdc 15 ${LINT} ${LINTFLAGS} -Cstdc ${.ALLSRC} 16 17.include <bsd.prog.mk> 18
| 3 4LIBS= llib-lposix.ln llib-lstdc.ln 5 6FILES= ${LIBS} 7FILESDIR= ${LINTLIBDIR} 8 9CLEANFILES+= ${LIBS} 10 11llib-lposix.ln: llib-lposix 12 ${LINT} ${LINTFLAGS} -Cposix ${.ALLSRC} 13 14llib-lstdc.ln: llib-lstdc 15 ${LINT} ${LINTFLAGS} -Cstdc ${.ALLSRC} 16 17.include <bsd.prog.mk> 18
|
19.if ${MK_DIRDEPS_BUILD} == "yes"
| 19.if !empty(STAGE_INCLUDEDIR)
|
20LINTFLAGS+= -I${STAGE_INCLUDEDIR}
| 20LINTFLAGS+= -I${STAGE_INCLUDEDIR}
|
| 21.else 22.if ${CFLAGS:M--sysroot=*} != "" 23_sysroot?= ${CFLAGS:M--sysroot=*:[1]:C,^--sysroot=,,} 24.elif ${CC:M--sysroot=*} != "" 25_sysroot?= ${CC:M--sysroot=*:[1]:C,^--sysroot=,,}
|
21.endif
| 26.endif
|
| 27.if !empty(_sysroot) 28LINTFLAGS+= -I${_sysroot}/usr/include 29.endif 30.endif
|
| |