summaryrefslogtreecommitdiff
path: root/snmp_usm/Makefile.in
blob: d48ff39d4fc1f79044fc55278c0053989761776c (plain) (blame)
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
# Copyright (c) 2018
#	Hartmut Brandt.
#	All rights reserved.
#
# Author: Harti Brandt <harti@freebsd.org>
#
# $Begemot: bsnmp/trunk/snmp_ntp/Makefile.in 1487 2008-12-23 19:03:33Z brandt_h $
#
MOD=	usm
SRCS=	${MOD}_tree.c usm_snmp.c
DEFS=	${MOD}_tree.def
BMIBS=
MAN3=	snmp_usm.3
MANFILTER=	sed -e 's%@MODPATH@%${LIBDIR}/%g'		\
		    -e 's%@DEFPATH@%${DEFSDIR}/%g'		\
		    -e 's%@MIBSPATH@%${MIBSDIR}/%g'

XSYM=	snmpUsmMIB usmNoAuthProtocol usmHMACMD5AuthProtocol \
	usmHMACSHAAuthProtocol usmNoPrivProtocol usmDESPrivProtocol \
	usmAesCfb128Protocol usmUserSecurityName

LIB=	snmp_${MOD}.la
SHLIB_MAJOR= 6
SHLIB_MINOR= 0

CFLAGS+= -I$(srcdir) -I$(srcdir)/../lib -I$(builddir) -I$(top_builddir) -I$(srcdir)/../snmpd

CLEANFILES += ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h *.3out

# for bootstrapping
GENSNMPTREE= $(builddir)/../gensnmptree/gensnmptree -I${srcdir}/../lib

$(LIB): ${MOD}_oid.h ${MOD}_tree.h $(SRCS:.c=.lo) 
	$(LIBTOOL) --mode=link $(CC) $(LDLAGS) -module -o $@ $(SRCS:.c=.lo) -rpath $(libdir) -version-info $(SHLIB_MAJOR):$(SHLIB_MINOR)

${MOD}_oid.h: ${MOD}_tree.def
	${GENSNMPTREE} <${srcdir}/${MOD}_tree.def -e ${XSYM} >$@

${MOD}_tree.h ${MOD}_tree.c : ${MOD}_tree.def
	${GENSNMPTREE} <${srcdir}/${MOD}_tree.def -l -p ${MOD}_