-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.mak
49 lines (39 loc) · 1.8 KB
/
config.mak
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
SRCPATH =.
ndk_root =/opt/android-ndk-r14b
sys_root =${ndk_root}/platforms/android-15/arch-arm
ndk_lib =${sys_root}/usr/lib
ndk_inc =${sys_root}/usr/include
ndk_tool =${ndk_root}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
ndk_bin =${ndk_root}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin
ndk_c++inc =${ndk_root}/sources/cxx-stl/gnu-libstdc++/4.9/include
stl_lib =${ndk_root}/sources/cxx-stl/stlport/libs/armeabi
ARCH =ARM
SYS =LINUX
CC =${ndk_bin}/arm-linux-androideabi-gcc
CXX =${ndk_bin}/arm-linux-androideabi-gcc
LD =${ndk_bin}/arm-linux-androideabi-gcc
AR =${ndk_bin}/arm-linux-androideabi-ar rc
RANLIB =${ndk_bin}/arm-linux-androideabi-ranlib
STRIP =${ndk_bin}/arm-linux-androideabi-strip
AS =${ndk_bin}/arm-linux-androideabi-gcc
RC =
RCFLAGS :=
COMMONFLAGS := -MMD -MP -fPIC
COMMONFLAGS += -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb -O3 -Wall -pipe \
-ffast-math -fstrict-aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -DANDROID
COMMONFLAGS += -I. -I${ndk_inc} -I${ndk_root}/sources/cxx-stl/stlport/stlport
CFLAGS := $(COMMONFLAGS) -D__STDC_CONSTANT_MACROS
CXXFLAGS := $(COMMONFLAGS) -D__STDC_CONSTANT_MACROS -fno-exceptions -fno-rtti -I${ndk_c++inc}
ASFLAGS := $(COMMONFLAGS) -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8
LDFLAGS :=-L${ndk_lib} -L${stl_lib} -shared --sysroot=${sys_root} -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -lc
LIBS := -lstlport_static -lstdc++
DEBUG_CXXFLAGS := ${CXXFLAGS} -g -DDEBUG -D_DEBUG
RELEASE_CXXFLAGS:= ${CXXFLAGS} -DNDEBUG
DEBUG_CFLAGS := ${CFLAGS} -g -DDEBUG -D_DEBUG
RELEASE_CFLAGS := ${CFLAGS} -DNDEBUG
DEBUG_LDFLAGS := ${LDFLAGS}
RELEASE_LDFLAGS := ${LDFLAGS}
OUTPUT_OBJDIR := ./obj/android/
OUTPUT_LIBDIR := ./lib/android/
OUTPUT_BINDIR := ./bin/android/
OUTPUT :=