Makefile problem

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

 



Hi,
   I have some Makefile questions
1)Why a kernel module in 2.6 kernel cannot be compiled
with single gcc command? Why it requires Makefile in
current directory so that i can use Makefile?

2) why following command used to compile 2.4 kernel
module fails on 2.6 kernel
gcc  -D__KERNEL__ -DMODULE -DLINUX -O2 -Wall
-Wstrict-prototypes -I/lib/modules/`uname
-r`/build/include -c -o example.ko example.c

3) Is that because of gcc cannot create .ko file??
then what header changes occurred from .o to .ko
module implementaion?

Thanks & Regards,
cranium



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-
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