1 # src/Makefile[.in] - library main Makefile
3 # This file is part of adns, which is Copyright Ian Jackson
4 # and contributors (see the file INSTALL for full details).
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)
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.
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.
23 include ../settings.make
24 include $(srcdir)/adns.make
26 DIRCFLAGS= -I. -I$(srcdir)
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
37 for f in $(TARGETS); do rm -f $(libdir)/$$f; done
38 rm -f $(includedir)/adns.h
44 $(AR) cqv $@.new $(LIBOBJS)
48 $(LIBOBJS): adns.h internal.h config.h