473,503 Members | 2,313 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Makefile and dependencies of lib

Gg
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
Jul 22 '05 #1
1 1750
On Tue, 24 Feb 2004 20:19:40 +0100, Gg <vo**@mon-reply.to> wrote in
comp.lang.c++:
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,


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
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4459
by: Efrat Regev | last post by:
Hello, I'd like to ask a question concerning a python script in a makefile. Suppose I have a C++ project (sorry for raising this in a Python newsgroup), with some makefile for it. Before...
6
3023
by: cppaddict | last post by:
Hi, If this is off-topic for this group, please let me know a better place to post (I searched Google groups and couldn't find one myself). My question is about designing Makefiles. If your...
1
1549
by: matthias_k | last post by:
Hello, I am currently working on a Makefile mechanism which can for most parts create dependencies automatically and look for sources in other folders than "." . As a basis, I have been...
5
11555
by: Jacobo Rodriguez Villar | last post by:
Hello, Is there any way (or program) to convert and maintain easily a C++ project (vs7.1) to a Makefile file, in order to build it in Linux? Many thanks -- Jacobo Rodríguez Villar ...
1
1052
by: noleander | last post by:
I've got a Visual C++ solution containing two projects: A and B. A depends on B. When I change a source code file in B, then try to build A, I want B to get built automatically before A. How...
2
1420
by: Ralf Propach | last post by:
I have a visual studio 2005 project that consists of two managed C++ classes and some unmanaged C functions. The output of this project is a dll, that is loaded by a program with LoadLibrary()....
4
1927
by: srikar | last post by:
Hi can any one explain me the reason. For any Makefile there will be assosiated rules file, may be in same directory or in other directory. What is the need for this rules file. Is it that...
7
19821
by: HT-Lab | last post by:
Hi All, Not strictly a C++ question but I am sure this is a common compile issue :-) I have a generic makefile (see below) that I would like update such that if I make some changes to a header...
4
2022
by: Joseph | last post by:
Hi gurus, Can someone quickly remind me how I can add a -g (to generate the debug table inside the core file) so I can run it against GDB and find out whats happening. I tried to put it in the ...
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6976
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5566
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.