AUTOMAKE_OPTIONS = foreign
-SUBDIRS = . include portals ldiskfs lvfs obdclass lov ldlm ptlrpc \
- obdecho osc mdc lmv mds obdfilter ost llite cobd ptlbd snapfs smfs cmobd \
- liblustre doc utils tests conf scripts
+ALWAYS_SUBDIRS := include lvfs obdclass lov ldlm sec ptlrpc \
+ obdecho osc lmv cobd ptlbd cmobd doc utils tests conf scripts \
+ autoconf
-EXTRA_DIST = BUGS FDL Rules.in kernel_patches kernel-tests/Makefile \
- README.kernel-source
+SERVER_SUBDIRS := ldiskfs smfs snapfs obdfilter ost mds
-# these empty rules are needed so that automake doesn't add its own
-# recursive rules
-etags-recursive:
+CLIENT_SUBDIRS := mdc llite
-ctags-recursive:
+LIBLUSTRE_SUBDIRS := liblustre
-tags-recursive:
+SUBDIRS := $(ALWAYS_SUBDIRS)
-TAGS:
+if SERVER
+SUBDIRS += $(SERVER_SUBDIRS)
+endif
-tags:
- rm -f $(top_srcdir)/TAGS
- ETAGSF=`etags --version | grep -iq exuberant && \
- echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \
- find $(top_srcdir) -name '*.[hc]' | xargs etags $$ETAGSF -a
+if CLIENT
+SUBDIRS += $(CLIENT_SUBDIRS)
+endif
- rm -f $(top_srcdir)/tags
- CTAGSF=`ctags --version | grep -iq exuberant && \
- echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \
- find $(top_srcdir) -name '*.[hc]' | xargs ctags $$CTAGSF -a
+if LIBLUSTRE
+if !CLIENT
+SUBDIRS += $(CLIENT_SUBDIRS)
+endif
+SUBDIRS += $(LIBLUSTRE_SUBDIRS)
+endif
-if MODULES
-all-am: modules
+DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS) \
+ $(LIBLUSTRE_SUBDIRS)
-if !LINUX25
-DEP = dep
-dep: .depend
-
-.depend:
- $(MAKE) $(ARCH_UM) -C $(LINUX) -f $(PWD)/kernel-tests/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) -o scripts -o include/config/MARKER _sfdep_$(PWD) _FASTDEP_ALL_SUB_DIRS="$(PWD)"
-endif
+EXTRA_DIST = BUGS FDL Rules.in kernel_patches
if LDISKFS
LDISKFS = ldiskfs-sources
lvfs-sources:
$(MAKE) sources -C lvfs
-modules: lustre_build_version $(DEP) $(LDISKFS) lvfs-sources
- $(MAKE) $(ARCH_UM) -C $(LINUX) -f $(PWD)/kernel-tests/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) SUBDIRS=$(PWD) -o tmp_include_depends -o scripts -o include/config/MARKER $@
-
-endif # MODULES
+sources: $(LDISKFS) lvfs-sources lustre_build_version
all-recursive: lustre_build_version
lustre_build_version:
- perl $(top_builddir)/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
+ perl $(top_builddir)/lustre/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver
- cmp -s $(top_builddir)/include/linux/lustre_build_version.h tmpver \
+ cmp -s $(top_builddir)/lustre/include/linux/lustre_build_version.h tmpver \
2> /dev/null && \
$(RM) tmpver || \
- mv tmpver $(top_builddir)/include/linux/lustre_build_version.h
-
-dist-hook:
- find $(distdir) -name .deps | xargs rm -rf
- find $(distdir) -name CVS | xargs rm -rf
-
-rpms: dist Makefile
- rpmbuild -ta $(distdir).tar.gz
+ mv tmpver $(top_builddir)/lustre/include/linux/lustre_build_version.h
CSTK=/tmp/checkstack
CSTKO=/tmp/checkstack.orig