nmake

nmake.exe: is there a way to exclude a file from a set of files specified in a macro?

房东的猫 提交于 2019-12-13 03:35:18
问题 I'm looking for something like the Exclude filter for msbuild, but I Want it in a makefile processed by nmake. Is that possible? Suppose I have a makefile that defines this macro: SOURCES=xxx.c yyy.c zzz.c and I invoke it with nmake OLD=xxx.c NEW=bbb.c ...can I produce, within the makefile, a macro with a value like: yyy.c zzz.c bbb.c ...basically substituting bbb.c for xxx.c ? The files can appear in any order. This would be pretty easy if the string substitution that is possible in nmake

Error compiling OpenSSL for Win32

无人久伴 提交于 2019-12-12 19:23:43
问题 I get the following error when trying to build OpenSSL on Win32: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\errno.h(92) : error C2220: warning treated as error - no 'object' file generated C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\errno.h(92) : warning C4005: 'EADDRINUSE' : macro redefinition tmp32\e_os.h(153) : see previous definition of 'EADDRINUSE' NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.EXE"' :

Use the same makefile for make (Linux) and nmake (Windows)

↘锁芯ラ 提交于 2019-12-12 07:10:10
问题 I have a simple C program (one source file) which I want to compile on Linux and on Windows via make and nmake, respectively. Is there a possibility to accomplish this with a single makefile? I thought about something like ifeq($(MAKE), nmake) // nmake code here else // make code here endif Unfortunately nmake seems not to understand ifeq , so I cannot use that. I have a working makefile, but that produces very ugly results: hello: hello.c $(CC) hello.c That works on both systems. The problem

how cmake can check which Visual C++ version runs behind NMAKE

与世无争的帅哥 提交于 2019-12-12 04:43:23
问题 I am working on a CMake project for Windows which uses 'NMake' as generator. Inside my CMake I have to setup variables differently based on the specific version of Visual C++ which will compile the code. Specifically I am using Visual Studio 2017 and Visual Studio 2013. How can I distinguish withing the CMakeLists.txt when NMake is generating its files for Visual Studio 2017 instead of Visual Studio 2013? Is there any CMake variable I can read to know which version of Visual C++ will be used?

What is the -D define to tell CMake where to find nmake?

情到浓时终转凉″ 提交于 2019-12-12 04:24:20
问题 I have Visual C++ Build Tools 2015 | Standalone compiler, libraries and scripts installed on a low-end netbook. It's necessary, because the machine has a small eMMC soldered to the board with no real space available. nmake is installed at %PROGRAM FILES%\Microsoft Visual Studio 14.0\VC\bin . However, CMake cannot find it when attempting to generate the Makefile. I'd like to use a -D to tell CMake what the makefile program is, but I am having trouble locating the list of -D defines for CMake.

compiling QT 4,8,0 in windows 7 x64 with visual studio 2010 gives makefile not found

本秂侑毒 提交于 2019-12-12 02:48:28
问题 i have a problem.. i'm trying to compile qt for vs 2010.. But i can't.. i'm following this guide: http://thomasstockx.blogspot.com/2011/03/qt-472-in-visual-studio-2010.html i follow all the steps (with the exception of -shared config, because i want -static) but when i digit nmake the vs prompt tell me this: Microsoft (R) Program Maintenance Utility versione 10.00.30319.01 Copyright (C) Microsoft Corporation. Tutti i diritti riservati. NMAKE : fatal error U1064: MAKEFILE non trovato. Nessuna

Comparison of make and nmake for perl module installation

浪尽此生 提交于 2019-12-11 17:35:29
问题 Module installation varies when compared to Windows and linux/Unix Operating system. In Win32 we need to use a program called nmake and after we follow 1. C:\> perl Makefile.PL 2. C:\> nmake 3. C:\> nmake test 4. C:\> nmake install and in Linux we follow 1. $ perl Makefile.PL 2. $ make 3. $ make test 4. $ make install the process of installing would be same for both the operating systems, the only difference would be in the keyword used make and nmake . Could any one let me know what does the

Wildcard for files in sub-directory in NMAKE

我们两清 提交于 2019-12-11 13:04:26
问题 How could one make a wildcard dependency like boot/*.inc work in NMAKE? 回答1: This works for me, with VS 2017: >type makefile mytarget : boot\*.inc !@echo $? >dir/b boot one.inc two.inc >nmake boot\one.inc boot\two.inc The on-line documentation for NMAKE provided by Microsoft is simply awful. In contrast, the older 59-page PDF document entitled Chapter 16: Managing Projects with NMAKE is vastly superior. It appears to agree with the current online version (an errata would be nice!). But it is

Ignore #pragma comment(lib, …)?

北慕城南 提交于 2019-12-11 09:59:33
问题 I'm attempting to perform a link of previously generated .obj files (using the latest version of MSVC). When those .obj's were created, the source code specified: #pragma comment(lib, ...) As such, the linker is attempting to link against static libraries specified in the source. Is there a way to instruct the linker to ignore these libraries, so I can specify my own? e.g., if a piece of source did the following: #pragma comment(lib, foo.lib) At link time, I'd like the linker to ignore 'foo

Perl extension installation - unable to run nmake

假装没事ソ 提交于 2019-12-11 01:55:18
问题 I am trying to install a module using cpan on XAMPP. I am running Windows 7. Immediately after this prompt is given: CPAN.pm: Going to build J/JE/JESSE/HTTP-Server-Simple-0.43.tar.gz It gives the prompt that "The required nmake executable file is not found, and attempts to fetch it. After this, a popup window appears stating the the program "\??\c:\xampp\perl\bin\Nmake15.exe can not run due to incompatibility with 64 bit versions of windows. I downloaded VC++ and copied the make.exe from that