Permalink
Browse files

netgraph7: conditionalize netgraph modules build.

* If WANT_NETRAPH7 make variable is set then build netgraph7 modules,
  otherwise build netgraph modules.
  • Loading branch information...
1 parent a6c7286 commit e6e7e7c139fe36a90d797b08690d309bbc62aed7 @ntunes ntunes committed Dec 9, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 sys/Makefile.modules
View
@@ -7,7 +7,12 @@ SUBDIR=${MODULES_OVERRIDE}
.if ${MACHINE_PLATFORM} != "vkernel" && ${MACHINE_PLATFORM} != "vkernel64"
SUBDIR=bus
.endif
-SUBDIR+=crypto emulation dev gnu kern net netbt netgraph netgraph7 netproto vfs
+SUBDIR+=crypto emulation dev gnu kern net netbt netproto vfs
+.if defined(WANT_NETGRAPH7)
+SUBDIR+=netgraph7
+.else
+SUBDIR+=netgraph
+.endif
SUBDIR+=libiconv
.endif

0 comments on commit e6e7e7c

Please sign in to comment.