Recursive makefiles for module spanning over multiple dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I have been trying to generate a single .ko from multiple files which
are scattered across
multiple folders, any idea how to write such a makefile?

My module will be compiled externally i.e. not as part of Linux kernel
build infrastructure.

Apologies for dumb question, but I am not very familiar to Linux make yet.

My module looks like this:

Here is the directory structure.

  test-module
     |
     +-- test1
     |      |
     |      +--test1.c
     |      +--Makefile
     |
     +-- test2
     |    |
     |    +---test2.c
     |    +---Makefile
     |
     +-- Makefile

-Leo.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux