LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-19-2004, 06:05 PM   #1
yuhuahe
LQ Newbie
 
Registered: Mar 2004
Posts: 16

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


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
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 04:57 AM
Require a Makefile for kernel module programs b123coder Linux - Newbie 1 12-28-2004 11:11 AM
creating Makefile with multiple kernel module files b123coder Programming 0 12-26-2004 09:41 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 01:23 PM
module makefile for c++ in kernel 2.6 yuhuahe Linux - Software 0 04-14-2004 07:03 PM


All times are GMT -5. The time now is 10:30 AM.

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