Compile、Make和Build的区别

编译命令详解
本文介绍了四种常见的编译命令:compile仅编译选定的目标;make仅编译上次修改过的文件,提高效率;build对整个工程进行彻底的重新编译并可能生成发布包;gradle用于控制项目各模块间的依赖关系。

compile:只编译选定的目标,不管之前是否编译过

make:只编译上次修改过的文件,减少重复劳动,速度快

build:是对整个工程进行彻底的重新编译,而不管是否已经编译过。Build过程往往会生成发布包,这个具体要看对IDE的配置了,Build在实际中应用很少,因为开发时候基本上不用,发布生产时候一般都用ANT等工具来发布。Build因为要全部编译,还要执行打包等额外工作,因此时间较长。

gradle:用来控制项目各个模块之前的依赖关系。

转载于:https://www.cnblogs.com/fengmanlou/p/4489729.html

按照你的步骤操作后:wuyilun@ubuntu:~/Desktop/NVMP/NVMP/nvmp$ CFLAGS="-D_GNU_SOURCE" make ERROR: please fix package/tp_package/lte/Makefile - see logs/package/tp_package/lte/dump.txt for details ERROR: please fix package/tp_package/lib/libsdm/Makefile - see logs/package/tp_package/lib/libsdm/dump.txt for details Collecting package info: done AMS: buildams.config and ams.config updated from local nvmp_artifact make[1] world make[2] tools/install make[3] -C tools/m4 compile make[3] -C tools/m4 install make[3] -C tools/sed compile make[3] -C tools/sed install make[3] -C tools/autoconf compile make[3] -C tools/autoconf install make[3] -C tools/pkg-config compile make[3] -C tools/pkg-config install make[3] -C tools/xz compile make[3] -C tools/xz install make[3] -C tools/automake compile make[3] -C tools/automake install make[3] -C tools/missing-macros compile make[3] -C tools/missing-macros install make[3] -C tools/libtool compile make[3] -C tools/libtool install make[3] -C tools/flex compile make[3] -C tools/flex install make[3] -C tools/bison compile make[3] -C tools/bison install make[3] -C tools/mklibs compile make[3] -C tools/mklibs install make[3] -C tools/sstrip compile make[3] -C tools/sstrip install make[3] -C tools/ipkg-utils compile make[3] -C tools/ipkg-utils install make[3] -C tools/genext2fs compile make[3] -C tools/genext2fs install make[3] -C tools/e2fsprogs compile make[3] -C tools/e2fsprogs install make[3] -C tools/mtd-utils compile make -r world: build failed. Please re-run make with V=s to see what's going on make: *** [/home/wuyilun/Desktop/NVMP/NVMP/nvmp/include/toplevel.mk:279: world] Error 1
08-19
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值