X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2FRules;h=b28540a76523d5c01f39243ed9b6a494be33c44b;hb=232670baa31bb869e32d86acdc23b91de1dc1700;hp=828a8c9eb69787e34be797bb5452728914c3c8b9;hpb=ed919b6742399c9a30b08314f1ddf424034c0319;p=fs%2Flustre-release.git diff --git a/lustre/Rules b/lustre/Rules index 828a8c9..b28540a 100644 --- a/lustre/Rules +++ b/lustre/Rules @@ -10,15 +10,29 @@ # name_SOURCES = my.c files.c # include $(top_srcdir)/Rules -$(MODULE).o: $($(MODULE)_OBJECTS) +if LINUX25 + +# We still need to link each module with vermagic.o to get rid of "kernel taited" warnings. +basename=$(shell echo $< | sed -e 's/\.c//g' | sed -e 's/-//g' | sed -e 's/\.o//g') +AM_CPPFLAGS=-I$(top_builddir)/include -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -DKBUILD_MODNAME=$(MODULE) -DKBUILD_BASENAME=$(basename) + +else + +AM_CPPFLAGS=-I$(top_builddir)/include + +endif + +$(MODULE).o: $($(MODULE)_OBJECTS) $($(MODULE)_DEPENDENCIES) $(LD) -m "`$(LD) --help | awk '/supported emulations/ {print $$4}'`" -r -o $(MODULE).o $($(MODULE)_OBJECTS) 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 + rm -f $(top_srcdir)/tags - find $(top_srcdir)/../portals -name '*.[hc]' | xargs etags -a - find $(top_srcdir) -name '*.[hc]' | xargs etags -a - find $(top_srcdir)/../portals -name '*.[hc]' | xargs ctags -a - find $(top_srcdir) -name '*.[hc]' | xargs ctags -a + CTAGSF=`ctags --version | grep -iq exuberant && \ + echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \ + find $(top_srcdir) -name '*.[hc]' | xargs ctags $$CTAGSF -a -EXTRA_DIST += CVS \ No newline at end of file