[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnu make manual tweak/fix to example used in 8.8 The eval Function
From: |
Paul D. Smith |
Subject: |
Re: gnu make manual tweak/fix to example used in 8.8 The eval Function |
Date: |
Wed, 10 Aug 2005 09:39:25 -0400 |
%% James Coleman <address@hidden> writes:
jc> Two lines had problems: (see original Makefile and modified one (as in
jc> tgz) below)
jc> $(1): $$($(1)_OBJ) $$($(1)_LIBS:%=-l%)
jc> and
jc> $(LINK.o) $^ $(LDLIBS) -o $@
jc> The first makes e.g. -lpriv and -lprotocol dependancies of server
jc> or client. Probably not what is intended.
Actually, it is what was intended. GNU make handles -lfoo prerequisites
specially. See the GNU make manual.
jc> On the second line the $(LINK.o) looks quite dodgy.
I don't know why you say that.
In fact, LINK.o is a predefined variable in GNU make that does the right
thing to link a bunch of .o's together.
You can use "make -pf/dev/null" to get a full listing of the default
rules and variables.
Cheers!
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist