$NetBSD: patch-ab,v 1.5 2015/01/29 09:47:03 mef Exp $ date: 2001-11-20 04:39:05 +0900; author: jlam; state: Exp; Strongly buildlinkify and libtoolize (NetBSD's interesting contributions to technical vocabulary). --- src/Makefile.in.orig 2014-10-20 08:07:03.000000000 +0900 +++ src/Makefile.in 2015-01-29 18:34:04.000000000 +0900 @@ -23,7 +23,7 @@ srcdir= @srcdir@ VPATH= @srcdir@ -TARGETS= libadns.a +TARGETS= libadns.la include ../settings.make include $(srcdir)/adns.make @@ -32,7 +32,7 @@ DIRCFLAGS= -I. -I$(srcdir) install: mkdir -p $(libdir) $(includedir) set -xe; for f in $(TARGETS); \ - do $(INSTALL_DATA) $$f $(libdir)/$$f; done + do ${LIBTOOL} --mode=install $(INSTALL_DATA) $$f $(libdir)/$$f; done $(INSTALL_DATA) $(srcdir)/../src/adns.h $(includedir)/adns.h uninstall: @@ -41,10 +41,10 @@ uninstall: ALLOBJS= $(LIBOBJS) -libadns.a: $(LIBOBJS) - rm -f $@ - $(AR) cqv $@.new $(LIBOBJS) - $(RANLIB) $@.new - mv -f $@.new $@ +libadns.la: $(LIBOBJS) + ${LIBTOOL} --mode=link $(CC) $(LDFLAGS) -o $@ $(LIBOBJS:.o=.lo) -rpath ${PREFIX}/lib -version-info $(MAJOR):$(MINOR) $(LIBOBJS): adns.h internal.h config.h + +.c.o: + ${LIBTOOL} --mode=compile $(CC) $(CFLAGS) -c $<