From: Sam Ravnborg <sam@ravnborg.org>
To: Chirag Pandya <searchformehere@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Compiling External Modules - Local Include Files
Date: Tue, 10 Aug 2004 18:25:23 +0200 [thread overview]
Message-ID: <20040810162523.GB7437@mars.ravnborg.org> (raw)
In-Reply-To: <20040810150232.3937.qmail@web12506.mail.yahoo.com>
Please add lkml on cc: when sending mails direct. I nthis way the list readers also
see the response.
On Tue, Aug 10, 2004 at 08:02:32AM -0700, Chirag Pandya wrote:
> I'm having trouble recompiling my 2.4 modules that
> contain local include files. Here is the scenario:
> Dir contents
> ------------
> /home/radar/dirA/local.h
> /home/radar/dirB/main.c
> /home/radar/dirB/Makefile
>
> main.c
> ------
> #include "dirA/local.h"
> main ()
> {
> /* Module Code*/
> }
>
> Using the following make command
> # make -C /usr/src/linux-2.6.7 M=$(PWD) modules
As explained in private mail two options exists:
1) Restructure your code to have .h file in
either the same dir as your code, and in a sub-directory
to the location of your .c files.
2) Use
EXTRA_CFLAGS := -I..
I recommend 1).
Sam
prev parent reply other threads:[~2004-08-10 16:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-10 15:02 Chirag Pandya
2004-08-10 16:25 ` Sam Ravnborg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040810162523.GB7437@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=searchformehere@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®