Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git] / ndk / GNUmakefile
blobbf74b8ed1b41ee4c0cb6c0227cb221156f8f100b
1 # Copyright (C) 2010 The Android Open Source Project
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 # DO NOT MODIFY THIS FILE
18 # Check that we have at least GNU Make 3.81
19 # We do this by detecting whether 'lastword' is supported
21 MAKE_TEST := $(lastword a b c d e f)
22 ifneq ($(MAKE_TEST),f)
23 $(error,The Android NDK requires GNU Make 3.81 or higher to run !)
24 endif
26 # Find the NDK root installation path, should be this file's location.
27 NDK_ROOT := $(dir $(lastword $(MAKEFILE_LIST)))
28 NDK_ROOT := $(NDK_ROOT:%/=%)
30 # Complain if the path contains spaces
31 ifneq ($(words $(NDK_ROOT)),1)
32 $(info,The Android NDK installation path contains spaces: '$(NDK_ROOT)')
33 $(error,Please fix the problem by reinstalling to a different location.)
34 endif
36 include $(NDK_ROOT)/build/core/main.mk
38 # END OF FILE