OSDN Git Service

Makefile: Add the missing dependency on FUTILITY.
[android-x86/build.git] / core / host_executable_internal.mk
1 ###########################################################
2 ## Standard rules for building an executable file.
3 ##
4 ## Additional inputs from base_rules.make:
5 ## None.
6 ###########################################################
7
8 ifeq ($(strip $(LOCAL_MODULE_CLASS)),)
9 LOCAL_MODULE_CLASS := EXECUTABLES
10 endif
11 ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),)
12 LOCAL_MODULE_SUFFIX := $($(my_prefix)EXECUTABLE_SUFFIX)
13 endif
14
15 $(call host-executable-hook)
16
17 skip_build_from_source :=
18 ifdef LOCAL_PREBUILT_MODULE_FILE
19 ifeq (,$(call if-build-from-source,$(LOCAL_MODULE),$(LOCAL_PATH)))
20 include $(BUILD_SYSTEM)/prebuilt_internal.mk
21 skip_build_from_source := true
22 endif
23 endif
24
25 ifndef skip_build_from_source
26
27 include $(BUILD_SYSTEM)/binary.mk
28
29 my_host_libprofile_rt := $($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)LIBPROFILE_RT)
30 $(LOCAL_BUILT_MODULE): PRIVATE_HOST_LIBPROFILE_RT := $(my_host_libprofile_rt)
31
32 $(LOCAL_BUILT_MODULE): $(all_objects) $(all_libraries)
33         $(transform-host-o-to-executable)
34
35 endif  # skip_build_from_source