Changed specs for cxfsaltix2
[xfstests-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 -a -f $(TOPDIR)/dmapi/Makefile && echo yes || echo no)
7
8 ifeq ($(HAVE_BUILDDEFS), yes)
9 include $(TOPDIR)/include/builddefs
10 endif
11
12 TESTS = $(shell sed -n -e '/^[0-9][0-9][0-9]*/s/ .*//p' group)
13 CONFIGURE = configure include/builddefs include/config.h
14 LSRCFILES = configure configure.in aclocal.m4 README VERSION
15 LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
16         check.log check.time
17
18 SUBDIRS = include lib ltp src m4 dmapi
19
20 default: $(CONFIGURE) new remake check $(TESTS)
21 ifeq ($(HAVE_BUILDDEFS), no)
22         $(MAKE) -C . $@
23 else
24         $(SUBDIRS_MAKERULE)
25 endif
26
27 ifeq ($(HAVE_BUILDDEFS), yes)
28 include $(BUILDRULES)
29 else
30 clean:  # if configure hasn't run, nothing to clean
31 endif
32
33 $(CONFIGURE):
34         autoheader
35         autoconf
36         ./configure \
37                 --libexecdir=/usr/lib \
38                 --enable-lib64=yes
39         cd $(TOPDIR)/dmapi/ ; ./configure
40
41 aclocal.m4::
42         aclocal --acdir=`pwd`/m4 --output=$@
43
44 install install-dev install-lib:
45
46 realclean distclean: clean
47         rm -f $(LDIRT) $(CONFIGURE)
48         rm -rf autom4te.cache Logs