summaryrefslogtreecommitdiff
path: root/net/ucd-snmp/patches/patch-ac
blob: 9a7270bb333f97e9e9e7531784ddc3f6690e6fbb (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
46
47
48
49
50
51
52
53
54
55
56
$NetBSD: patch-ac,v 1.3 2000/01/23 10:42:15 itojun Exp $
--- agent/Makefile.in.orig	Fri Aug 13 07:16:28 1999
+++ agent/Makefile.in	Fri Jan 21 08:53:53 2000
@@ -3,9 +3,11 @@
 #
 
 TARG		= snmpd
-USELIBS		= ../snmplib/libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION)
-LOCAL_LIBS	= -L../snmplib
-LIBS		= $(CC_RUNTIME_ARG) -lsnmp @WRAPLIBS@ @LIBS@
+#USELIBS		= ../snmplib/libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION)
+USELIBS= ../snmplib/libsnmp.la
+#LOCAL_LIBS	= -L../snmplib
+#LIBS		= $(CC_RUNTIME_ARG) -lsnmp @WRAPLIBS@ @LIBS@
+LIBS=	 ${USELIBS} @WRAPLIBS@ @LIBS@
 
 CPPFLAGS	= -I.. -I$(srcdir)/.. -I$(srcdir)/../snmplib		\
 		  -I$(srcdir) -I. -I$(srcdir)/mibgroup -Imibgroup @CPPFLAGS@
@@ -24,23 +26,23 @@
 #	cd dlmods; $(MAKE); cd ..
 
 getkstat: getkstat.o
-	$(CC) $(CFLAGS) -o $@ $? $(LOCAL_LIBS) $(LIBS)
+	$(LIBTOOL) $(CC) $(CFLAGS) -o $@ $? $(LOCAL_LIBS) $(LIBS)
 
 getkstat.o: mibgroup/kernel_sunos5.c
-	$(CC) $(CFLAGS) -o $@ -D_GETKSTAT_TEST -DDODEBUG -c $? 
+	$(LIBTOOL) $(CC) $(CFLAGS) -o $@ -D_GETKSTAT_TEST -DDODEBUG -c $? 
 
 getmibstat: getmibstat.o
-	$(CC) $(CFLAGS) -o $@ $? $(LOCAL_LIBS) $(LIBS)
+	$(LIBTOOL) $(CC) $(CFLAGS) -o $@ $? $(LOCAL_LIBS) $(LIBS)
 
 getmibstat.o: mibgroup/kernel_sunos5.c
-	$(CC) $(CFLAGS) -o $@ -D_GETMIBSTAT_TEST -DDODEBUG -c $? 
+	$(LIBTOOL) $(CC) $(CFLAGS) -o $@ -D_GETMIBSTAT_TEST -DDODEBUG -c $? 
 
 
 AGENTOBJS=snmpd.o kernel.o snmp_agent.o snmp_vars.o agent_read_config.o agent_registry.o auto_nlist.o
 
 
 snmpd:	${MIBOBJS} ${AGENTOBJS} $(USELIBS)
-	${CC} -o $@ ${AGENTOBJS} ${MIBOBJS} $(LOCAL_LIBS) ${LDFLAGS} ${LIBS}  
+	$(LIBTOOL) ${CC} -o $@ ${AGENTOBJS} ${MIBOBJS} $(LOCAL_LIBS) ${LDFLAGS} ${LIBS}  
 
 
 clean:
@@ -50,7 +52,7 @@
 
 
 install:  installdirs
-	@$(INSTALL) $(TARG) $(sbindir) ; echo "install:  installed $(TARG) in $(sbindir) "
+	@$(LIBTOOL) $(INSTALL) $(TARG) $(sbindir) ; echo "install:  installed $(TARG) in $(sbindir) "
 #	cd dlmods ; $(MAKE) install; cd ..
 
 installdirs: