This is the mail archive of the
mailing list for the Cygwin project.
Re: problems in running nmake from GNU make
- To: cygwin at sourceware dot cygnus dot com
- Subject: Re: problems in running nmake from GNU make
- From: "Tirumala R Bokka" <tirumala_rao at hotmail dot com>
- Date: Tue, 19 Oct 1999 06:35:08 IST
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)
>From: Drew Moseley <email@example.com>
>To: Tirumala R Bokka <firstname.lastname@example.org>
>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
> > 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
>automatically (or some similar version of that variable). nmake also
>reacts to the
>MAKEFLAGS variable and it complains because it does not know the
>The workaround I used was to create a batch file. In the batch file,
>MAKEFLAGS and then call nmake. Replace your call to nmake with a call
>to the batch
Get Your Private, Free Email at http://www.hotmail.com
Want to unsubscribe from this list?
Send a message to email@example.com