LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to write Makefile in 2.6 for including header files in another dir ? (https://www.linuxquestions.org/questions/programming-9/how-to-write-makefile-in-2-6-for-including-header-files-in-another-dir-244776/)

ashbalu 10-19-2004 03:45 PM

How to write Makefile in 2.6 for including header files in another dir ?
 
Hi ,

I have written some *.c files in one directory "src" for some kernel module.
My own ".h" files are stored in another directory "include".

Now, I want to build modules using Makefile for 2.6 kernel (I'm using 2.6.3 Mandrake).

My main Makefile is in outer directory.It should call other Makefile located in
"src" directory to build modules.
I have included my own header files in .c files.

I have tried
EXTRA_CFLAGS := -I ./include

It doesn't work.
Please tell me solution for this ( Makefile should be written using new kbulid procedure for buliding kernel modules).


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