Date: Thu, 1 Jun 2000 18:30:02 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Tilman Sauerbeck cc: djgpp AT delorie DOT com Subject: Re: problem using "make" In-Reply-To: <001501bfcbd4$e759f1c0$020aa8c0@cervantes> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.