%% James Coleman <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>          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


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to