Whamcloud - gitweb
Phase 1 of LNET Reorg
[fs/lustre-release.git] / build / autoMakefile.am.toplevel
1 AUTOMAKE_OPTIONS = foreign
2
3 #SUBDIRS := . build @LIBSYSIO_SUBDIR@ @SNMP_SUBDIR@ lnet portals lustre
4 #DIST_SUBDIRS := build @SNMP_DIST_SUBDIR@ libsysio lnet portals lustre
5 SUBDIRS := . build @LIBSYSIO_SUBDIR@ @SNMP_SUBDIR@ lnet lustre
6 DIST_SUBDIRS := build @SNMP_DIST_SUBDIR@ libsysio lnet lustre
7
8 EXTRA_DIST := config.h.in
9
10 # these empty rules are needed so that automake doesn't add its own
11 # recursive rules
12 etags-recursive:
13
14 ctags-recursive:
15
16 tags-recursive:
17
18 TAGS:
19
20 tags:
21         rm -f $(top_srcdir)/TAGS
22         ETAGSF=`etags --version | grep -iq exuberant && \
23                 echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \
24         find $(top_srcdir) -name '*.[hc]' |grep -v linux-stage |xargs etags $$ETAGSF -a
25
26         rm -f $(top_srcdir)/tags
27         CTAGSF=`ctags --version | grep -iq exuberant && \
28                 echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \
29         find $(top_srcdir) -name '*.[hc]' |grep -v linux-stage |xargs ctags $$CTAGSF -a
30
31 if MODULES
32 all-sources:
33         $(MAKE) sources -C lnet
34 #       $(MAKE) sources -C portals
35         $(MAKE) sources -C lustre
36
37 if LINUX
38 all-am: modules
39
40 if !LINUX25
41 DEP = dep
42 dep: .depend
43
44 .depend: all-sources
45         $(MAKE) $(ARCH_UM) CC="$(CC)" -C $(LINUX_OBJ)                \
46         -f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \
47         -o scripts -o include/config/MARKER _sfdep_$(PWD)            \
48         _FASTDEP_ALL_SUB_DIRS="$(PWD)"
49
50 CLEANFILES = .depend
51 endif # !LINUX25
52
53 modules: $(DEP) all-sources
54         $(MAKE) $(ARCH_UM) CC="$(CC)" -C $(LINUX_OBJ)                \
55         -f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \
56         $(MODULE_TARGET)=$(PWD) -o tmp_include_depends -o scripts -o \
57         include/config/MARKER $@
58 endif # LINUX
59
60 endif # MODULES
61
62 dist-hook:
63         find $(distdir) -name .deps | xargs rm -rf
64         find $(distdir) -name CVS | xargs rm -rf
65
66 build/lustre.spec: build/lustre.spec.in config.status
67         ./config.status build/lustre.spec
68
69 rpms: build/lustre.spec dist Makefile
70         rpmbuild -ta $(distdir).tar.gz