[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using Nmake from GNU-make
From: |
Gisle Vanem |
Subject: |
Using Nmake from GNU-make |
Date: |
Wed, 24 Jun 2020 18:05:12 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
Hello list.
Now I have the need to use an already quite large
Makefile written for Microsoft's 'NMake', from within
GNU-make 4.390. Like:
gnss_libf2c.lib:
cd libf2c ; nmake.exe -nologo -f Makefile.VC all
cp libf2c/vcfc2.lib $@
but Nmake errors with:
Microsoft (R) Program Maintenance Utility Version 14.26.28806.0
Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1065: invalid option '-'
Stop.
Adding a '--debug' gives no clues either.
Rewriting to:
SHELL = cmd.exe:
gnss_libf2c.lib:
cd libf2c & nmake.exe -nologo -f Makefile.VC all
cp libf2c/vcfc2.lib $@
gives the same error. I use Cygwin as my shell normally, but
it doesn't look like a SHELL issue to me. From the cmd-line,
Nmake has no problem; hence I suspect some issue with GNU-make.
And using ProcessMonitor, I see no problem with the cmd-line
in CreateProcessA() either. What could I do?
--
--gv
- Using Nmake from GNU-make,
Gisle Vanem <=