delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/22/05:25:49

Date: Sun, 22 Jun 1997 12:25:05 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: William Tanksley <wtanksle AT sdcc10 DOT ucsd DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: line lengths and other GNU/DJGPP MAKE troubles
In-Reply-To: <5nsn8f$290$1@sdcc12.ucsd.edu>
Message-ID: <Pine.SUN.3.91.970622122417.4249O-100000@is>
MIME-Version: 1.0

On 14 Jun 1997, William Tanksley wrote:

> First, I have to pass all of the files to be linked on one command line to
> bcc, or it can't create the EXE.  But I can't fit them all on one line --

Use the response file @file.  BC should support that.

> I can't even use a glob file, because I would have to fit them all in the
> same echo statement.

Did you actually try that?  I think this will work, because Make
 will call `echo.exe' from your DJGPP's bin subdirectory, and that
`echo' is compiled with DJGPP and understands long command lines.

> I'm also thinking of another solution:
> writing an ECHO replacement in gcc which uses DJGPP-style long command
> lines.

You already have that, it comes with djdev201.zip and should be in
your bin subdirectory.

> I need to create a batch file from within the makefile, so I'm echoing
> stuff and redirecting it into the file which will become the desired batch
> file.  The trouble is that one of my lines sets a path-style environment
> variable which has semicolons in it.  This causes Make to treat the
> semicolons as command delimiters.  Um...  I don't need that AT ALL for
> this makefile, and I'd love to turn it off.  How do I do that?

Enclose the argument to `echo' inside single or double quotes.  Since
Make calls the DJGPP-compiled `echo', not the built-in COMMAND.COM
version, the quotes will be stripped, but the semi-colons will be left
intact.  (This is actually the same solution you would use with a Unix
Make when you have a command line with semi-colons.)

> Finally, is there any documentation specific to this DOS port of Make?  I
> like it a LOT, but it's not entirely the same as the Unix version.

By a sad omission, the DJGPP-specific README file is only included in
the source distribution.  Download v2gnu/mak375s.zip and you will have
it.

Btw, the ported Make makes a lot of effort to work like the Unix
version does, so if you find any undocumented differences, please
report them.

- Raw text -


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