X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2FautoMakefile.am;h=664a9e21ebdca2af5380ce5628b4d77235de995b;hb=73bca6c1f4923cdf673fa11486aec04ec3576051;hp=84f3c26251999cf80a38203e9e36e6fe931e8d8e;hpb=f6fb5ab37906ed82a64f4e9a664427f209e76d54;p=fs%2Flustre-release.git diff --git a/lustre/autoMakefile.am b/lustre/autoMakefile.am index 84f3c26..664a9e21 100644 --- a/lustre/autoMakefile.am +++ b/lustre/autoMakefile.am @@ -1,19 +1,51 @@ -# Copyright (C) 2001 Cluster File Systems, Inc. # -# This code is issued under the GNU General Public License. -# See the file COPYING in this distribution +# GPL HEADER START +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 only, +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License version 2 for more details (a copy is included +# in the LICENSE file that accompanied this code). +# +# You should have received a copy of the GNU General Public License +# version 2 along with this program; If not, see +# http://www.sun.com/software/products/lustre/docs/GPLv2.pdf +# +# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, +# CA 95054 USA or visit www.sun.com if you need additional information or +# have any questions. +# +# GPL HEADER END +# -AUTOMAKE_OPTIONS = foreign +# +# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Use is subject to license terms. +# +# Copyright (c) 2011, 2014, Intel Corporation. +# -ALWAYS_SUBDIRS := include lvfs obdclass lov ldlm sec ptlrpc \ - obdecho osc lmv cobd ptlbd cmobd doc utils tests conf scripts \ - autoconf +# +# This file is part of Lustre, http://www.lustre.org/ +# Lustre is a trademark of Sun Microsystems, Inc. +# -SERVER_SUBDIRS := ldiskfs smfs snapfs obdfilter ost mds +AUTOMAKE_OPTIONS = foreign -CLIENT_SUBDIRS := mdc llite +# also update lustre/autoconf/lustre-core.m4 AC_CONFIG_FILES +ALWAYS_SUBDIRS = include obdclass ldlm ptlrpc obdecho \ + mgc fid fld doc utils tests scripts autoconf contrib conf -LIBLUSTRE_SUBDIRS := liblustre +SERVER_SUBDIRS = ost mgs mdt mdd ofd osd-zfs osd-ldiskfs \ + quota osp lod target lfsck + +CLIENT_SUBDIRS = mdc lmv llite lov osc SUBDIRS := $(ALWAYS_SUBDIRS) @@ -25,52 +57,19 @@ if CLIENT SUBDIRS += $(CLIENT_SUBDIRS) endif -if LIBLUSTRE -if !CLIENT -SUBDIRS += $(CLIENT_SUBDIRS) -endif -SUBDIRS += $(LIBLUSTRE_SUBDIRS) -endif +DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS) -DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS) \ - $(LIBLUSTRE_SUBDIRS) - -EXTRA_DIST = BUGS FDL Rules.in kernel_patches - -if LDISKFS -LDISKFS = ldiskfs-sources -ldiskfs-sources: - $(MAKE) sources -C ldiskfs -endif +EXTRA_DIST = BUGS kernel_patches BUILDING -lvfs-sources: - $(MAKE) sources -C lvfs - -sources: $(LDISKFS) lvfs-sources lustre_build_version +sources: lustre_build_version all-recursive: lustre_build_version +BUILD_VER_H=$(top_builddir)/lustre/include/lustre/lustre_build_version.h + lustre_build_version: perl $(top_builddir)/lustre/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver - cmp -s $(top_builddir)/lustre/include/linux/lustre_build_version.h tmpver \ - 2> /dev/null && \ - $(RM) tmpver || \ - mv tmpver $(top_builddir)/lustre/include/linux/lustre_build_version.h - -CSTK=/tmp/checkstack -CSTKO=/tmp/checkstack.orig - -checkstack: - [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv ${CSTK} ${CSTKO} || true - for i in ${SUBDIRS} portals/knals/*; do \ - MOD=$$i/`basename $$i`.o; \ - [ -f $$MOD ] && objdump -d $$MOD | perl tests/checkstack.pl; \ - done | sort -nr > ${CSTK} - [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK} - -checkstack-update: - [ -f ${CSTK} ] && mv ${CSTK} ${CSTKO} - -checkstack-clean: - rm -f ${CSTK} ${CSTKO} + cmp -s $(BUILD_VER_H) tmpver > tmpdiff 2> /dev/null && \ + $(RM) tmpver tmpdiff || \ + mv -f tmpver $(BUILD_VER_H)