lkml.org 
[lkml]   [2005]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectprob with 2.6 Makefile
From
Date
I have a few doubs with the 2.6 makefile
Suppose I have the following dir structure:
maindir
|
-------
| |
subdir1 subdir2

Now both of this subdirs have many .c files which are to be compiled and
linked together to make final1.o & final2.o files in the subdirs
subdir1 & subdir2 respectively.

Now i want to link this two files subdir1/final1.o & subdir2/final2.o ,
in the maindir to make file say final.o file in maindir .

So the Makefile in maindir looks like:

obj-m := subdir1/ subdir2/

This will traverse the subdir1 & subdir2 and call their makefiles.
But how do i make final.o from subdir1/final1.o and subdir2/final2.o

Kindly help me with the solution.

Thanks in advance,
Regards,
Sapna


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-14 07:06    [W:0.241 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site