Questions tagged [nmake]

Nmake is a variant from Microsoft of Make build automation software.

NMAKE is a build automation tool for Microsoft Windows, included in Microsoft development tools such as Visual Studio.

See NMAKE reference.

519 questions
7
votes
1 answer

addprefix command not recognized in makefile using nmake.exe windows

all: prd.exe CC=cl CFLAGS=-O2 -I../src -I. /W4 LDFLAGS = /Zi LIBSRC = $(addprefix ../lib/, \ open.c malloc.c \ ) \ $(addprefix ../src/, \ main.c \ ) \ helper.c LIBOBJS = $(LIBSRC:.c=.o) prd.exe:…
Capricorn
  • 701
  • 1
  • 10
  • 20
7
votes
1 answer

NMake Pattern Rules

Hi I decided to try and learn how to build programs via the command line and makefiles instead of relying on Visual Studio to do it for me. After familiarizing myself with the process of compiling into .obj files and linking, I moved onto NMake.…
deebee396
  • 79
  • 3
6
votes
2 answers

QWT installation errors

I started using Qt a few weeks ago and I am really enjoying it. I now need to include graphs in my application and, after some research, I found that Qwt was the best way of doing so (rather than having to do everything from scratch by myself). I've…
PTBG
  • 585
  • 2
  • 20
  • 46
6
votes
0 answers

Nmake can't locate files within a docker mount

I have a docker container I use to compile a project, build a setup and export it out of the container. For this I mount the checked out sources (using $(Build.SourcesDirectory):C:/git/ in the volumes section of the TFS docker run task) and an…
jaaq
  • 1,188
  • 11
  • 29
6
votes
2 answers

how to get the output of a command when using Microsoft nmake?

With make on linux, we can do things like: foo=$(shell /bin/bar) which runs the command bar and assigns the output to foo. This can later be used in the makefile by referencing $(foo). But now I have a Microsoft project on my hands that is…
Stéphane
  • 19,459
  • 24
  • 95
  • 136
6
votes
4 answers

Testing file existence in NMake

In a makefile for GNU Make I use this idiom to test whether a file exists: static: ifeq ($(wildcard $(FileName)),) # do something when the file doesn't exist else # do something different when it does endif But it doesn't work in NMake…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
6
votes
1 answer

How to use wait in MAKEFILE when I use it through NMAKE in windows

I'm not familiar with MAKEFILE and trying to figure out how to wait between destroy and deploy for 2 seconds. It looks like NMAKE has very limited resource on internet and the one I found sleep 2 throws 'sleep' is not recognized as an internal or…
cilerler
  • 9,010
  • 10
  • 56
  • 91
6
votes
3 answers

Linker Error Building GDAL

I am building GDAL from source using the MSVC 2015 64-bit command prompt. I am using Windows 8. Part way through the build, I get the following error: Creating library gdal_i.lib and object gdal_i.exp odbccp32.lib(dllload.obj) : error LNK2019:…
rmkemker
  • 470
  • 5
  • 16
6
votes
0 answers

Using qmake to build both 32 and 64 in the same source tree, for Visual Studio

I'm trying to add a project that must build as a 32bit library (let's call it sdk32) in a source tree that is configured for Visual Studio 2010 64 bit. I.e. every project is a 64 bit library or application, but I need this sdk32 project as a 32bit…
LeCoc
  • 310
  • 2
  • 8
6
votes
1 answer

Verbose NMake Makefiles using CMake

I have been following instructions from the FAQ: Is there an option to produce more 'verbose' compiling?. I have now: $ cat C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/Platform/Windows.cmake [...] # uncomment these out to debug nmake and…
malat
  • 12,152
  • 13
  • 89
  • 158
6
votes
2 answers

How do I substitute a string and add a prefix or suffix in Microsoft NMake?

I am translating a GNU Make makefile to Microsoft Visual Studio Makefile. I have a three doubts: 1) How do I substitute a string. For example in a folder…
Misery
  • 689
  • 2
  • 8
  • 25
6
votes
2 answers

QMake SUBDIRS project: How to call release-clean from top-level Makefile?

I am using a Qt .pro file using the SUBDIRS template (mainly following this answer). Furthermore I am building my solution using qmake -recursive MyProject.pro and nmake Release. Now I want to supply a separate batch file for cleaning up the…
Tim Meyer
  • 12,210
  • 8
  • 64
  • 97
6
votes
2 answers

printing long compilation lines with MS NMAKE

I have a legacy MS NMAKE Makefile I need to fix a few bugs in. There are some very long command lines I wish to debug that are being executed using the NMAKE trick of "inline files": dep: cmd @<
Elazar Leibovich
  • 32,750
  • 33
  • 122
  • 169
6
votes
1 answer

nmake - illegal character '{' in macro

Hello everyone! I'm trying to compile some external libraries as a prerequisite for compiling source of MESHLAB (a tool for 3d mesh processing). First I use the "qmake" command to generate the Makefile from my project file (external.pro). After…
A. Mashreghi
  • 1,729
  • 2
  • 20
  • 33
5
votes
3 answers

expanded command line too long

I face with a problem in linking phase, while working with MSVC9 . It says: NMAKE : fatal error U1095: expanded command line link.exe . . . too long
1 2
3
34 35