[Top][All Lists]

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

Re: Makefile for project and library

From: Paul Smith
Subject: Re: Makefile for project and library
Date: Tue, 12 Feb 2008 09:48:54 -0500

On Mon, 2008-02-11 at 11:40 +0100, John Theal wrote:
> Project  (main dir)
> (subdirs)
> src
> lib

This is really an automake question, not a GNU make question.  You can
ask the automake folks by email address@hidden  The simple answer is
to just redefine SUBDIRS like this:

        SUBDIRS = lib src

so that lib is built first.  However, in normal make that won't work if
you build in parallel, since some parts of src might be built before all
of lib is complete.  I don't know enough about this aspect of automake
to tell you whether it will work properly in parallel with their

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

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