blob: 79ecf7fc7fb0af09785aa9550e9cba075ba105ac [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 apriori
4#
5
6LOCAL_PATH:= $(call my-dir)
7
8ifneq ($(TARGET_SIMULATOR),true)
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 += -DSUPPORT_ANDROID_PRELINK_TAGS
16LOCAL_CFLAGS += -DDEBUG
17LOCAL_CFLAGS += -DADJUST_ELF=1
18
19ifeq ($(TARGET_ARCH),arm)
20LOCAL_CFLAGS += -DARM_SPECIFIC_HACKS
21LOCAL_CFLAGS += -DBIG_ENDIAN=1
22endif
23
24ifeq ($(HOST_OS),darwin)
25LOCAL_CFLAGS += -DFSCANF_IS_BROKEN
26endif
27ifeq ($(HOST_OS),windows)
28LOCAL_CFLAGS += -DFSCANF_IS_BROKEN
29LOCAL_LDLIBS += -lintl
30endif
31
32
33
34LOCAL_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
45LOCAL_C_INCLUDES:= \
46 $(LOCAL_PATH)/ \
47 external/elfutils/lib/ \
48 external/elfutils/libelf/ \
49 external/elfutils/libebl/ \
50 external/elfcopy/
51
52LOCAL_STATIC_LIBRARIES := libelfcopy libelf libebl #dl
53
54ifeq ($(TARGET_ARCH),arm)
55LOCAL_STATIC_LIBRARIES += libebl_arm
56endif
57
58LOCAL_MODULE := apriori
59
60include $(BUILD_HOST_EXECUTABLE)
61endif # TARGET_SIMULATOR != true