netgraph7: conditionalize netgraph modules build.
authorNuno Antunes <nuno.antunes@gmail.com>
Fri, 9 Dec 2011 20:27:38 +0000 (20:27 +0000)
committerNuno Antunes <nuno.antunes@gmail.com>
Tue, 10 Jan 2012 14:10:36 +0000 (14:10 +0000)
* If WANT_NETRAPH7 make variable is set then build netgraph7 modules,
  otherwise build netgraph modules.

sys/Makefile.modules

index 7871e15..8bfa7aa 100644 (file)
@@ -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