分布式编译-命令行模式

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>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值