: Driver/Module Compilation Using GNU Automake/Autoconf

: Driver/Module Compilation Using GNU Automake/Autoconf

Post by Robert Youn » Thu, 27 Jul 2000 04:00:00



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,

 
 
 

1. Automating Linux Driver/Module Compilation Using GNU Automake/Autoconf

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
get 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?

TIA.

--
Robert Young,

2. installboot

3. "GNU Autoconf, Automake and Libtool Book"

4. Reading is much more interesting than TV (0730/1708)

5. GNU Autoconf/Automake

6. Help with Funny Preprocessor Output

7. GNU Autoconf+Automake vs. No linking (Just compile)

8. M$ Netmeeting or similar?

9. GNU autoconf/automake: how to extend the configure script?

10. autoconf/automake to compile and produce an object module file

11. autoconf/automake to compile and produce an obkect module file

12. Making make less verbose using autoconf and automake

13. Using automake and autoconf with C++: A tutorial