X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2FautoMakefile.am;h=e94ce3d5b8e5c8c8f63e683ea23f2f90b69bb88e;hp=24f80d0e294de02ff813bed4a5a72cc4bc5b4533;hb=HEAD;hpb=89f9a5bced24ecb7c84040a1ed88dcef4384f7c6 diff --git a/lustre/autoMakefile.am b/lustre/autoMakefile.am index 24f80d0..5d9ee36 100644 --- a/lustre/autoMakefile.am +++ b/lustre/autoMakefile.am @@ -1,50 +1,57 @@ -# Copyright (C) 2001 Cluster File Systems, Inc. # -# This code is issued under the GNU General Public License. -# See the file COPYING in this distribution - -AUTOMAKE_OPTIONS = foreign +# 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.gnu.org/licenses/gpl-2.0.html +# +# GPL HEADER END +# -SUBDIRS = include ldiskfs lvfs obdclass lov ldlm sec ptlrpc \ - obdecho osc mdc lmv mds obdfilter ost llite cobd ptlbd smfs snapfs \ - cmobd liblustre doc utils tests conf scripts autoconf +# +# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Use is subject to license terms. +# +# Copyright (c) 2011, 2014, Intel Corporation. +# -EXTRA_DIST = BUGS FDL Rules.in kernel_patches +# +# This file is part of Lustre, http://www.lustre.org/ +# -if LDISKFS -LDISKFS = ldiskfs-sources -ldiskfs-sources: - $(MAKE) sources -C ldiskfs -endif +AUTOMAKE_OPTIONS = foreign -lvfs-sources: - $(MAKE) sources -C lvfs +# also update lustre/autoconf/lustre-core.m4 AC_CONFIG_FILES +ALWAYS_SUBDIRS = include obdclass ldlm ptlrpc obdecho ec \ + mgc fid fld doc utils tests scripts autoconf conf kunit -sources: $(LDISKFS) lvfs-sources lustre_build_version +SERVER_SUBDIRS = ost mgs mdt mdd ofd osd-zfs osd-ldiskfs \ + quota osp lod target lfsck -all-recursive: lustre_build_version +CLIENT_SUBDIRS = mdc lmv llite lov osc -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 +SUBDIRS := $(ALWAYS_SUBDIRS) -CSTK=/tmp/checkstack -CSTKO=/tmp/checkstack.orig +if SERVER +SUBDIRS += $(SERVER_SUBDIRS) +endif -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} +if CLIENT +SUBDIRS += $(CLIENT_SUBDIRS) +endif -checkstack-update: - [ -f ${CSTK} ] && mv ${CSTK} ${CSTKO} +DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS) -checkstack-clean: - rm -f ${CSTK} ${CSTKO} +EXTRA_DIST = kernel_patches