forked from asLody/ElfHook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroid.mk
More file actions
70 lines (46 loc) · 1.33 KB
/
Android.mk
File metadata and controls
70 lines (46 loc) · 1.33 KB
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
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libElfHook_static
LOCAL_SRC_FILES := \
src/elf_common.cpp \
src/elf_hooker.cpp \
src/elf_module.cpp
LOCAL_C_INCLUDES :=
LOCAL_LDFLAGS :=
#LOCAL_STATIC_LIBRARIES :=
LOCAL_SHARED_LIBRARIES := stdc++
LOCAL_CFLAGS := \
-Wno-write-strings \
-DHAVE_LITTLE_ENDIAN \
-Werror
include $(BUILD_STATIC_LIBRARY)
####################################
include $(CLEAR_VARS)
LOCAL_MODULE := ElfHook
LOCAL_LDLIBS := -llog
LOCAL_SRC_FILES := \
src/main.cpp
LOCAL_C_INCLUDES :=
LOCAL_LDFLAGS :=
LOCAL_STATIC_LIBRARIES := ElfHook_static
LOCAL_SHARED_LIBRARIES := stdc++
LOCAL_CFLAGS := \
-Wno-write-strings \
-DHAVE_LITTLE_ENDIAN \
-DELFHOOK_STANDALONE=0
include $(BUILD_SHARED_LIBRARY)
####################################
include $(CLEAR_VARS)
LOCAL_MODULE := ElfHook.out
LOCAL_LDLIBS := -llog
LOCAL_SRC_FILES := \
src/main.cpp
LOCAL_C_INCLUDES :=
LOCAL_LDFLAGS := -fPIC -pie
LOCAL_STATIC_LIBRARIES := ElfHook_static
LOCAL_SHARED_LIBRARIES := stdc++
LOCAL_CFLAGS := \
-Wno-write-strings \
-DHAVE_LITTLE_ENDIAN \
-DELFHOOK_STANDALONE=1
include $(BUILD_EXECUTABLE)