# Copyright (C) 2001 Cluster File Systems, Inc. # # This code is issued under the GNU General Public License. # See the file COPYING in this distribution # Build a kernel module, name.o, and install it in $(moduledir) by: # MODULE = name # module_DATA = name.o # EXTRA_PROGRAMS = name # name_SOURCES = my.c files.c # include $(top_srcdir)/Rules 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 CTAGSF=`ctags --version | grep -iq exuberant && \ echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \ find $(top_srcdir) -name '*.[hc]' | xargs ctags $$CTAGSF -a