Android makefiles are an essential piece of the NDK building process. Thus, it is important to understand the way they work, to build and manage a project properly.
Compilation settings are defined though a set of predefined NDK variables. We have already seen the three most important ones:
LOCAL_SRC_FILES. But many others exist. We can differentiate four types of variables, each with a different prefix:
APP_variables refer to application-wide options and are set in
LOCAL_variables are dedicated to individual module compilation and are defined in
NDK_are internal variables that usually refer to environment variables ...