delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/01/11:30:41

Date: Thu, 1 Jun 2000 18:30:02 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Tilman Sauerbeck <tilman DOT sauerbeck AT gmx DOT ch>
cc: djgpp AT delorie DOT com
Subject: Re: problem using "make"
In-Reply-To: <001501bfcbd4$e759f1c0$020aa8c0@cervantes>
Message-ID: <Pine.SUN.3.91.1000601182255.21431A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 1 Jun 2000, Tilman Sauerbeck wrote:

> C:\WINDOWS\COMMAND.COM -ec

Here you see that Make tried to invoke "command.com -ec SOMETHING".  This 
causes the problem, since COMMAND.COM doesn't understand the "-ec" part.

> COMSPEC=C:\WINDOWS\COMMAND.COM

This is okay, there's nothing wrong with your system setup per se.

> %.d: %.c
>  $(SHELL) -ec '$(CC) $(MAKEDEP)  $(CPP_OPTS) $(CC_SWITCHES)  $< | sed
> '\''s;$*.o;& $@;g'\'' > $@'

And here's the villain: this command clearly relies on a Unixy shell: 
only Unixy shells accept the -ec switch.  (There are also several other 
places in this Makefile that need a Unixy shell.)  So what you need to do 
is (1) install the port of Bash, and (2) make it so the Makefile sets 
SHELL = /bin/sh in the case of DJGPP.  Look at the other OSes which use 
the output of `uname' and set SHELL in a similar manner, for an example 
of how this should be done.

It is possible that you will need to install ports of additional 
utilities.  The above command clearly requires Sed, you also need `uname' 
(from Sh-utils) and I saw `cmp' (from Diffutils); there may be more.

- Raw text -


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