Introduce WANT_NETGRAPH7 make variable.
authorNuno Antunes <nuno.antunes@gmail.com>
Sat, 20 Jun 2009 23:13:47 +0000 (00:13 +0100)
committerNuno Antunes <nuno.antunes@gmail.com>
Tue, 10 Jan 2012 14:10:26 +0000 (14:10 +0000)
The WANT_NETGRAPH7 make option tells us to build libnetgraph7 instead of the lecagy libnetgraph library.

lib/Makefile

index 552775e..56549e5 100644 (file)
@@ -67,7 +67,7 @@ SUBDIR=       ${SUBDIR_ORDERED} \
        libmagic \
        ${_libmilter} \
        libncp \
-       libnetgraph \
+       ${_libnetgraph} \
        libopie \
        libpam \
        libpcap \
@@ -108,4 +108,10 @@ _libsmdb=  libsmdb
 _libsmutil=    libsmutil
 .endif
 
+.if defined(WANT_NETGRAPH7) 
+_libnetgraph=  libnetgraph7
+.else
+_libnetgraph=  libnetgraph
+.endif
+
 .include <bsd.subdir.mk>