www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/02/16/07:30:03

From: Paolo Baiardi <kurgan AT dist DOT dist DOT unige DOT it>
Subject: ndmake and @
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Wed, 16 Feb 94 13:15:08 MET

John Nemeth wrote about make:
> On Feb 14,  9:13am, cremona AT maths DOT ex DOT ac DOT uk wrote:
> } Subject: simple make problem
> } I have also had problems in the past with long command lines.  The
> } solution is to put your list of .o files in another file called OBJS
> } (say) and replace them on the command line with @OBJS.   This is
> } documented somewhere.
>      I wonder if it would be possible to get GNU make to do this
> automatically.  NDmake 4.5 claims to be able to do it.  If GNU make
> can't do it automatically, or if it would take a lot of work to make
> it do so, maybe we should consider switching to NDmake.

I'm currently using NDmake, and it's possible to use a file as argument list,
but the file must be built before, and anyway the command invoked inside the
makefile must support the '@' response file, which is a DOS standard.
It seems to me that using this facility depends on the command invoked, not on
'make' itself, unless you are speaking about an automatic procedure which writes
a list of objects inside a temporary file and passes it to the related command,
e.g.:
	gcc $(myobjs)  --> gcc @something 
I have used GNU make and NDmake, and I consider the latter more 'unix-like', on
simple makefiles ( IMHO! ).
Regards,
		Paolo
-- 
+-----------------------------------------------------------------------------+
| Paolo Baiardi		PhD Student - Genova University - Italy		      |
|	E-mail:		kurgan AT dist DOT dist DOT unige DOT it			      |
| 									      |
| "I work for the county out on 95					      |
|  All day I hold a red flag and watch the traffic pass me by		      |
|  In my head a keep a picture of a pretty little miss			      |
|  Someday Mister I'm gonna lead a better life than this"		      |
|  [ Working on a highway - Bruce Springsteen ]		      	     	      |
+-----------------------------------------------------------------------------+

- Raw text -


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