From f98a656c0ad6adf54e0e0c5eb6220ee2673511b3 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Tue, 26 Apr 2005 02:01:39 +0000 Subject: [PATCH] Conditionalize the ipfilter header files on NO_IPFILTER. While normally these should be harmless, the kdump(1) build does evil things with collecting system header files, and thus would unconditionally collect and process these. MFC After: 3 days --- include/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/Makefile b/include/Makefile index 448fb7dd208b..c7df6f5f776c 100644 --- a/include/Makefile +++ b/include/Makefile @@ -141,9 +141,11 @@ copies: cd ${.CURDIR}/../sys/contrib/altq/altq; \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ ${DESTDIR}${INCLUDEDIR}/altq +.if !defined(NO_IPFILTER) cd ${.CURDIR}/../sys/contrib/ipfilter/netinet; \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ ${DESTDIR}${INCLUDEDIR}/netinet +.endif cd ${.CURDIR}/../sys/contrib/pf/net; \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ ${DESTDIR}${INCLUDEDIR}/net @@ -211,11 +213,13 @@ symlinks: ln -fs ../../../sys/contrib/altq/altq/$$h \ ${DESTDIR}${INCLUDEDIR}/altq; \ done +.if !defined(NO_IPFILTER) cd ${.CURDIR}/../sys/contrib/ipfilter/netinet; \ for h in *.h; do \ ln -fs ../../../sys/contrib/ipfilter/netinet/$$h \ ${DESTDIR}${INCLUDEDIR}/netinet; \ done +.endif cd ${.CURDIR}/../sys/contrib/pf/net; \ for h in *.h; do \ ln -fs ../../../sys/contrib/pf/net/$$h \