delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/06/20:14:42

Message-Id: <199807070014.BAA19156@sable.ox.ac.uk>
Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: Gisle Vanem <giva AT bryggen DOT bgnett DOT no>
Date: Tue, 7 Jul 1998 01:13:05 +0000
MIME-Version: 1.0
Subject: Re: linking huge project
Reply-to: george DOT foot AT merton DOT oxford DOT ac DOT uk
CC: djgpp AT delorie DOT com

On  6 Jul 98 at 18:30, Gisle Vanem wrote:

> file.rsp can be generated automatically by make. OTOH, do something
> like:
> 
> libfile.a: file.rsp
>            ar rvs @file.rsp
> 
> file.rsp: makefile
>           echo $(OBJS) > $<

I don't think that's right.  make --dry-run gives:

: echo x.o y.o z.o > makefile
: ar rvs @file.rsp

Overwriting the makefile is probably not what you wanted to do.  You 
probably meant "$@" instead of "$<".

> BTW. Borland's make has the inline file-operator which AFAIK lacks
> in GNU make:
> 
> libfile.a:
>          ar rvs @&&|
>          $(OBJS)
> |
> 
> Anybody know how to accomplish the same with GNU-make?

Sorry, I don't know what this achieves so I can't say.  Perhaps you 
could explain what its effect is?

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019