OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / lib / adns / Makefile.in
1 # Makefile - top-level Makefile
2 #  
3 #  This file is
4 #    Copyright (C) 1997-2000 Ian Jackson <ian@davenant.greenend.org.uk>
5 #
6 #  It is part of adns, which is
7 #    Copyright (C) 1997-2000 Ian Jackson <ian@davenant.greenend.org.uk>
8 #    Copyright (C) 1999-2000 Tony Finch <dot@dotat.at>
9
10 #  This program is free software; you can redistribute it and/or modify
11 #  it under the terms of the GNU General Public License as published by
12 #  the Free Software Foundation; either version 2, or (at your option)
13 #  any later version.
14 #  
15 #  This program is distributed in the hope that it will be useful,
16 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
17 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 #  GNU General Public License for more details.
19 #  
20 #  You should have received a copy of the GNU General Public License
21 #  along with this program; if not, write to the Free Software Foundation,
22 #  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
23
24 # Remember to change ADNS_VERSION_STRING in client/client.h too, and
25 # possibly library soname (MAJOR and MINOR in settings.make.in).
26 DISTVERSION=    1.1
27
28 srcdir=         @srcdir@
29 VPATH=          @srcdir@
30
31 #ENABLE_DYNAMIC=        @ENABLE_DYNAMIC@
32 #ifeq ($(ENABLE_DYNAMIC),elf)
33 #SUBDIRS_DYNAMIC=dynamic
34 #else
35 SUBDIRS_DYNAMIC=
36 #endif
37
38 SUBDIRS= src $(SUBDIRS_DYNAMIC) 
39 #client regress
40
41 all install uninstall clean distclean mostlyclean maintainer-clean distprep:
42         set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
43         $(MAKE) $@-here
44
45 all-here install-here uninstall-here distprep-here:     README
46
47 clean-here mostlyclean-here:
48                 rm -f *~ ./#*# core *.orig *.rej adns-*.tar.gz
49                 rm -rf dist_tmp
50
51 distclean-here maintainer-clean-here:   clean-here
52                 rm -f settings.make config.h config.cache config.log config.status
53
54 install-strip:
55         $(MAKE) INSTALL_PROGRAM_FLAGS=-s
56
57 dist_tmp=dist_tmp/adns-$(DISTVERSION)
58 dist:                   distprep
59         rm -rf dist_tmp*
60         mkdir dist_tmp $(dist_tmp)
61         find \( -name CVS -o -name dist_tmp* \) -prune -o -type d -print | \
62                 sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh
63         find \( -name CVS -o -name dist_tmp* \) -prune -o -type f -print | \
64                 sed -e 's#.*#ln & $(dist_tmp)/&#' | sh
65         $(MAKE) -C dist_tmp/adns-$(DISTVERSION) distclean
66         cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)`
67         gzip -9 $(dist_tmp).tar
68         mv $(dist_tmp).tar.gz .
69
70 check:                  all
71         $(MAKE) -C regress check
72
73 README:                 README.html
74         lynx -dump -number_links -cfg=/dev/null ./README.html >README.tmp
75         mv -f README.tmp README
76
77 romfs:
78         $(ROMFSINST) client/adnshost /bin/adnshost
79         $(ROMFSINST) dynamic/libadns.so.1.0 /lib/libadns.so.1.0
80         $(ROMFSINST) -s /lib/libadns.so.1.0 /lib/libadns.so.1
81         $(ROMFSINST) -s /lib/libadns.so.1.0 /lib/libadns.so
82
83 TAGS info dvi:
84         # do nothing