Connecting Tech Pros Worldwide Forums | Help | Site Map

Makefile and dependencies of lib

Gg
Guest
 
Posts: n/a
#1: Jul 22 '05
Hi,

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 : http://gerald.fauvelle.free.fr
| Photos : http://www.gg.free.fr
| myStats : Système de statistiques
| Version 1.0.8 - http://emcity.nexenservices.com/mystats

Jack Klein
Guest
 
Posts: n/a
#2: Jul 22 '05

re: Makefile and dependencies of lib


On Tue, 24 Feb 2004 20:19:40 +0100, Gg <voir@mon-reply.to> wrote in
comp.lang.c++:
[color=blue]
> Hi,
>
> 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,[/color]

The operations of make and library files it not a language issue, it
is one defined by your particular tool set. You need to ask in a
compiler specific support group.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Closed Thread