diff --git a/sys/modules/Makefile b/sys/modules/Makefile index c69356971ff..fbd4941cf23 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -192,7 +192,7 @@ SUBDIR= ${_3dfx} \ ${_ncp} \ ${_ncv} \ ${_ndis} \ - netgraph \ + ${_netgraph} \ ${_nfe} \ nfscl \ nfsclient \ @@ -327,6 +327,10 @@ _random= random _ipfilter= ipfilter .endif +.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) +_netgraph= netgraph +.endif + .if ${MK_PF} != "no" || defined(ALL_MODULES) _pf= pf _pflog= pflog