LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   creating Makefile with multiple kernel module files (http://www.linuxquestions.org/questions/programming-9/creating-makefile-with-multiple-kernel-module-files-270460/)

b123coder 12-26-2004 08:41 AM

creating Makefile with multiple kernel module files
 
I am not getting how to write a Makefile and require your help. I have written 2 modules in which exporting_module.c exports function and using_module.c uses that module.
when i give following command without creatinf makefile i got errors

[myhost@localhost module]# gcc -c using_module.c exporting_module.c -I /usr/src/linux-2.4.22-1.2115.nptl/include/
using_module.c: In function `func1':
using_module.c:30: warning: assignment makes pointer from integer without a cast
exporting_module.c:106: error: syntax error before "this_object_must_be_defined_as_export_objs_in_the_Makefile"
exporting_module.c:106: warning: data definition has no type or storage class

I have defined MODULE and __KERNEL__ symbols in both modules.


All times are GMT -5. The time now is 06:04 AM.