LIBS = @LIBS@
LDNSDIR = @LDNSDIR@
-INSTALL = $(libtool) --mode=install $(srcdir)/../install-sh
+INSTALL = $(srcdir)/../install-sh
COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS)
LINK = $(libtool) --mode=link $(CC) $(LDFLAGS) $(LIBS)
.PHONY: all clean realclean all-static
.SECONDARY: $(SOURCES:.c=.o)
-all: $(addsuffix -exe,$(PROGRAMS))
+all: $(addsuffix .prg,$(PROGRAMS))
-all-static: $(addsuffix -stc,$(PROGRAMS))
+all-static: $(addsuffix .stc,$(PROGRAMS))
%.o: $(srcdir)/%.c
- $(COMPILE) -c $<
+ $(COMPILE) -o $@ -c $<
-%-exe: $(srcdir)/%.o
- @if test $< -nt $(@:-exe=); then \
- $(LINK) -o $(@:-exe=) $^ ; \
+%.prg: %.o
+ @if test ! -f $(@:.prg=) -o $< -nt $(@:.prg=); then \
+ echo $(LINK) -o $(@:.prg=) $^ ; \
+ $(LINK) -o $(@:.prg=) $^ ; \
fi
-%-stc: $(srcdir)/%.o
- @if test $< -nt $@; then \
+%.stc: %.o
+ @if test ! -f $@ -o $< -nt $@; then \
+ echo $(LINK_STATIC) -o $@ $^ ; \
$(LINK_STATIC) -o $@ $^ ; \
fi
done
clean:
- rm -f *.o *.lo
+ rm -f *.o *.lo
+ rm -rf .libs
rm -f $(PROGRAMS)
- rm -f $(addsuffix -stc,$(PROGRAMS))
+ rm -f $(addsuffix .stc,$(PROGRAMS))
realclean: clean
rm -rf autom4te.cache/
$(INSTALL) -d -m 755 $(DESTDIR)$(mandir)
$(INSTALL) -d -m 755 $(DESTDIR)$(mandir)/man1
for i in $(PROGRAMS); do \
- ${INSTALL} -c $$i $(DESTDIR)$(bindir) ; \
+ $(libtool) --mode=install ${INSTALL} -c $$i $(DESTDIR)$(bindir) ; \
$(INSTALL) -c -m 644 $$i.1 $(DESTDIR)$(mandir)/man1/$$i.1 ; \
done
exit 0
[
specialldnsdir="$withval"
CPPFLAGS="$CPPFLAGS -I$withval/include"
- LDFLAGS="$LDFLAGS -L$withval/lib"
+ LDFLAGS="$LDFLAGS -L$withval -L$withval/lib"
LDNSDIR="$withval"
]
)
ldns_version=`grep LDNS_VERSION $ldns_dev_dir/ldns/util.h | sed -e 's/^.*"\(.*\)".*$/\1/'`
AC_MSG_RESULT([using $ldns_dev_dir with $ldns_version])
CPPFLAGS="$CPPFLAGS -I$ldns_dev_dir/include"
- LDFLAGS="$LDFLAGS -L$ldns_dev_dir/lib"
+ LDFLAGS="$LDFLAGS -L$ldns_dev_dir -L$ldns_dev_dir/lib"
LIBS="$LIBS -lldns"
AC_DEFINE(HAVE_LIBLDNS, 1, [If the ldns library is available.])
LDNSDIR="$ldns_dev_dir"
Summary: Lowlevel DNS(SEC) library with DNS tools
Name: ldns
-Version: 1.1.0
+Version: 1.1.1
Release: 1
License: BSD
Url: http://www.nlnetlabs.nl/%{name}/
%postun -p /sbin/ldconfig
%changelog
+* Thu Dec 14 2006 Wouter Wijngaards <wouter@nlnetlabs.nl> 1.1.1-1
+- New version number.
+
* Tue Aug 15 2006 Wouter Wijngaards <wouter@nlnetlabs.nl> 1.1.0-1
- reworked for new Makefile. configure calls by build script.
- names the docs for devel package in more detail.