# Copyright (c) 2001-2003 # Fraunhofer Institute for Open Communication Systems (FhG Fokus). # All rights reserved. # # Author: Harti Brandt # # $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