]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - Makefile
Ongoing xfs_repair/libxfs scaling work - incorporate lio_listio detection into the...
[thirdparty/xfsprogs-dev.git] / Makefile
1 #
2 # Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved.
3 #
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
13 LSRCFILES = configure configure.in Makepkgs aclocal.m4 install-sh README VERSION
14
15 LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
16 Logs/* built .census install.* install-dev.* *.gz
17
18 SUBDIRS = include libxfs libxlog libxcmd libhandle libdisk \
19 copy db fsck growfs io logprint mkfs quota repair rtcp \
20 m4 man doc po debian build
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
35 $(CONFIGURE):
36 autoconf
37 ./configure \
38 --prefix=/ \
39 --exec-prefix=/ \
40 --sbindir=/sbin \
41 --bindir=/usr/sbin \
42 --libdir=/lib \
43 --libexecdir=/usr/lib \
44 --enable-lib64=yes \
45 --includedir=/usr/include \
46 --mandir=/usr/share/man \
47 --datadir=/usr/share \
48 $$LOCAL_CONFIGURE_OPTIONS
49 touch .census
50
51 aclocal.m4::
52 aclocal --acdir=`pwd`/m4 --output=$@
53
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)
64 rm -rf autom4te.cache Logs