Whamcloud - gitweb
land 0.5.20.3 b_devel onto HEAD (b_devel will remain)
[fs/lustre-release.git] / lustre / Rules
1 # Copyright (C) 2001  Cluster File Systems, Inc.
2 #
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
5
6 # Build a kernel module, name.o, and install it in $(moduledir) by:
7 #  MODULE = name
8 #  module_DATA = name.o
9 #  EXTRA_PROGRAMS = name
10 #  name_SOURCES = my.c files.c
11 #  include $(top_srcdir)/Rules
12
13
14 $(MODULE).o: $($(MODULE)_OBJECTS)
15         $(LD) -m "`$(LD) --help | awk '/supported emulations/ {print $$4}'`" -r -o $(MODULE).o $($(MODULE)_OBJECTS)
16
17 tags:
18         rm -f $(top_srcdir)/TAGS
19         rm -f $(top_srcdir)/tags
20         find $(top_srcdir)/../portals/ -name '*.[hc]' | xargs etags -a
21         find $(top_srcdir) -name '*.[hc]' | grep -v ".orig" | xargs etags -a
22         find $(top_srcdir)/../portals/ -name '*.[hc]' | xargs ctags -a
23         find $(top_srcdir) -name '*.[hc]' | grep -v ".orig" | xargs ctags -a
24
25 AM_CPPFLAGS=-I$(top_builddir)/include