1########################################################### 2## Standard rules for building an executable file. 3## 4## Additional inputs from base_rules.make: 5## None. 6########################################################### 7 8ifeq ($(strip $(LOCAL_MODULE_CLASS)),) 9LOCAL_MODULE_CLASS := EXECUTABLES 10endif 11ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) 12LOCAL_MODULE_SUFFIX := $($(my_prefix)EXECUTABLE_SUFFIX) 13endif 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 29my_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 32my_libdir := $(notdir $($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)OUT_SHARED_LIBRARIES)) 33ifeq ($(LOCAL_MODULE_CLASS),NATIVE_TESTS) 34$(LOCAL_BUILT_MODULE): PRIVATE_RPATHS := ../../$(my_libdir) 35else 36$(LOCAL_BUILT_MODULE): PRIVATE_RPATHS := ../$(my_libdir) $(my_libdir) 37endif 38my_libdir := 39 40$(LOCAL_BUILT_MODULE): $(all_objects) $(all_libraries) 41 $(transform-host-o-to-executable) 42 43endif # skip_build_from_source 44