delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/10/18/21:10:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <19991019010508.56195.qmail@hotmail.com>
X-Originating-IP: [209.156.168.32]
From: "Tirumala R Bokka" <tirumala_rao AT hotmail DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: problems in running nmake from GNU make
Date: Tue, 19 Oct 1999 06:35:08 IST
Mime-Version: 1.0

Hi All,

I thank everyone for the quick response, all your suggestions were
helpful, but the real cause was pointed by Drew (thanks).

Make was setting MAKEFLAGS to --unix,
which nmake was trying to use. I had to create a shell script
that resets the MAKEFLAGS and calls nmake, and change my Makefile
to call this script (instead of directly calling nmake)

- Tirumal



>From: Drew Moseley <dmoseley AT cygnus DOT com>
>To: Tirumala R Bokka <tirumala_rao AT hotmail DOT com>
>Subject: Re: problems in running nmake from GNU make
>Date: Mon, 18 Oct 1999 09:44:24 -0400
>
>Tirumala R Bokka wrote:
> >
> > Hi,
> >
> > I'm facing a problem while I'm trying to run NMAKE from a GNU Makefile
> > to build a subsystem. The makefile is recursively invoking nmake to 
>build a
> > subdirectory. I'm invoking nmake as follows:
> >    cd dir1 && nmake -f template.mak
> > Make invokes NMAKE, but NMAKE gives an error saying,
> >    NMAKE : fatal error U1065: invalid option '-'
> >
> > Running the same line from shell command line works fine.
>
>I have seen this before.  What happens is that GNU make sets MAKEFLAGS
>to "--unix"
>automatically (or some similar version of that variable).  nmake also
>reacts to the
>MAKEFLAGS variable and it complains because it does not know the
>"--unix" option.
>
>The workaround I used was to create a batch file.  In the batch file,
>explicitly clear
>MAKEFLAGS and then call nmake.  Replace your call to nmake with a call
>to the batch
>file.
>
>Good luck.
>
>Drew
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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