blob: 526c3c53ac180de226b61c9c4a6a8d3b4b875eb5 (
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
43
44
45
|
$NetBSD: patch-ab,v 1.3 1999/08/15 09:44:01 tron Exp $
--- snmplib/Makefile.in.orig Mon Mar 15 17:49:10 1999
+++ snmplib/Makefile.in Sun Aug 15 11:17:50 1999
@@ -7,12 +7,14 @@
snmp_auth.c asn1.c md5.c \
party.c context.c acl.c view.c \
party_parse.c context_parse.c acl_parse.c \
- system.c vacm.c int64.c read_config.c snmp_debug.c
+ system.c vacm.c int64.c read_config.c snmp_debug.c \
+ libwrap.c
OBJS= snmp_client.o mib.o parse.o snmp_api.o snmp.o \
snmp_auth.o asn1.o md5.o \
party.o context.o acl.o view.o \
party_parse.o context_parse.o acl_parse.o \
- system.o vacm.o int64.o read_config.o snmp_debug.o
+ system.o vacm.o int64.o read_config.o snmp_debug.o \
+ libwrap.o
#all but md5.h, vacm.h, libsnmp.h, and read_config.h are copied to the installed
#include directory
@@ -35,19 +37,18 @@
CFLAGS=@CFLAGS@ @SHLIB_CFLAGS@
CPPFLAGS=@CPPFLAGS@ -I. -I.. -I$(srcdir) -I$(srcdir)/..
-CC = @CC@ $(CPPFLAGS)
+CC = $(LIBTOOL) @CC@ $(CPPFLAGS)
all: $(TARG)
-libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION): ${OBJS}
- $(SHLIB_LD_CMD) libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION) ${OBJS}
- $(RANLIB) libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION)
+$(TARG): $(OBJS)
+ $(CC) -o $@ $(OBJS:.o=.lo) -version-info 0:0 -rpath $(PREFIX)/lib
installdirs:
@$(SHELL) $(srcdir)/../mkinstalldirs $(libdir) $(includedir)
install: $(TARG) installdirs
- @for i in $(TARG) ; do $(INSTALL) $$i $(libdir) ; $(RANLIB) $(libdir)/$$i ; echo "install: installed $$i in $(libdir)" ; done
+ @for i in $(TARG) ; do $(LIBTOOL) $(INSTALL) $$i $(libdir) ; $(RANLIB) $(libdir)/$$i ; echo "install: installed $$i in $(libdir)" ; done
@for i in $(INSTALLHEADERS) ; do $(INSTALL) $(srcdir)/$$i $(includedir) ; echo "install: installed $$i in $(includedir)" ; done
$(SHLIB_LDCONFIG_CMD)
|