http://hi.baidu.com/%C0%F6%C1%B5%D0%DC/blog/item/055670230d694f33d52af16c.html

三个m的含义

以下是在help中看到的信息

- m:       Makes from the top of the tree.
- mm:      Builds all of the modules in the current directory.
- mmm:     Builds all of the modules in the supplied directories.

m,显然是make

mm ,在编译单一模块的时候可以在当前目录下使用

mmm 可以在android目录下使用

 

1、进入android源码根目录:cd your-android-source-path

2、将envsetup.sh source进来:. build/envsetup.sh (注意:.后面有空格)

3、之后你就可以使用mm和mmm了。

接下来要解释一下mm和mmm的区别:

mm:编译当前目录下的模块,当前目录下要有Android.mk文件。

mmm path:编译指定路径下的模块,指定路径下要有Android.mk文件。

下面举个例子说明,假设我要编译android下的libjpeg模块,当前目录为源码根目录,方法如下:

1、. build/envsetup.sh

2、mmm external/jpeg/

或者 :

1、. build/envsetup.sh

2、cd external/jpeg

3、mm