help-make
[Top][All Lists]
Advanced

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

Re: Combine AR support with autodependencies


From: jandyman
Subject: Re: Combine AR support with autodependencies
Date: Wed, 20 Jul 2016 15:39:43 -0700 (PDT)

I realized after doing some more searching that I needed to come up with a
more concrete example. When I  retraced my steps, everything suddenly
started working exactly as expected, even with built-in rules! (Note that
the built-in rule for archive targets does not seem to be documented in the
docs I've got. But it seems to be close to the example rule they show in the
section on archive targets.

Interestingly, when I tried to get an example working that /does/ keep .o
files around (not what I really want), I couldn't get things to work. Not
that it matters, just for anyone searching here. So for those searching
here, what did work was:

trylib.a: trylib.a(hello.o) 
        ranlib trylib.a

trylib.a(hello.o): ork.h   (this line brought in from include file to show
that autodependencies will work)

When I do this, touching either hello.c or ork.h will properly update the
archive. 

Thanks for letting me know about the "deterministic mode", I did find that
issue when searching. My system isn't set up that way (recent Linux Mint),
which is good because it would really screw me up.



--
View this message in context: 
http://gnu-make.2324884.n4.nabble.com/Combine-AR-support-with-autodependencies-tp17275p17277.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.



reply via email to

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