-
Notifications
You must be signed in to change notification settings - Fork 14
/
Android-NDK.mk
executable file
·92 lines (69 loc) · 1.8 KB
/
Android-NDK.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
# Build the auditctl binary
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
ETC_DIR := $(TARGET_OUT)/etc/audit
LOCAL_MODULE := auditctl
LOCAL_MODULE_TAGS := eng
LOCAL_SRC_FILES:= lib/libaudit.c \
lib/message.c \
lib/netlink.c \
lib/lookup_table.c \
lib/audit_logging.c \
lib/deprecated.c \
src/auditctl.c \
src/auditctl-llist.c \
src/delete_all.c
LOCAL_C_INCLUDES := ./ \
./lib \
./libc \
./kernel \
./src
LOCAL_CFLAGS := -fPIE -DPIE -g -D_GNU_SOURCE -fno-strict-aliasing
LOCAL_SHARED_LIBRARIES := libc libcutils
LOCAL_LDLIBS := -llog
include $(BUILD_EXECUTABLE)
# Build the auditd binary
include $(CLEAR_VARS)
MY_ROOT_PATH := external/android_audit
LOCAL_MODULE := auditd
LOCAL_MODULE_TAGS := eng
LOCAL_SRC_FILES:= lib/libaudit.c \
lib/message.c \
lib/netlink.c \
lib/lookup_table.c \
lib/audit_logging.c \
lib/deprecated.c \
src/auditd.c \
src/auditd-event.c \
src/auditd-config.c \
src/auditd-reconfig.c \
src/auditd-sendmail.c \
src/auditd-listen.c \
src/auditd-parse.c \
src/ev.c \
src/event.c
LOCAL_C_INCLUDES := ./ \
./lib \
./libc \
./kernel \
./src
LOCAL_CFLAGS := -fPIE -DPIE -g -D_GNU_SOURCE -fno-strict-aliasing
LOCAL_SHARED_LIBRARIES := libc libcutils
LOCAL_LDLIBS := -llog
include $(BUILD_EXECUTABLE)
#spade-audit utility build
include $(CLEAR_VARS)
LOCAL_MODULE := spade-audit
LOCAL_MODULE_TAGS := eng
LOCAL_SRC_FILES:= src/spadeLinuxAudit.c
LOCAL_CFLAGS := -fPIE -DPIE -g -D_GNU_SOURCE -fno-strict-aliasing
LOCAL_SHARED_LIBRARIES := libc libcutils
include $(BUILD_EXECUTABLE)
# Start copying configuration files
include $(CLEAR_VARS)
LOCAL_MODULE := auditd.conf
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(ETC_DIR)
LOCAL_SRC_FILES := etc/auditd.conf
include $(BUILD_PREBUILT)