Hi,
How can I link several object files which located under different
directories to one executable ?
For example, I want to call
app: a.o b.o c.o
        g++ a.o b.o c.o -o app

a.o: ...

and lets say that a.o is created locally (using the example make) while b.o
and c.o are object files precompiled by other user and which located under
different directory in the file system.
I want the command: make app, to locate and link b.o and c.o automatically
by searching predefined directory path. I don't want to copy manually all
the needed objects before linking time.
I know that I can use VPATH for the prerequisites, but how can I search for
files in the Link stage ?

Respectfully yours,

Doron Bleiberg
Virtual Self Ltd. (TDnet)
Mobile: +972-54-7916711
Tel:      +972-3-6950073 (Ext. 252)
Fax:     +972-3-6956359
E-Mail: [EMAIL PROTECTED]




_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to