]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - usr.sbin/bsnmpd/bsnmpd/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / usr.sbin / bsnmpd / bsnmpd / Makefile
1 # $FreeBSD$
2 #
3 # Author: Harti Brandt <harti@freebsd.org>
4
5 .include <bsd.own.mk>
6
7 CONTRIB=${.CURDIR}/../../../contrib/bsnmp
8 .PATH: ${CONTRIB}/snmpd
9
10 PROG=   bsnmpd
11 SRCS=   main.c action.c config.c export.c trap.c trans_udp.c trans_lsock.c
12 SRCS+=  oid.h tree.c tree.h
13 XSYM=   snmpMIB begemotSnmpdModuleTable begemotSnmpd begemotTrapSinkTable \
14         sysUpTime snmpTrapOID coldStart authenticationFailure \
15         begemotSnmpdTransUdp begemotSnmpdTransLsock begemotSnmpdLocalPortTable \
16         freeBSD freeBSDVersion
17 CLEANFILES= oid.h tree.c tree.h
18 MAN=    bsnmpd.1 snmpmod.3
19 NO_WERROR=
20
21 FILESGROUPS= BMIBS DEFS
22
23 BMIBS=  FOKUS-MIB.txt BEGEMOT-MIB.txt BEGEMOT-SNMPD.txt
24 BMIBSDIR= ${SHAREDIR}/snmp/mibs
25 DEFS=   tree.def
26 DEFSDIR= ${SHAREDIR}/snmp/defs
27
28 CFLAGS+= -DSNMPTREE_TYPES
29 CFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -I. -DUSE_LIBBEGEMOT
30 CFLAGS+= -DUSE_TCPWRAPPERS -DQUADFMT='"llu"' -DQUADXFMT='"llx"'
31 CFLAGS+= -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_ERR_H -DHAVE_STRLCPY
32 DPADD=  ${LIBBEGEMOT} ${LIBBSNMP} ${LIBWRAP}
33 LDADD=  -lbegemot -lbsnmp -lwrap
34
35 LDFLAGS= -Wl,-export-dynamic
36
37 .if ${MK_OPENSSL} != "no"
38 CFLAGS+= -DHAVE_LIBCRYPTO
39 .endif
40
41 oid.h: tree.def Makefile
42         gensnmptree -e ${XSYM} < ${.ALLSRC:M*.def} > ${.TARGET}
43
44 .ORDER: tree.c tree.h
45 tree.c tree.h: tree.def
46         gensnmptree -l < ${.ALLSRC}
47
48 MANFILTER=      sed -e 's%@MODPATH@%${LIBDIR}/%g'               \
49                     -e 's%@DEFPATH@%${DEFSDIR}/%g'              \
50                     -e 's%@MIBSPATH@%${BMIBSDIR}/%g'
51
52 .include <bsd.prog.mk>