2003-02-26 23:36:59 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-11-13 20:49:08 +00:00
|
|
|
# The LINT files need to end up in the kernel source directory.
|
|
|
|
.OBJDIR: ${.CURDIR}
|
|
|
|
|
2003-02-26 23:36:59 +00:00
|
|
|
all:
|
|
|
|
@echo "make LINT only"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f LINT
|
2010-01-08 19:00:20 +00:00
|
|
|
.if ${TARGET} == "amd64" || ${TARGET} == "i386"
|
2017-10-20 21:40:59 +00:00
|
|
|
rm -f LINT-NOINET LINT-NOINET6 LINT-NOIP
|
2010-01-08 19:00:20 +00:00
|
|
|
.endif
|
2003-02-26 23:36:59 +00:00
|
|
|
|
2017-11-13 20:49:08 +00:00
|
|
|
NOTES= ${.CURDIR}/../../conf/NOTES ${.CURDIR}/NOTES
|
|
|
|
MAKELINT_SED= ${.CURDIR}/../../conf/makeLINT.sed
|
|
|
|
LINT: ${NOTES} ${MAKELINT_SED}
|
|
|
|
cat ${NOTES} | sed -E -n -f ${MAKELINT_SED} > ${.TARGET}
|
2010-01-08 19:00:20 +00:00
|
|
|
.if ${TARGET} == "amd64" || ${TARGET} == "i386"
|
2011-05-02 22:54:24 +00:00
|
|
|
echo "include ${.TARGET}" > ${.TARGET}-NOINET
|
|
|
|
echo "ident ${.TARGET}-NOINET" >> ${.TARGET}-NOINET
|
|
|
|
echo 'makeoptions MKMODULESENV+="WITHOUT_INET_SUPPORT="' >> ${.TARGET}-NOINET
|
|
|
|
echo "nooptions INET" >> ${.TARGET}-NOINET
|
|
|
|
echo "nodevice gre" >> ${.TARGET}-NOINET
|
2016-10-21 07:35:49 +00:00
|
|
|
echo "nodevice netmap" >> ${.TARGET}-NOINET
|
2011-05-02 22:54:24 +00:00
|
|
|
echo "include ${.TARGET}" > ${.TARGET}-NOINET6
|
|
|
|
echo "ident ${.TARGET}-NOINET6" >> ${.TARGET}-NOINET6
|
2012-04-04 21:31:20 +00:00
|
|
|
echo 'makeoptions MKMODULESENV+="WITHOUT_INET6_SUPPORT="' >> ${.TARGET}-NOINET6
|
2011-05-02 22:54:24 +00:00
|
|
|
echo "nooptions INET6" >> ${.TARGET}-NOINET6
|
|
|
|
echo "include ${.TARGET}" > ${.TARGET}-NOIP
|
|
|
|
echo "ident ${.TARGET}-NOIP" >> ${.TARGET}-NOIP
|
|
|
|
echo 'makeoptions MKMODULESENV+="WITHOUT_INET_SUPPORT="' >> ${.TARGET}-NOIP
|
|
|
|
echo 'makeoptions MKMODULESENV+="WITHOUT_INET6_SUPPORT="' >> ${.TARGET}-NOIP
|
|
|
|
echo "nooptions INET" >> ${.TARGET}-NOIP
|
|
|
|
echo "nooptions INET6" >> ${.TARGET}-NOIP
|
|
|
|
echo "nodevice age" >> ${.TARGET}-NOIP
|
|
|
|
echo "nodevice alc" >> ${.TARGET}-NOIP
|
|
|
|
echo "nodevice ale" >> ${.TARGET}-NOIP
|
|
|
|
echo "nodevice bxe" >> ${.TARGET}-NOIP
|
|
|
|
echo "nodevice em" >> ${.TARGET}-NOIP
|
|
|
|
echo "nodevice fxp" >> ${.TARGET}-NOIP
|
|
|
|
echo "nodevice jme" >> ${.TARGET}-NOIP
|
|
|
|
echo "nodevice msk" >> ${.TARGET}-NOIP
|
|
|
|
echo "nodevice mxge" >> ${.TARGET}-NOIP
|
|
|
|
echo "nodevice sge" >> ${.TARGET}-NOIP
|
|
|
|
echo "nodevice sk" >> ${.TARGET}-NOIP
|
|
|
|
echo "nodevice txp" >> ${.TARGET}-NOIP
|
2016-10-21 07:35:49 +00:00
|
|
|
echo "nodevice netmap" >> ${.TARGET}-NOIP
|
2010-01-08 19:00:20 +00:00
|
|
|
.endif
|
2013-04-11 22:18:20 +00:00
|
|
|
.if ${TARGET} == "mips"
|
2010-08-19 03:19:26 +00:00
|
|
|
echo "machine ${TARGET} ${TARGET_ARCH}" >> ${.TARGET}
|
|
|
|
.endif
|
2013-04-11 22:18:20 +00:00
|
|
|
.if ${TARGET} == "powerpc"
|
|
|
|
# cat is available, not sure if cp is?
|
|
|
|
cat ${.TARGET} > ${.TARGET}64
|
|
|
|
echo "machine ${TARGET} powerpc" >> ${.TARGET}
|
|
|
|
echo "machine ${TARGET} powerpc64" >> ${.TARGET}64
|
2018-05-30 02:26:36 +00:00
|
|
|
# mlx5 needs 64-bit atomics, so exclude from 32-bit PPC
|
|
|
|
echo "nodevice mlx5" >> ${.TARGET}
|
|
|
|
echo "nodevice mlx5en" >> ${.TARGET}
|
|
|
|
echo "nodevice mlx5ib" >> ${.TARGET}
|
2013-04-11 22:18:20 +00:00
|
|
|
.endif
|