Hi,
Does anyone know how to write the GNU automake (Makefile.am) script to just
compile a source code (C programs) as a linux driver/module? Here is the
scenario:
I have created several files, i.e. file1.c, file2.c, file.h. These files
when
et compiled will produce a Linux driver for some I/O devices. So far, I have
the configure.in made from issuing the "autoscan". I also have created the
Makefile.am which consists of the following lines:
bin_PROGRAMS = file
file_SOURCES = file1.c file2.c file.h
I also have executed "aclocal; automake; autoconf" to generate the
configuration files, Makefile.in, and Makefile. When I typed "make", it
compiled file1.c, file2.c, and created the "file" program. What I want is to
create a driver/module "file.o" for Linux kernel. Does anyone have any idea
what I should include in the Makefile.am to tell the GNU automake and
autoconf
just to compile and create a driver/module for Linux kernel?
--
Robert Young,