1LOCAL_PATH:= $(call my-dir) 2 3# 4# libelfcopy 5# 6 7include $(CLEAR_VARS) 8 9LOCAL_SRC_FILES += \ 10 common.c \ 11 debug.c \ 12 elfcopy.c \ 13 hash.c \ 14 rangesort.c \ 15 fixdwarf.c \ 16 dwarf.c 17 18ifeq ($(HOST_OS),linux) 19endif 20ifeq ($(HOST_OS),darwin) 21endif 22 23LOCAL_MODULE:=libelfcopy 24 25#LOCAL_LDLIBS += -ldl 26LOCAL_CFLAGS += -O2 -g 27LOCAL_CFLAGS += -fno-function-sections -fno-data-sections -fno-inline 28LOCAL_CFLAGS += -Wall -Wno-unused-function #-Werror 29LOCAL_CFLAGS += -DBIG_ENDIAN=1 30LOCAL_CFLAGS += -DARM_SPECIFIC_HACKS 31LOCAL_CFLAGS += -DDEBUG 32LOCAL_CFLAGS += -DSTRIP_SECTIONS 33LOCAL_CFLAGS += -DSTRIP_STATIC_SYMBOLS 34LOCAL_CFLAGS += -DMOVE_SECTIONS_IN_RANGES 35#LOCAL_CFLAGS += -DSORT_LOCATION_LIST_OFFSETS 36 37 38# dwarf.c 39LOCAL_CFLAGS += -DATTRIBUTE_UNUSED="__attribute__((unused))" 40LOCAL_CFLAGS += -DTRUE=1 41LOCAL_CFLAGS += -DFALSE=0 42LOCAL_CFLAGS += -Dprogram_name=\"libelfcopy\" 43 44LOCAL_STATIC_LIBRARIES := libelf libebl libebl_arm 45 46LOCAL_C_INCLUDES:= \ 47 $(LOCAL_PATH)/ \ 48 external/elfutils/lib/ \ 49 external/elfutils/libelf/ \ 50 external/elfutils/libebl/ 51 52include $(BUILD_HOST_STATIC_LIBRARY) 53