This is a discussion on Need Help ....What is 'obj-m = hello.o' within the Getting started tutorials forums, part of the Linux Getting Started category; Hello friends I use the following lines many times in makefile - while building kernel module- ...... obj-m = hello.o ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Hello friends
I use the following lines many times in makefile - while building kernel module- ...... obj-m = hello.o .......... where hello.o is my kernel module name. Can anybody explain me why ' obj-m= ' is used ? I tried to find out in Linux Device Driver Book.But the book only says ' ...using gcc make extension... ' . If anybody has any idea please explain . |
| Sponsored Links | ||
|
|
|
|||
|
Quote:
Still i could not understand.How the make interpret the rule.Could you say details?And what is the make gcc extention by which it is possible ? |
|
||||
|
obj-m is a list of what kernel modules to build. The .o and other objects will be automatically built from the corresponding .c file (no need to list the source files explicitly).
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |