Call All-subdir-makefiles and call all-makefiles-under,$ (Local_path) differences

Source: Internet
Author: User

Call All-subdir-makefiles and call all-makefiles-under,$ (Local_path) are different when writing android.mk files.

The former indicates that "there are no files that need to be compiled in the current directory, please Shangzi the directory in Depth", which is a prescribed notation that tells the compiler to continue to recursive to the depths of the directory. The latter, literally, should also be the same meaning. However, consider a scenario in which you:

If there are files in the current directory that need to be compiled, and there are subdirectories in the current directory, there are files in the subdirectory that need to be compiled. The android.mk in the current directory, in addition to the statement that compiles the files in the current directory, also contains statements that tell the compiler to continue to the subdirectory after compiling the files in the current directory. Here's a question, how do you write the statement later? Is it call all-subdir-makefiles or call all-makefiles-under,$ (Local_path)? In my experiment here, writing the former is not possible, the compiler will not go into the subdirectory compilation after compiling the files in the current directory. And in the latter case, we can meet our expectations.


Local_path: = $ (call My-dir)
include $ (call all-makefiles-under,$ (Local_path))


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.