Hello,
Is it possible to modify or customize binaries search path y a nmake command or macro?
Assuming I have a system general PATH and I want nmake to lookup CL.exe in different directory than in the system wide PATH string...
Thx
Printable View
Hello,
Is it possible to modify or customize binaries search path y a nmake command or macro?
Assuming I have a system general PATH and I want nmake to lookup CL.exe in different directory than in the system wide PATH string...
Thx
Not sure if you can do it inside the make file, however you could create a batch file that changes the PATH and then calls nmake.
It would look something like this:That would append your paths to the existing path variable, and applies as long as you're within that command window.Code:set path=%PATH%;C:\myspecialpath1;d:\anotherdir\myspecialpath2
nmake ....
Hope that helps.
and is is possible to call that bath file from inside makefile?
app.exe : $(OBJS)
call changeoath.bat
cl.exe "$@" $<
Hint: If you want to override .exe files that are already present in the current search path, you should prepend your additional directories to the path since it is searched from fromt to back. The command to do that would then look like this:
Code:set path=C:\myspecialpath1;d:\anotherdir\myspecialpath2;%PATH%
Okay thx
so
writing
PATH=c:\myvcdir;d:\mytolsdir;$(PATH)
has no effect?
One more thing I struggle, how to terminate lines that have to end with '\' token,
e.g.
ICLInstDir = D:\develop\CPP\bin\
would instruct nmake to merge with following line as \ token is taken as line continuor, silly
Could it be prefixed with a special char that instructs nmake to take \ literally, not a control character?