forked from asLody/ElfHook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.mk
31 lines (24 loc) · 940 Bytes
/
config.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
######### 安装路径 ##########
ifndef PREFIX
PREFIX = /usr
endif
EXEC =
ANDROID_NDK = /Users/wuxin/Library/Android/ndk
CROSS_PREFIX = arm-linux-androideabi-
SYSROOT = $(ANDROID_NDK)/platforms/android-19/arch-arm
STL_PORT = $(ANDROID_NDK)/sources/cxx-stl/stlport
CC = $(CROSS_PREFIX)gcc
AR = $(CROSS_PREFIX)ar
LD = $(CROSS_PREFIX)gcc
RANLIB = $(CROSS_PREFIX)ranlib
STRIP = $(CROSS_PREFIX)strip
CFLAGS += -fPIE -Werror --sysroot=$(SYSROOT) -DELFHOOK_STANDALONE=1
CFLAGS += -I$(STL_PORT)/stlport
LDFLAGS += --sysroot=$(SYSROOT)
LDFLAGS += $(STL_PORT)/libs/armeabi-v7a/libstlport_static.a
LDFLAGS += -fPIE -pie -lstdc++
JNIFLAGS = APP_BUILD_SCRIPT=./Android.mk
JNIFLAGS += APP_ABI=arm64-v8a,armeabi-v7a
JNIFLAGS += APP_PLATFORM=android-23
JNIFLAGS += APP_STL=stlport_static
EXTRA_OBJS +=