blob: b682ffdaa9bf66feb14d1f764410d095c6028ee9 [file] [log] [blame]
Ying Wang6feb6d52014-04-17 10:03:35 -07001###########################################################
2## Standard rules for building an executable file.
3##
4## Additional inputs from base_rules.make:
5## None.
6###########################################################
7
Ying Wang6feb6d52014-04-17 10:03:35 -07008ifeq ($(strip $(LOCAL_MODULE_CLASS)),)
9LOCAL_MODULE_CLASS := EXECUTABLES
10endif
11ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),)
Dan Willemsen057aaea2015-08-14 12:59:50 -070012LOCAL_MODULE_SUFFIX := $($(my_prefix)EXECUTABLE_SUFFIX)
Ying Wang6feb6d52014-04-17 10:03:35 -070013endif
14
15$(call host-executable-hook)
16
17skip_build_from_source :=
18ifdef LOCAL_PREBUILT_MODULE_FILE
19ifeq (,$(call if-build-from-source,$(LOCAL_MODULE),$(LOCAL_PATH)))
20include $(BUILD_SYSTEM)/prebuilt_internal.mk
21skip_build_from_source := true
22endif
23endif
24
25ifndef skip_build_from_source
26
27include $(BUILD_SYSTEM)/binary.mk
28
Dan Willemsen057aaea2015-08-14 12:59:50 -070029my_host_libprofile_rt := $($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)LIBPROFILE_RT)
Dan Albert343ed672015-01-25 16:20:57 -080030$(LOCAL_BUILT_MODULE): PRIVATE_HOST_LIBPROFILE_RT := $(my_host_libprofile_rt)
31
Ying Wang6feb6d52014-04-17 10:03:35 -070032$(LOCAL_BUILT_MODULE): $(all_objects) $(all_libraries)
33 $(transform-host-o-to-executable)
34
35endif # skip_build_from_source