Android.mk in dependent subdirectories android.mk include $ (call All-subdir-makefiles)

Source: Internet
Author: User

I've been thinking about the use of android.mk in nested subdirectories in android.mk, and I found it today, and sent it to someone who was just as confused as I am.

Include $ (call All-subdir-makefiles)

returns a list of subdirectories located at the current ' My-dir ' path. For example, look at the following directory hierarchy:

Sources/foo/android.mk

Sources/foo/lib1/android.mk

Sources/foo/lib2/android.mk

if sources/foo/android.mk contains one line :

Include $ (call All-subdir-makefiles)

then it will automatically contain sources/foo/lib1/android.mk and sources/foo/lib2/android.mk.

This feature is used to provide a deep nested code directory hierarchy to the compilation system. Note that by default, the NDK will only search for files in Sources/*/android.mk .

This-makefile

returns the current The path to the Makefile (where this function is called)

Parent-makefile

returns the parent in the call Tree Makefile path. the Makefile path that contains the current Makefile .

Grand-parent-makefile


Android.mk in dependent subdirectories android.mk include $ (call All-subdir-makefiles)

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.