autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: source code in several directories


From: jmcferreira
Subject: Re: source code in several directories
Date: Tue, 11 Sep 2007 15:35:34 +0100 (WEST)
User-agent: SquirrelMail/1.4.6

>
> You may not realize this but you are actually asking an automake
> question but posted it to the autoconf mailing list.  I will answer
> anyway but if there is any followup needed please send the additional
> automake questions to the automake list.  Thanks.

Thx. I did not realise that.... all this is still very new stuff for me. I
will do as you suggest

>
>
> The directory structure seems fine to me.  Not one I could choose but
> it does work okay.  I have worked with other projects with a similar
> structure with includes off to the side.

thx. that is quite reasuring for me...

>
>> - how do I tell the tools that all headers are to be found in the
>> include
>> dir ? in the top-level Makefile.am or in the src one ? what goes in each
>> of them ?
>
> In the src/Makefile.am file add a cpp include directory that tells the
> compiler to look for the include files in the "include" directory.
> Your hand build Makefiles would have needed something similar.  Simply
> use the same options for automake to use too.
>
> This adds directory relative to the src directory to the include
> directory.  This would be my personal preference.
>
>   AM_CPPFLAGS = -I$(srcdir)/../include
>
> This adds a directory relative to the top level source directory.  I
> could not guess at what your exact directory structure would be and
> you will need to adjust this as needed to match your hierarchy.
>
>   AM_CPPFLAGS = -I$(top_srcdir)/ourlib/include
>
> Use one or the other, not both.  I showed two example choices.

thx again. your explanations are clear. I will try it out.

Joao

>
> Bob
>
>
> _______________________________________________
> Autoconf mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/autoconf
>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]