Dependencies in Makefile.am

Amilcar do Carmo Lucas amilcar at ida.ing.tu-bs.de
Sun Mar 23 18:27:05 UTC 2003


Hi all,

I'm having a problem with libraries and Makefiles.am

The problem was first reported by Brian Gold on
http://bugs.kde.org/show_bug.cgi?id=50762

Meanwile I implemanted the changes he describes on the bug report but 
the problem presists.

Here it hi again:

My project has lots on internal .a libraries and diferent binary targets

Target A
    source1.cpp
    source2.cpp
    lib_a.la
    lib_b.la

Target B
    source3.cpp
    lib_a.a
    lib_c.a

It all compiles and runs fine if I issue make all

But the problem is:

lib_a.a depends on
   sourcex.cpp

lib_b.a
   sourcey.cpp

lib_c.a
   sourcez.cpp

When I change sourcez.cpp and then ask gideon to build TargetB it should 
recompile lib_c.a and then link it to get an uptodate TargetB.
But instead of doing that it just answers "Nothing to do target is uptodate"

Makefile.am for TargetB (autogenerated by Gideon CVS head):
bin_PROGRAMS = TargetB
flexfilmtestsuite_SOURCES = source3.cpp

SUBDIRS = mylib
TargetB_LDADD = $(top_builddir)/mylib/lib_a.a $(top_builddir)/mylib/lib_c.a
TargetB_DEPENDENCIES = $(top_builddir)/mylib/lib_a.a 
$(top_builddir)/mylib/lib_c.a

Any ideas on how to change the Makefile.am to make it work?


Thanks,

-- 
Amilcar Lucas

---------------------------------------------------------------------------
             Institut fuer Datentechnik und Kommunikationsnetze
               Technische Universitaet Braunschweig, Germany      

Amilcar do Carmo Lucas                  Tel. : +49 531 391 3751
Raum 1315                               Fax  : +49 531 391 3750
Hans-Sommer Str. 66                     Email: amilcar at ida.ing.tu-bs.de
D-38106 Braunschweig
           http://www.ida.ing.tu-bs.de/people/amilcar/home.e.shtml
---------------------------------------------------------------------------






More information about the KDevelop-devel mailing list