]>
Commit | Line | Data |
---|---|---|
fc49813f | 1 | # |
82805b60 | 2 | # Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved. |
dfc130f3 | 3 | # |
fc49813f NS |
4 | |
5 | TOPDIR = . | |
6 | HAVE_BUILDDEFS = $(shell test -f $(TOPDIR)/include/builddefs && echo yes || echo no) | |
7 | ||
8 | ifeq ($(HAVE_BUILDDEFS), yes) | |
9 | include $(TOPDIR)/include/builddefs | |
10 | endif | |
11 | ||
12 | CONFIGURE = configure include/builddefs include/platform_defs.h | |
16c44ed2 | 13 | LSRCFILES = configure configure.in Makepkgs aclocal.m4 install-sh README VERSION |
f937adac | 14 | |
6c6508ec | 15 | LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \ |
99ec8857 | 16 | Logs/* built .census install.* install-dev.* *.gz |
f937adac | 17 | |
3d93ccb7 | 18 | SUBDIRS = include libxfs libxlog libxcmd libhandle libdisk \ |
d347f827 | 19 | copy db fsck growfs io logprint mkfs quota repair rtcp \ |
16c44ed2 | 20 | m4 man doc po debian build |
fc49813f NS |
21 | |
22 | default: $(CONFIGURE) | |
23 | ifeq ($(HAVE_BUILDDEFS), no) | |
24 | $(MAKE) -C . $@ | |
25 | else | |
26 | $(SUBDIRS_MAKERULE) | |
27 | endif | |
28 | ||
29 | ifeq ($(HAVE_BUILDDEFS), yes) | |
30 | include $(BUILDRULES) | |
31 | else | |
32 | clean: # if configure hasn't run, nothing to clean | |
33 | endif | |
34 | ||
e246ba5f | 35 | $(CONFIGURE): |
fc49813f | 36 | autoconf |
6c6508ec NS |
37 | ./configure \ |
38 | --prefix=/ \ | |
39 | --exec-prefix=/ \ | |
40 | --sbindir=/sbin \ | |
41 | --bindir=/usr/sbin \ | |
42 | --libdir=/lib \ | |
43 | --libexecdir=/usr/lib \ | |
82805b60 | 44 | --enable-lib64=yes \ |
6c6508ec NS |
45 | --includedir=/usr/include \ |
46 | --mandir=/usr/share/man \ | |
47 | --datadir=/usr/share \ | |
48 | $$LOCAL_CONFIGURE_OPTIONS | |
f937adac | 49 | touch .census |
fc49813f | 50 | |
16c44ed2 | 51 | aclocal.m4:: |
82805b60 | 52 | aclocal --acdir=`pwd`/m4 --output=$@ |
16c44ed2 | 53 | |
fc49813f NS |
54 | install: default |
55 | $(SUBDIRS_MAKERULE) | |
56 | $(INSTALL) -m 755 -d $(PKG_DOC_DIR) | |
57 | $(INSTALL) -m 644 README $(PKG_DOC_DIR) | |
58 | ||
59 | install-dev: default | |
60 | $(SUBDIRS_MAKERULE) | |
61 | ||
62 | realclean distclean: clean | |
63 | rm -f $(LDIRT) $(CONFIGURE) | |
16c44ed2 | 64 | rm -rf autom4te.cache Logs |