delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/15/18:58:56

Date: Tue, 15 Mar 94 18:34:19 -0500
From: dj AT ctron DOT com (DJ Delorie)
To: markwr AT d564s1 DOT dot DOT state DOT mn DOT us
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: MAKEing response files.

> Is there any way to generate a response file in GNU make when a variable
> is > 128 characters?  For example, if I have
> OBJS =	file1.c file2.c file3.c file4.c \
> 	...
> 	file99.c 
> I can't just do an "echo $(OBJS) > cmdline.tmp", since only the first 128
> characters of that command will be processed.  Is there a simple solution to
> this problem?

djgpp includes "echo.exe", which is built with gcc and *does* allow
you to do exactly what you want.  Specify "echo.exe" in the makefile
and hope for the best.  You may have to rename echo.exe to make sure
that make doesn't pass it off to command.com.


- Raw text -


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