Makefile and dependencies of lib

From: G?rald (gerald.fauvelle.net_at_free.fr)
Date: 02/24/04


Date: 24 Feb 2004 04:45:51 -0800

Hi,

First, I'm not sure to be in the right group here, so if I'm not, you
can tell me where to post :-)

I have a project that depends on other projets. So I have a Makefile
that calls Makefile of sub-projects to build the libs if needed.
Once libs are built, the main Makefile link everything and make the
executable.
For dependencies of .h files, I solved the problem, but I still have a
problem for dependencies of libs. For example if I change nothing in
the subprojects, when I run the makefile, it calls all makefiles of
subprojects and does nothing (that is totally normal) but it makes the
link even when nothing has changed.
So I tried to find a way to make the link only if one of the lib of
subprojects have changed... Is it at least possible or do I have to
forget it?

Thanks,

Gérald



Relevant Pages

  • Makefile and dependencies of lib
    ... that calls Makefile of sub-projects to build the libs if needed. ... Once libs are built, the main Makefile link everything and make the ... problem for dependencies of libs. ... subprojects and does nothing but it makes the ...
    (comp.os.linux.development.apps)
  • Makefile and dependencies of lib
    ... that calls Makefile of sub-projects to build the libs if needed. ... Once libs are built, the main Makefile link everything and make the ... problem for dependencies of libs. ... subprojects and does nothing but it makes the ...
    (comp.lang.cpp)
  • Re: Makefile and dependencies of lib
    ... > that calls Makefile of sub-projects to build the libs if needed. ... > subprojects and does nothing but it makes the ... The operations of make and library files it not a language issue, ...
    (comp.lang.cpp)
  • Re: Makefile and dependencies of lib
    ... That's easy -- just make your final target depend on ... Don't try to connect you Makefile rules to sub-Makefiles other way ... that is for you project's Makefile calls subprojects' Makefiles ... > that calls Makefile of sub-projects to build the libs if needed. ...
    (comp.os.linux.development.system)
  • Makefile and lib dependencies
    ... that calls Makefile of sub-projects to build the libs if needed. ... Once libs are built, the main Makefile link everything and make the ... problem for dependencies of libs. ... all: deps $ ...
    (comp.unix.programmer)