[Top][All Lists]

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

Re: problem to use autoconf/automake

From: Ralf Wildenhues
Subject: Re: problem to use autoconf/automake
Date: Tue, 26 Apr 2005 07:48:57 +0200
User-agent: Mutt/1.4.1i

* Nicolas Haller wrote on Tue, Apr 26, 2005 at 12:20:49AM CEST:
> On Mon, Apr 25, 2005 at 10:45:56PM +0200, Ralf Wildenhues wrote:
> > * Nicolas Haller wrote on Mon, Apr 25, 2005 at 08:43:40PM CEST:
> > > 
> > > I am writing a program in C++ and I want to use autotools to help me
> > > to build my program.
> > > I have organized my "working directory" in some subdirectory. It's look
> > > like this:
> > Don't do it like this.  Don't have a build directory (yet).
> > Put under your source tree, either only one, or one per
> > directory, like this:
> It's an another problem, when you say "or one per directory"? How can I
> do that?

One per directory in the source tree is pretty common.

> I have a top Makefile with my single and simple line SUBDIRS=src test
> lib doc and in src/ the which was in build/ before, but in
> subdirectories of src/ ?

Well, put
  SUBDIRS = whatever_dirs_live_under_src
into src/  Don't forget to mention all to-be-generated
Makefiles in the AC_CONFIG_FILES macro in

> I had only .cc and .hh files, and no program or
> librairies to make, so I don't know what to write into So
> what can I do if I want to have makefile in all subdirectories?

Above should make it all clear.  Otherwise, please be more specific.


BTW, sorry Stefan, I had not seen your post before I sent mine.  :)

reply via email to

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