LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 10-19-2004, 04:45 PM   #1
ashbalu
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: mandrake 2.6.3
Posts: 1

Rep: Reputation: 0
Angry 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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Including header files and source files for classes Feenix Programming 8 09-28-2005 11:53 AM
Difference between including a header file and 'class' declaration in C++ scoTtkIm Programming 1 09-09-2004 05:23 AM
Creating a Makefile with multiple header files MattG1981 Programming 4 07-28-2004 06:04 PM
[makefile] Do header files need to be set targets? chuanyung Programming 2 03-11-2004 10:22 PM
location of dir of C header files? VMWARE install.. s7nner Linux - Newbie 3 09-08-2003 12:32 AM


All times are GMT -5. The time now is 10:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration