I have a Makefile (GNU Make 3.80).  Let's say I have a target
for a binary called 'myBinary'.  myBinary depends on a few .so
files.  When I type 'make myBinary', and the files that generate
those .so files change, I want the .so files regenerated.

I don't, however, want 'myBinary' relinked, since the interface to
the .so file hasn't changed--relinking is unnecessary.

So far, my Makefile looks like this:

myBinary: myBinary.o myLibrary.so
        g++ --go-go-gadget-linker

myBinary.o: myBinary.cpp myBinary.h myLibrary.h

myLibrary.so: myLibrary.o

myLibrary.o: myLibrary.cpp myLibrary.h

How do I change this Makefile to keep the relinking from happening?
Dropping the .so dependency creates pain, because then 'make -j'
doesn't work right.

Thanks in advance!

_______________________________________________
help-gnu-utils mailing list
help-gnu-utils@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to