diff --git a/sbin/ipf/Makefile.inc b/sbin/ipf/Makefile.inc index 79bdb8e378db..c4c44bed6e75 100644 --- a/sbin/ipf/Makefile.inc +++ b/sbin/ipf/Makefile.inc @@ -18,7 +18,9 @@ CFLAGS+= -DUSE_INET6 CFLAGS+= -DNOINET6 .endif +.if ${.CURDIR:M*/libipf} == "" LIBADD+= ipf +.endif CLEANFILES+= y.tab.c y.tab.h