3 ifneq ($(TARGET
),ANDROID
)
13 DEPFLAGS
= -MD
-MF
$(DEPFILE
) -MT
$@
15 ifeq ($(DEBUG
)$(LLVM
),nn
)
16 OPTIMIZE
:= -O4
-DNDEBUG
-Wuninitialized
17 AR
+= --plugin
/usr
/local
/lib
/LLVMgold.so
20 ifeq ($(USE_CCACHE
),y
)
21 # ccache will not use the optimisation of avoiding the 2nd call to the
22 # pre-processor by compiling the pre-processed output that was used for
23 # finding the hash in the case of a cache miss.
24 CCACHE
:= export CCACHE_CPP2
=yes
&& $(CCACHE
)
27 ifeq ($(TARGET
),ANDROID
)
28 TARGET_ARCH
:= $(filter-out -mthumb-interwork
,$(TARGET_ARCH
))
29 TARGET_ARCH
+= -gcc-toolchain
$(ANDROID_GCC_TOOLCHAIN
)
30 TARGET_ARCH
+= -target
$(LLVM_TRIPLE
)
31 TARGET_CPPFLAGS
+= -DBIONIC
-DLIBCPP_NO_IOSTREAM
34 ifeq ($(TARGET_IS_PI
),y
)
35 TARGET_LLVM_FLAGS
= -march
=arm
-mcpu
=arm1136jf-s
-mattr
=+vfp2
-float-abi
=hard \
36 -enable-no-infs-fp-math
-enable-no-nans-fp-math
-enable-unsafe-fp-math
37 TARGET_ARCH
:= -target armv6-none-linux-gnueabihf
-mfloat-abi
=hard
-mfpu
=vfp
-integrated-as
40 ifeq ($(HOST_IS_PI
)$(TARGET_IS_PI
),ny
)
41 TARGET_CPPFLAGS
+= -isystem
/opt
/pi
/root
/usr
/include/c
++/4.6
42 TARGET_CPPFLAGS
+= -isystem
/opt
/pi
/root
/usr
/include/c
++/4.6/arm-linux-gnueabihf
43 TARGET_LDFLAGS
+= -L
$(PI
)/usr
/lib
/gcc
/arm-linux-gnueabihf
/4.6