2 # Copyright (c) 2000-2008 Silicon Graphics, Inc. All Rights Reserved.
6 HAVE_BUILDDEFS = $(shell test -f $(TOPDIR)/include/builddefs && echo yes || echo no)
8 ifeq ($(HAVE_BUILDDEFS), yes)
9 include $(TOPDIR)/include/builddefs
12 TESTS = $(shell sed -n -e '/^[0-9][0-9][0-9]*/s/ .*//p' group)
13 CONFIGURE = configure include/builddefs include/config.h
14 DMAPI_MAKEFILE = dmapi/Makefile
15 LSRCFILES = configure configure.in aclocal.m4 README VERSION
16 LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
19 SUBDIRS = include lib ltp src m4
21 default: $(CONFIGURE) $(DMAPI_MAKEFILE) new remake check $(TESTS)
22 ifeq ($(HAVE_BUILDDEFS), no)
26 # automake doesn't always support "default" target
27 # so do dmapi make explicitly with "all"
28 cd $(TOPDIR)/dmapi; make all
31 ifeq ($(HAVE_BUILDDEFS), yes)
34 clean: # if configure hasn't run, nothing to clean
41 --libexecdir=/usr/lib \
45 cd $(TOPDIR)/dmapi/ ; ./configure
48 aclocal --acdir=`pwd`/m4 --output=$@
50 install install-dev install-lib:
52 realclean distclean: clean
53 rm -f $(LDIRT) $(CONFIGURE)
54 rm -rf autom4te.cache Logs