chiark / gitweb /
Fix typo in changelog entry for 1.6.1
[adns.git] / src / Makefile.in
1 # src/Makefile[.in] - library main Makefile
2
3 #  This file is part of adns, which is Copyright Ian Jackson
4 #  and contributors (see the file INSTALL for full details).
5 #  
6 #  This program is free software; you can redistribute it and/or modify
7 #  it under the terms of the GNU General Public License as published by
8 #  the Free Software Foundation; either version 3, or (at your option)
9 #  any later version.
10 #  
11 #  This program is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #  GNU General Public License for more details.
15 #  
16 #  You should have received a copy of the GNU General Public License
17 #  along with this program; if not, write to the Free Software Foundation.
18
19 srcdir=         @srcdir@
20 VPATH=          @srcdir@
21
22 TARGETS=        libadns.a
23 include         ../settings.make
24 include         $(srcdir)/adns.make
25
26 DIRCFLAGS=      -I. -I$(srcdir)
27
28 install:
29                 mkdir -p $(libdir) $(includedir)
30                 set -xe; for f in $(TARGETS); \
31                         do $(INSTALL_DIR) $(DESTDIR)$(libdir); \
32                            $(INSTALL_DATA) $$f $(DESTDIR)$(libdir)/$$f; done
33                 $(INSTALL_DIR)  $(DESTDIR)$(includedir)
34                 $(INSTALL_DATA) $(srcdir)/../src/adns.h $(DESTDIR)$(includedir)/adns.h
35
36 uninstall:
37                 for f in $(TARGETS); do rm -f $(libdir)/$$f; done
38                 rm -f $(includedir)/adns.h
39
40 ALLOBJS=        $(LIBOBJS)
41
42 libadns.a:      $(LIBOBJS)
43                 rm -f $@
44                 $(AR) cqv $@.new $(LIBOBJS)
45                 $(RANLIB) $@.new
46                 mv -f $@.new $@
47
48 $(LIBOBJS):     adns.h internal.h config.h