Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: Drew Moseley <dmoseley@cygnus.com>
Newsgroups: cygnus.gnu-win32
Subject: Re: problems in running nmake from GNU make
Date: Mon, 18 Oct 1999 09:44:24 -0400
Organization: Cygnus Solutions
Lines: 29
Message-ID: <380B2438.41019076@mindspring.com>
References: <19991016035751.14245.qmail@hotmail.com>
NNTP-Posting-Host: dmoseley1.cygnus.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
To: cygwin@sourceware.cygnus.com
DJ-Gateway: from newsgroup cygnus.gnu-win32

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

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

