2009-09-09 18:34:09 +02:00
|
|
|
$NetBSD: patch-ab,v 1.3 2009/09/09 16:34:09 joerg Exp $
|
2001-11-19 20:39:04 +01:00
|
|
|
|
|
|
|
--- src/Makefile.in.orig Sat Sep 16 20:24:24 2000
|
|
|
|
+++ src/Makefile.in
|
|
|
|
@@ -24,13 +24,13 @@
|
|
|
|
srcdir= @srcdir@
|
|
|
|
VPATH= @srcdir@
|
|
|
|
|
|
|
|
-TARGETS= libadns.a
|
|
|
|
+TARGETS= libadns.la
|
|
|
|
include $(srcdir)/../settings.make
|
|
|
|
include adns.make
|
|
|
|
|
|
|
|
install:
|
|
|
|
set -xe; for f in $(TARGETS); \
|
|
|
|
- do $(INSTALL_DATA) $$f $(lib_dir)/$$f; done
|
2009-09-02 13:01:50 +02:00
|
|
|
+ do ${LIBTOOL} --mode=install $(INSTALL_DATA) $$f $(lib_dir)/$$f; done
|
2001-11-19 20:39:04 +01:00
|
|
|
$(INSTALL_DATA) $(srcdir)/../src/adns.h $(include_dir)/adns.h
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@@ -39,10 +39,10 @@
|
|
|
|
|
|
|
|
ALLOBJS= $(LIBOBJS)
|
|
|
|
|
|
|
|
-libadns.a: $(LIBOBJS)
|
|
|
|
- rm -f $@
|
|
|
|
- $(AR) cqv $@.new $(LIBOBJS)
|
|
|
|
- $(RANLIB) $@.new
|
|
|
|
- mv -f $@.new $@
|
|
|
|
+libadns.la: $(LIBOBJS)
|
2009-09-09 18:34:09 +02:00
|
|
|
+ ${LIBTOOL} --mode=link $(CC) $(LDFLAGS) -o $@ $(LIBOBJS:.o=.lo) -rpath ${PREFIX}/lib -version-info $(MAJOR):$(MINOR)
|
2001-11-19 20:39:04 +01:00
|
|
|
|
|
|
|
$(LIBOBJS): adns.h internal.h config.h
|
|
|
|
+
|
|
|
|
+.c.o:
|
2009-09-02 13:01:50 +02:00
|
|
|
+ ${LIBTOOL} --mode=compile $(CC) $(CFLAGS) -c $<
|