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.