Home | History | Annotate | Download | only in core
      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 := $(TARGET_EXECUTABLE_SUFFIX)
     13 endif
     14 
     15 include $(BUILD_SYSTEM)/dynamic_binary.mk
     16 
     17 ifeq ($(LOCAL_FORCE_STATIC_EXECUTABLE),true)
     18 $(linked_module): $(TARGET_CRTBEGIN_STATIC_O) $(all_objects) $(all_libraries) $(TARGET_CRTEND_O)
     19 	$(transform-o-to-static-executable)
     20 else	
     21 $(linked_module): $(TARGET_CRTBEGIN_DYNAMIC_O) $(all_objects) $(all_libraries) $(TARGET_CRTEND_O)
     22 	$(transform-o-to-executable)
     23 endif
     24