summaryrefslogtreecommitdiffstats
path: root/lib/libbsnmp
diff options
context:
space:
mode:
authoruqs <uqs@FreeBSD.org>2010-03-02 16:58:04 +0000
committeruqs <uqs@FreeBSD.org>2010-03-02 16:58:04 +0000
commitf8d1dd7a4ec434051b6212ce3eb8499b4799cb6b (patch)
tree360810296710b0ace559e49a0c503b4bcfdf7f05 /lib/libbsnmp
parent1a096d21d2dc8c7098da304d2c62ec61a9ef76ad (diff)
downloadFreeBSD-src-f8d1dd7a4ec434051b6212ce3eb8499b4799cb6b.zip
FreeBSD-src-f8d1dd7a4ec434051b6212ce3eb8499b4799cb6b.tar.gz
Always assign WARNS using ?=
- fix some nearby style bugs - include Makefile.inc where it makes sense and reduces duplication Approved by: ed (co-mentor)
Diffstat (limited to 'lib/libbsnmp')
-rw-r--r--lib/libbsnmp/Makefile.inc4
-rw-r--r--lib/libbsnmp/libbsnmp/Makefile5
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/libbsnmp/Makefile.inc b/lib/libbsnmp/Makefile.inc
index 566274c..82f48ac 100644
--- a/lib/libbsnmp/Makefile.inc
+++ b/lib/libbsnmp/Makefile.inc
@@ -1,6 +1,6 @@
# $FreeBSD$
-SHLIB_MAJOR= 5
-WARNS?= 6
NO_WERROR=
INCSDIR= ${INCLUDEDIR}/bsnmp
+
+.include "../Makefile.inc"
diff --git a/lib/libbsnmp/libbsnmp/Makefile b/lib/libbsnmp/libbsnmp/Makefile
index 91351c0..a0ceecd 100644
--- a/lib/libbsnmp/libbsnmp/Makefile
+++ b/lib/libbsnmp/libbsnmp/Makefile
@@ -5,9 +5,8 @@
CONTRIB= ${.CURDIR}/../../../contrib/bsnmp/lib
.PATH: ${CONTRIB}
-LIB = bsnmp
-SHLIBDIR ?= /lib
-WARNS ?= 6
+LIB= bsnmp
+SHLIBDIR?= /lib
CFLAGS+= -I${CONTRIB} -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY
CFLAGS+= -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DQUADFMT='"llu"' -DQUADXFMT='"llx"'
OpenPOWER on IntegriCloud