Hi,
I have some written some linux drivers for some devices and would like to
automate the compilation process with GNU autoconf and automake. So far,
everything seems to be in the right place, except the composition of
Makefile.am. I need to find out how to taylor my Makefile.am so that it
will only compile (without linking stage) the source code into a linux
kernel module. For instance, here is an excerpt of one of my linux kernel
driver's Makefile.am:
ypmodules_PROGRAMS = yp.o
ypmodules_SOURCES = yp_init.c yp_usb.c yp_yy.c
ypmodules_LDFLAGS = -module -shared
The above Makefile.am is able to produce yp.o as well as yp binary file.
However, since I am only interested in the kernel module, yp.o, is there a
way to modify the above Makefile.am to just compile the "yp" source files
into a linux kernel module "yp.o" without linking stage to produce a yp
binary executable file? If so, how?
TIA.