prob with 2.6 Makefile

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

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux