]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/bsnmpd/bsnmpd/Makefile
Revert r299830, it has couple of fatal errors.
[FreeBSD/FreeBSD.git] / usr.sbin / bsnmpd / bsnmpd / Makefile
1 # $FreeBSD$
2 #
3 # Author: Harti Brandt <harti@freebsd.org>
4
5 .include <src.opts.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
20 FILESGROUPS= BMIBS DEFS
21
22 BMIBS=  FOKUS-MIB.txt BEGEMOT-MIB.txt BEGEMOT-SNMPD.txt
23 BMIBSDIR= ${SHAREDIR}/snmp/mibs
24 DEFS=   tree.def
25 DEFSDIR= ${SHAREDIR}/snmp/defs
26
27 CFLAGS+= -DSNMPTREE_TYPES
28 CFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -I. -DUSE_LIBBEGEMOT
29 CFLAGS+= -DUSE_TCPWRAPPERS
30 CFLAGS+= -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_ERR_H -DHAVE_STRLCPY
31 LIBADD= begemot bsnmp wrap
32
33 LDFLAGS= -Wl,-export-dynamic
34
35 .if ${MK_OPENSSL} != "no"
36 CFLAGS+= -DHAVE_LIBCRYPTO
37 .endif
38
39 oid.h: tree.def Makefile
40         gensnmptree -e ${XSYM} < ${.ALLSRC:M*.def} > ${.TARGET}
41
42 .ORDER: tree.c tree.h
43 tree.c tree.h: tree.def
44         gensnmptree -l < ${.ALLSRC}
45
46 MANFILTER=      sed -e 's%@MODPATH@%${LIBDIR}/%g'               \
47                     -e 's%@DEFPATH@%${DEFSDIR}/%g'              \
48                     -e 's%@MIBSPATH@%${BMIBSDIR}/%g'
49
50 NO_WCAST_ALIGN= yes
51 WARNS?=         6
52
53 .include <bsd.prog.mk>