The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | # Copyright 2005 The Android Open Source Project |
| 2 | # |
| 3 | # Android.mk for soslim |
| 4 | # |
| 5 | |
| 6 | LOCAL_PATH:= $(call my-dir) |
| 7 | |
| 8 | ifeq ($(TARGET_ARCH),arm) |
| 9 | include $(CLEAR_VARS) |
| 10 | |
| 11 | LOCAL_LDLIBS += -ldl |
| 12 | LOCAL_CFLAGS += -O2 -g |
| 13 | LOCAL_CFLAGS += -fno-function-sections -fno-data-sections -fno-inline |
| 14 | LOCAL_CFLAGS += -Wall -Wno-unused-function #-Werror |
| 15 | LOCAL_CFLAGS += -DBIG_ENDIAN=1 |
| 16 | LOCAL_CFLAGS += -DARM_SPECIFIC_HACKS |
| 17 | LOCAL_CFLAGS += -DSUPPORT_ANDROID_PRELINK_TAGS |
| 18 | LOCAL_CFLAGS += -DDEBUG |
| 19 | LOCAL_CFLAGS += -DSTRIP_STATIC_SYMBOLS |
| 20 | LOCAL_CFLAGS += -DMOVE_SECTIONS_IN_RANGES |
| 21 | |
| 22 | ifeq ($(HOST_OS),windows) |
| 23 | # Cygwin stat does not support ACCESSPERMS bitmask |
| 24 | LOCAL_CFLAGS += -DACCESSPERMS=0777 |
| 25 | LOCAL_LDLIBS += -lintl |
| 26 | endif |
| 27 | |
| 28 | LOCAL_SRC_FILES := \ |
| 29 | cmdline.c \ |
| 30 | common.c \ |
| 31 | debug.c \ |
| 32 | soslim.c \ |
| 33 | main.c \ |
| 34 | prelink_info.c \ |
| 35 | symfilter.c |
| 36 | |
| 37 | LOCAL_C_INCLUDES:= \ |
| 38 | $(LOCAL_PATH)/ \ |
| 39 | external/elfutils/lib/ \ |
| 40 | external/elfutils/libelf/ \ |
| 41 | external/elfutils/libebl/ \ |
| 42 | external/elfcopy/ |
| 43 | |
| 44 | LOCAL_STATIC_LIBRARIES := libelfcopy libelf libebl libebl_arm #dl |
| 45 | |
| 46 | LOCAL_MODULE := soslim |
| 47 | |
| 48 | include $(BUILD_HOST_EXECUTABLE) |
| 49 | endif #TARGET_ARCH==arm |