Use of M, mm, and mmm compilation commands in Android

Source: Internet
Author: User

By viewing the build/envsetup. Sh file in the android source code directory, we can see that:
-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.

To use these commands, you must first execute. Build/envsetup. Sh in the root directory of the android source code.

M: compile all modules
MM: Compile the modules in the current directory. The current directory must contain the Android. mk file.
Mmm: Compile the module in the specified path. The Android. mk file must exist in the specified path.

The following example shows how to compile the libjpeg module in Android. The current directory is the source code root directory:

1. Build/envsetup. Sh
2. Mmm external/JPEG/

Or:

1. Build/envsetup. Sh
2. CD external/JPEG
3. Mm

Finally, envsetup. Sh only needs to be set to source once. After source, you can use the Croot command to return to the source code root directory, which is very useful.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.