summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/platform_android.GNU
blob: c20bbfffc120a49a584a652248004a068d986bf8 (plain)
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
# $Id$
static_libs_only=1
ssl=0
inline=0

# HOST_PREBUILT :=/Users/frohnhoefere/Android/android-toolchain
NDK_HOME := /opt/android-ndk-r6
ANDROID_ARCH ?= arm
ANDROID_PLATFORM ?= android-8
SYSROOT := $(NDK_HOME)/platforms/$(ANDROID_PLATFORM)/arch-$(ANDROID_ARCH)

CC_FLAGS += $(CFLAGS) $(TEMPLATES_FLAG)

CPP_FLAGS += \
       --sysroot=$(SYSROOT) \
       -I$(NDK_HOME)/sources/cxx-stl/gnu-libstdc++/include \
       -I$(NDK_HOME)/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include \
       -fpic \
       -ffunction-sections \
       -funwind-tables \
       -D__ARM_ARCH_5__ \
       -D__ARM_ARCH_5T__ \
       -D__ARM_ARCH_5E__ \
       -D__ARM_ARCH_5TE__ \
       -Wno-psabi \
       -march=armv5te \
       -mtune=xscale \
       -msoft-float \
       -fexceptions \
       -frtti \
       -mthumb \
       -O0 \
       -fomit-frame-pointer \
       -fno-strict-aliasing \
       -finline-limit=64 \
       -DANDROID \
       -g

SOFLAGS += $(NDK_HOME)/sources/cxx-stl/gnu-libstdc++/libs/armeabi/libstdc++.a

LDFLAGS := \
	--sysroot=$(SYSROOT) \
	$(LDLIBS) \
	$(SOFLAGS)

POSTLINK := \
	--sysroot=$(SYSROOT) \
	$(LDLIBS) \
	$(SOFLAGS)

CC=arm-linux-androideabi-g++ $(CPP_FLAGS)
CXX=arm-linux-androideabi-g++ $(CPP_FLAGS)
AR=arm-linux-androideabi-ar
STRIP=arm-linux-androideabi-strip
RANLIB=arm-linux-androideabi-ranlib
DLD =$(CXX)
LD =arm-linux-androideabi-g++

ifneq (,$(HOST_ROOT))
  TAO_IDLFLAGS += -g $(HOST_ROOT)/bin/ace_gperf
  TAO_IDL = $(HOST_ROOT)/bin/tao_idl
  TAO_IDL3_TO_IDL2 = $(HOST_ROOT)/bin/tao_idl3_to_idl2
  TAO_IDL_DEP = $(TAO_IDL)
  TAO_IDL3_TO_IDL2_DEP = $(TAO_IDL3_TO_IDL2)
  # make sure to use the target compiler, not the cross-compiler
  # as preprocessor for the cross-compiled idl tools
  TAO_IDL_PREPROCESSOR = gcc
endif