Problem of cl.exe when using in makefile
Posted: Tue Dec 06, 2011 7:31 am
As well know, we must run vsvars32.bat before using cl.exe in cmd.exe, but this can not be done in makefile.
So currently cl.exe can not be ran in makefile, even if I make a target which running vsvars32.bat firstly.
This will work, puts vsvars32.bat in xxx_wsp.mk, for example:
Are there any other better ways?
Windows XP SP3, visual studio 2010, mingw-4.4.1
Thanks.
So currently cl.exe can not be ran in makefile, even if I make a target which running vsvars32.bat firstly.
This will work, puts vsvars32.bat in xxx_wsp.mk, for example:
Code: Select all
all:
@echo ----------Building project:[ abc - Debug ]----------
@"D:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat" && cd "abc" && "$(MAKE)" -f "abc.mk"
Windows XP SP3, visual studio 2010, mingw-4.4.1
Thanks.