android: Increase compile warnings
[strongswan.git] / src / frontends / android / jni / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 strongswan_CHARON_PLUGINS := android-log openssl fips-prf random nonce pubkey \
5 pkcs1 pkcs8 pem xcbc hmac socket-default \
6 eap-identity eap-mschapv2 eap-md5 eap-gtc
7
8 strongswan_PLUGINS := $(strongswan_CHARON_PLUGINS)
9
10 include $(LOCAL_PATH)/strongswan/Android.common.mk
11
12 # includes
13 strongswan_PATH := $(LOCAL_PATH)/strongswan
14 libvstr_PATH := $(LOCAL_PATH)/vstr/include
15 openssl_PATH := $(LOCAL_PATH)/openssl/include
16
17 # CFLAGS (partially from a configure run using droid-gcc)
18 strongswan_CFLAGS := \
19 -Wall \
20 -Wextra \
21 -Wno-format \
22 -Wno-pointer-sign \
23 -Wno-pointer-arith \
24 -Wno-sign-compare \
25 -Wno-strict-aliasing \
26 -Wno-unused-parameter \
27 -DHAVE___BOOL \
28 -DHAVE_STDBOOL_H \
29 -DHAVE_ALLOCA_H \
30 -DHAVE_ALLOCA \
31 -DHAVE_CLOCK_GETTIME \
32 -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC \
33 -DHAVE_PRCTL \
34 -DHAVE_LINUX_UDP_H \
35 -DHAVE_STRUCT_SADB_X_POLICY_SADB_X_POLICY_PRIORITY \
36 -DHAVE_IPSEC_MODE_BEET \
37 -DHAVE_IPSEC_DIR_FWD \
38 -DOPENSSL_NO_EC \
39 -DOPENSSL_NO_ECDSA \
40 -DOPENSSL_NO_ECDH \
41 -DOPENSSL_NO_ENGINE \
42 -DCONFIG_H_INCLUDED \
43 -DCAPABILITIES \
44 -DCAPABILITIES_NATIVE \
45 -DMONOLITHIC \
46 -DUSE_IKEV1 \
47 -DUSE_IKEV2 \
48 -DUSE_VSTR \
49 -DDEBUG \
50 -DCHARON_UDP_PORT=0 \
51 -DCHARON_NATT_PORT=0 \
52 -DVERSION=\"$(strongswan_VERSION)\" \
53 -DDEV_RANDOM=\"/dev/random\" \
54 -DDEV_URANDOM=\"/dev/urandom\"
55
56 # only for Android 2.0+
57 strongswan_CFLAGS += \
58 -DHAVE_IN6ADDR_ANY
59
60 include $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
61 vstr \
62 openssl \
63 libandroidbridge \
64 strongswan/src/libipsec \
65 strongswan/src/libcharon \
66 strongswan/src/libhydra \
67 strongswan/src/libstrongswan \
68 ))