The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 2 | LOCAL_MODULE_SUFFIX := |
| 3 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 4 | |
| 5 | include $(BUILD_SYSTEM)/binary.mk |
| 6 | |
| 7 | $(LOCAL_BUILT_MODULE) : PRIVATE_ELF_FILE := $(intermediates)/$(PRIVATE_MODULE).elf |
| 8 | $(LOCAL_BUILT_MODULE) : PRIVATE_LIBS := `$(TARGET_CC) -mthumb-interwork -print-libgcc-file-name` |
| 9 | |
Ying Wang | 1a08100 | 2010-07-13 14:55:47 -0700 | [diff] [blame] | 10 | $(all_objects) : PRIVATE_TARGET_PROJECT_INCLUDES := |
| 11 | $(all_objects) : PRIVATE_TARGET_C_INCLUDES := |
| 12 | $(all_objects) : PRIVATE_TARGET_GLOBAL_CFLAGS := |
| 13 | $(all_objects) : PRIVATE_TARGET_GLOBAL_CPPFLAGS := |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 14 | |
| 15 | $(LOCAL_BUILT_MODULE): $(all_objects) $(all_libraries) |
| 16 | @$(mkdir -p $(dir $@) |
| 17 | @echo "target Linking: $(PRIVATE_MODULE)" |
| 18 | $(hide) $(TARGET_LD) \ |
| 19 | $(addprefix --script ,$(PRIVATE_LINK_SCRIPT)) \ |
| 20 | $(PRIVATE_RAW_EXECUTABLE_LDFLAGS) \ |
| 21 | -o $(PRIVATE_ELF_FILE) \ |
| 22 | $(PRIVATE_ALL_OBJECTS) \ |
| 23 | --start-group $(PRIVATE_ALL_STATIC_LIBRARIES) --end-group \ |
| 24 | $(PRIVATE_LIBS) |
| 25 | $(hide) $(TARGET_OBJCOPY) -O binary $(PRIVATE_ELF_FILE) $@ |