xref: /freebsd/usr.sbin/bsnmpd/bsnmpd/Makefile (revision b6a6dd1872dacca58f52be00781ccb3af7f8824d)
191a2f929SHartmut Brandt# $FreeBSD$
291a2f929SHartmut Brandt#
391a2f929SHartmut Brandt# Author: Harti Brandt <harti@freebsd.org>
491a2f929SHartmut Brandt
5723d6e64SHartmut BrandtCONTRIB=${.CURDIR}/../../../contrib/bsnmp
6723d6e64SHartmut Brandt.PATH: ${CONTRIB}/snmpd
791a2f929SHartmut Brandt
891a2f929SHartmut BrandtPROG=	bsnmpd
9b6a6dd18SHartmut BrandtSRCS=	main.c action.c config.c export.c trap.c trans_udp.c trans_lsock.c
10b6a6dd18SHartmut BrandtSRCS+=	oid.h tree.c tree.h
11b6a6dd18SHartmut BrandtXSYM=	snmpMIB begemotSnmpdModuleTable begemotSnmpd begemotTrapSinkTable \
12b6a6dd18SHartmut Brandt	sysUpTime snmpTrapOID coldStart authenticationFailure \
13b6a6dd18SHartmut Brandt	begemotSnmpdTransUdp begemotSnmpdTransLsock begemotSnmpdLocalPortTable
14b6a6dd18SHartmut BrandtCLEANFILES= oid.h tree.c tree.h
1591a2f929SHartmut BrandtMAN=	bsnmpd.1 snmpmod.3
16b6a6dd18SHartmut BrandtWARNS?=	6
1791a2f929SHartmut Brandt
18b6a6dd18SHartmut BrandtFILESGROUPS= MIBS DEFS
1991a2f929SHartmut Brandt
2091a2f929SHartmut BrandtMIBS=	FOKUS-MIB.txt BEGEMOT-MIB.txt BEGEMOT-SNMPD.txt
2191a2f929SHartmut BrandtMIBSDIR= ${SHAREDIR}/bsnmp/mibs
2291a2f929SHartmut BrandtDEFS=	tree.def
2391a2f929SHartmut BrandtDEFSDIR= ${SHAREDIR}/bsnmp/defs
2491a2f929SHartmut Brandt
25b6a6dd18SHartmut BrandtCFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -I.
26b6a6dd18SHartmut BrandtDPADD=	${LIBISC} ${LIBBSNMP}
2791a2f929SHartmut BrandtLDADD=	-lisc -lbsnmp
2891a2f929SHartmut Brandt
29b6a6dd18SHartmut BrandtLDFLAGS= -export-dynamic
30b6a6dd18SHartmut Brandt
31b6a6dd18SHartmut Brandtoid.h: tree.def
32b6a6dd18SHartmut Brandt	gensnmptree -e ${XSYM} < ${.ALLSRC} > ${.TARGET}
33b6a6dd18SHartmut Brandt
34b6a6dd18SHartmut Brandt.ORDER: tree.c tree.h
35b6a6dd18SHartmut Brandttree.c tree.h: tree.def
36b6a6dd18SHartmut Brandt	gensnmptree -l < ${.ALLSRC}
3791a2f929SHartmut Brandt
3891a2f929SHartmut Brandt.include <bsd.prog.mk>
39