1.compile.bat
xgconsole /command="make vcall -j20" /profile="Profile.xml"
pause
2. Makefile
VSCC=cl.exe
VSLINK=link.exe
vcall:main.obj test.obj test1.obj test2.obj test3.obj test4.obj test5.obj test6.obj test7.obj
$(VSLINK) *.obj /OUT:a.exe /LIBPATH:"D:\Program Files\Microsoft Visual Studio 8\VC\lib"
main.obj:
$(VSCC) -c main.c
test.obj:
$(VSCC) -c test.c
test1.obj:
$(VSCC) -c test1.c
test2.obj:
$(VSCC) -c test2.c
test3.obj:
$(VSCC) -c test3.c
test4.obj:
$(VSCC) -c test4.c
test5.obj:
$(VSCC) -c test5.c
test6.obj:
$(VSCC) -c test6.c
test7.obj:
$(VSCC) -c test7.c
clean:
rm -f *.o *.exe *.obj
3. Profile.xml
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Profile FormatVersion="1">
<Tools>
<Tool Filename="make" AllowIntercept="true" />
<Tool Filename="cl" AllowRemote="true" />
<Tool Filename="link" AllowRemote="true" />
<Tool Filename="gcc" AllowRemote="true" />
<Tool Filename="gcc-3" AllowRemote="true" />
</Tools>
</Profile>