LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   external module makefile (https://www.linuxquestions.org/questions/linux-software-2/external-module-makefile-159963/)

yuhuahe 03-19-2004 05:05 PM

external module makefile
 
Hello,

I am trying to port an external module from kernel-2.4 to 2.6. In kernel 2.6, it has a new build system, the typical command to compile a module is:

make -C {kernel source path} SUBDIRS=`pwd` modules

my question: it comiples okay when all the source codes (*.h, *.c) are under one directory (for example test/); if I put *.h files under test/api, *.c files under test/exe, then I don't know where to put INCLUDE PATH, in kernel 2.4, you can always put "-I ../ ../api" in command line, but for 2.6, it doesn't work.

Is there anybody know how to set the INCLUDE PATH or show me a Makefile ? Thank you very much.


Yuhuahe


All times are GMT -5. The time now is 11:26 PM.