summaryrefslogtreecommitdiffstats
path: root/contrib/bsnmp/snmpd/Makefile.in
blob: 9498bd4780624ccb7474fa8d652c9bbf750cdbbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright (c) 2001-2003
#	Fraunhofer Institute for Open Communication Systems (FhG Fokus).
#	All rights reserved.
#
# Author: Harti Brandt <harti@freebsd.org>
#
# $Begemot: bsnmp/snmpd/Makefile.in,v 1.8 2005/04/22 12:18:14 brandt_h Exp $
#

PROG=	bsnmpd
SRCS=	tree.c main.c action.c config.c export.c trap.c
SRCS+=	trans_udp.c trans_lsock.c
MAN1=	bsnmpd.1
MAN3=	snmpmod.3
MANFILTER=	sed -e 's%@MODPATH@%${LIBDIR}/%g'		\
		    -e 's%@DEFPATH@%${DEFSDIR}/%g'		\
		    -e 's%@MIBSPATH@%${MIBSDIR}/%g'

XSYM=	snmpMIB begemotSnmpdModuleTable begemotSnmpd begemotTrapSinkTable \
	sysUpTime snmpTrapOID coldStart authenticationFailure \
	begemotSnmpdLocalPortTable begemotSnmpdTransUdp begemotSnmpdTransLsock

BMIBS=	FOKUS-MIB.txt BEGEMOT-MIB.txt BEGEMOT-SNMPD.txt
DEFS=	tree.def
INCS=	snmpmod.h

CFLAGS+= -I$(builddir)/. -I${srcdir} -I${srcdir}/../lib
LDFLAGS+= -export-dynamic

$(PROG): $(SRCS:.c=.lo) oid.h tree.h 
	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(SRCS:.c=.lo) \
	    $(builddir)/../lib/libbsnmp.la $(LIBEV) $(LIBWRAP)

CLEANFILES += tree.c tree.h oid.h

tree.c tree.h: tree.def ../gensnmptree/gensnmptree
	$(builddir)/../gensnmptree/gensnmptree -l <${srcdir}/tree.def

oid.h: tree.def ../gensnmptree/gensnmptree
	$(builddir)/../gensnmptree/gensnmptree <${srcdir}/tree.def -e ${XSYM} >$@

$(SRCS:.c=.lo): oid.h
OpenPOWER on IntegriCloud