blob: 60a860a28ce26b6a566a4abb256e68c8182ec81e [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001# Copyright 2005 The Android Open Source Project
2#
3# Android.mk for soslim
4#
5
6LOCAL_PATH:= $(call my-dir)
7
8ifeq ($(TARGET_ARCH),arm)
9include $(CLEAR_VARS)
10
11LOCAL_LDLIBS += -ldl
12LOCAL_CFLAGS += -O2 -g
13LOCAL_CFLAGS += -fno-function-sections -fno-data-sections -fno-inline
14LOCAL_CFLAGS += -Wall -Wno-unused-function #-Werror
15LOCAL_CFLAGS += -DBIG_ENDIAN=1
16LOCAL_CFLAGS += -DARM_SPECIFIC_HACKS
17LOCAL_CFLAGS += -DSUPPORT_ANDROID_PRELINK_TAGS
18LOCAL_CFLAGS += -DDEBUG
19LOCAL_CFLAGS += -DSTRIP_STATIC_SYMBOLS
20LOCAL_CFLAGS += -DMOVE_SECTIONS_IN_RANGES
21
22ifeq ($(HOST_OS),windows)
23# Cygwin stat does not support ACCESSPERMS bitmask
24LOCAL_CFLAGS += -DACCESSPERMS=0777
25LOCAL_LDLIBS += -lintl
26endif
27
28LOCAL_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
37LOCAL_C_INCLUDES:= \
38 $(LOCAL_PATH)/ \
39 external/elfutils/lib/ \
40 external/elfutils/libelf/ \
41 external/elfutils/libebl/ \
42 external/elfcopy/
43
44LOCAL_STATIC_LIBRARIES := libelfcopy libelf libebl libebl_arm #dl
45
46LOCAL_MODULE := soslim
47
48include $(BUILD_HOST_EXECUTABLE)
49endif #TARGET_ARCH==arm