forked from cvpcs/android_external_lsof
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Android.mk
109 lines (85 loc) · 2.27 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
ifneq ($(TARGET_SIMULATOR),true)
LOCAL_PATH := $(call my-dir)
#########################################################################
# Build liblsof (static library)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
lib/ckkv.c \
lib/cvfs.c \
lib/dvch.c \
lib/fino.c \
lib/isfn.c \
lib/lkud.c \
lib/pdvn.c \
lib/prfp.c \
lib/ptti.c \
lib/rdev.c \
lib/regex.c \
lib/rmnt.c \
lib/rnam.c \
lib/rnch.c \
lib/rnmh.c \
lib/snpf.c
LOCAL_MODULE := liblsof
LOCAL_MODULE_TAGS:= eng
LOCAL_C_INCLUDES := \
external/clearsilver/util/regex
LOCAL_CFLAGS := -Os -g -W -Wall \
-DLINUXV=26032 \
-D__BIONIC__ \
-DHASIPv6 \
-D_FILE_OFFSET_BITS=32 \
-DHAS_STRFTIME \
-DLSOF_VSTR=\"2.6.32-androidlol\"
LOCAL_PRELINK_MODULE := false
include $(BUILD_STATIC_LIBRARY)
#########################################################################
# Build lsof (shared)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
dfile.c dmnt.c dnode.c dproc.c dsock.c dstore.c \
arg.c main.c misc.c node.c print.c proc.c store.c usage.c \
util.c
LOCAL_C_INCLUDES := \
external/clearsilver/util/regex
LOCAL_CFLAGS := -Os -g -W -Wall \
-DLINUXV=26032 \
-D__BIONIC__ \
-DHASIPv6 \
-D_FILE_OFFSET_BITS=32 \
-DHAS_STRFTIME \
-DLSOF_VSTR=\"2.6.32-androidlol\"
LOCAL_MODULE := lsof
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_STATIC_LIBRARIES := \
liblsof
include $(BUILD_EXECUTABLE)
#########################################################################
# Build lsof (static utility)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
dfile.c dmnt.c dnode.c dproc.c dsock.c dstore.c \
arg.c main.c misc.c node.c print.c proc.c store.c usage.c \
util.c
LOCAL_C_INCLUDES := \
external/clearsilver/util/regex
LOCAL_CFLAGS := -Os -g -W -Wall \
-DLINUXV=26032 \
-D__BIONIC__ \
-DHASIPv6 \
-D_FILE_OFFSET_BITS=32 \
-DHAS_STRFTIME \
-DLSOF_VSTR=\"2.6.32-androidlol\"
LOCAL_MODULE := utility_lsof
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
LOCAL_MODULE_STEM := lsof
LOCAL_STATIC_LIBRARIES := \
liblsof \
libc
LOCAL_FORCE_STATIC_EXECUTABLE := true
include $(BUILD_EXECUTABLE)
endif # ! TARGET_SIMULATOR