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 apriori |
| 4 | # |
| 5 | |
| 6 | LOCAL_PATH:= $(call my-dir) |
| 7 | |
| 8 | ifneq ($(TARGET_SIMULATOR),true) |
| 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 += -DSUPPORT_ANDROID_PRELINK_TAGS |
| 16 | LOCAL_CFLAGS += -DDEBUG |
| 17 | LOCAL_CFLAGS += -DADJUST_ELF=1 |
| 18 | |
| 19 | ifeq ($(TARGET_ARCH),arm) |
| 20 | LOCAL_CFLAGS += -DARM_SPECIFIC_HACKS |
| 21 | LOCAL_CFLAGS += -DBIG_ENDIAN=1 |
| 22 | endif |
| 23 | |
| 24 | ifeq ($(HOST_OS),darwin) |
| 25 | LOCAL_CFLAGS += -DFSCANF_IS_BROKEN |
| 26 | endif |
| 27 | ifeq ($(HOST_OS),windows) |
| 28 | LOCAL_CFLAGS += -DFSCANF_IS_BROKEN |
| 29 | LOCAL_LDLIBS += -lintl |
| 30 | endif |
| 31 | |
| 32 | |
| 33 | |
| 34 | LOCAL_SRC_FILES := \ |
| 35 | apriori.c \ |
| 36 | cmdline.c \ |
| 37 | debug.c \ |
| 38 | hash.c \ |
| 39 | main.c \ |
| 40 | prelink_info.c \ |
| 41 | rangesort.c \ |
| 42 | source.c \ |
| 43 | prelinkmap.c |
| 44 | |
| 45 | LOCAL_C_INCLUDES:= \ |
| 46 | $(LOCAL_PATH)/ \ |
| 47 | external/elfutils/lib/ \ |
| 48 | external/elfutils/libelf/ \ |
| 49 | external/elfutils/libebl/ \ |
| 50 | external/elfcopy/ |
| 51 | |
| 52 | LOCAL_STATIC_LIBRARIES := libelfcopy libelf libebl #dl |
| 53 | |
| 54 | ifeq ($(TARGET_ARCH),arm) |
| 55 | LOCAL_STATIC_LIBRARIES += libebl_arm |
| 56 | endif |
| 57 | |
| 58 | LOCAL_MODULE := apriori |
| 59 | |
| 60 | include $(BUILD_HOST_EXECUTABLE) |
| 61 | endif # TARGET_SIMULATOR != true |