]>
Commit | Line | Data |
---|---|---|
fc49813f | 1 | # |
eae766ca | 2 | # Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved. |
dfc130f3 | 3 | # |
fc49813f NS |
4 | # This program is free software; you can redistribute it and/or modify it |
5 | # under the terms of version 2 of the GNU General Public License as | |
6 | # published by the Free Software Foundation. | |
dfc130f3 | 7 | # |
fc49813f NS |
8 | # This program is distributed in the hope that it would be useful, but |
9 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
dfc130f3 | 11 | # |
fc49813f NS |
12 | # Further, this software is distributed without any warranty that it is |
13 | # free of the rightful claim of any third person regarding infringement | |
14 | # or the like. Any license provided herein, whether implied or | |
15 | # otherwise, applies only to this software file. Patent licenses, if | |
16 | # any, provided herein do not apply to combinations of this program with | |
17 | # other software, or any other product whatsoever. | |
dfc130f3 | 18 | # |
fc49813f NS |
19 | # You should have received a copy of the GNU General Public License along |
20 | # with this program; if not, write the Free Software Foundation, Inc., 59 | |
21 | # Temple Place - Suite 330, Boston MA 02111-1307, USA. | |
dfc130f3 | 22 | # |
fc49813f NS |
23 | # Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, |
24 | # Mountain View, CA 94043, or: | |
dfc130f3 RC |
25 | # |
26 | # http://www.sgi.com | |
27 | # | |
28 | # For further information regarding this notice, see: | |
29 | # | |
fc49813f NS |
30 | # http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/ |
31 | # | |
32 | ||
33 | TOPDIR = . | |
34 | HAVE_BUILDDEFS = $(shell test -f $(TOPDIR)/include/builddefs && echo yes || echo no) | |
35 | ||
36 | ifeq ($(HAVE_BUILDDEFS), yes) | |
37 | include $(TOPDIR)/include/builddefs | |
38 | endif | |
39 | ||
40 | CONFIGURE = configure include/builddefs include/platform_defs.h | |
16c44ed2 | 41 | LSRCFILES = configure configure.in Makepkgs aclocal.m4 install-sh README VERSION |
f937adac | 42 | |
6c6508ec | 43 | LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \ |
99ec8857 | 44 | Logs/* built .census install.* install-dev.* *.gz |
f937adac | 45 | |
d321ceac | 46 | SUBDIRS = include libxfs libxlog libhandle libdisk \ |
e246ba5f | 47 | db freeze fsck growfs io imap logprint mkfile mkfs repair rtcp \ |
16c44ed2 | 48 | m4 man doc po debian build |
fc49813f NS |
49 | |
50 | default: $(CONFIGURE) | |
51 | ifeq ($(HAVE_BUILDDEFS), no) | |
52 | $(MAKE) -C . $@ | |
53 | else | |
54 | $(SUBDIRS_MAKERULE) | |
55 | endif | |
56 | ||
57 | ifeq ($(HAVE_BUILDDEFS), yes) | |
58 | include $(BUILDRULES) | |
59 | else | |
60 | clean: # if configure hasn't run, nothing to clean | |
61 | endif | |
62 | ||
e246ba5f | 63 | $(CONFIGURE): |
fc49813f | 64 | autoconf |
6c6508ec NS |
65 | ./configure \ |
66 | --prefix=/ \ | |
67 | --exec-prefix=/ \ | |
68 | --sbindir=/sbin \ | |
69 | --bindir=/usr/sbin \ | |
70 | --libdir=/lib \ | |
71 | --libexecdir=/usr/lib \ | |
72 | --includedir=/usr/include \ | |
73 | --mandir=/usr/share/man \ | |
74 | --datadir=/usr/share \ | |
75 | $$LOCAL_CONFIGURE_OPTIONS | |
f937adac | 76 | touch .census |
fc49813f | 77 | |
16c44ed2 NS |
78 | aclocal.m4:: |
79 | aclocal --acdir=$(TOPDIR)/m4 --output=$@ | |
80 | ||
fc49813f NS |
81 | install: default |
82 | $(SUBDIRS_MAKERULE) | |
83 | $(INSTALL) -m 755 -d $(PKG_DOC_DIR) | |
84 | $(INSTALL) -m 644 README $(PKG_DOC_DIR) | |
85 | ||
86 | install-dev: default | |
87 | $(SUBDIRS_MAKERULE) | |
88 | ||
89 | realclean distclean: clean | |
90 | rm -f $(LDIRT) $(CONFIGURE) | |
16c44ed2 | 91 | rm -rf autom4te.cache Logs |