]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - Makefile
Ongoing xfs_repair/libxfs scaling work - incorporate lio_listio detection into the...
[thirdparty/xfsprogs-dev.git] / Makefile
CommitLineData
fc49813f 1#
82805b60 2# Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved.
dfc130f3 3#
fc49813f
NS
4
5TOPDIR = .
6HAVE_BUILDDEFS = $(shell test -f $(TOPDIR)/include/builddefs && echo yes || echo no)
7
8ifeq ($(HAVE_BUILDDEFS), yes)
9include $(TOPDIR)/include/builddefs
10endif
11
12CONFIGURE = configure include/builddefs include/platform_defs.h
16c44ed2 13LSRCFILES = configure configure.in Makepkgs aclocal.m4 install-sh README VERSION
f937adac 14
6c6508ec 15LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
99ec8857 16 Logs/* built .census install.* install-dev.* *.gz
f937adac 17
3d93ccb7 18SUBDIRS = 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
22default: $(CONFIGURE)
23ifeq ($(HAVE_BUILDDEFS), no)
24 $(MAKE) -C . $@
25else
26 $(SUBDIRS_MAKERULE)
27endif
28
29ifeq ($(HAVE_BUILDDEFS), yes)
30include $(BUILDRULES)
31else
32clean: # if configure hasn't run, nothing to clean
33endif
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 51aclocal.m4::
82805b60 52 aclocal --acdir=`pwd`/m4 --output=$@
16c44ed2 53
fc49813f
NS
54install: default
55 $(SUBDIRS_MAKERULE)
56 $(INSTALL) -m 755 -d $(PKG_DOC_DIR)
57 $(INSTALL) -m 644 README $(PKG_DOC_DIR)
58
59install-dev: default
60 $(SUBDIRS_MAKERULE)
61
62realclean distclean: clean
63 rm -f $(LDIRT) $(CONFIGURE)
16c44ed2 64 rm -rf autom4te.cache Logs