android: Increase compile warnings
[strongswan.git] / src / frontends / android / jni / Android.mk
index 74c6c6a..40a7a06 100644 (file)
@@ -2,8 +2,8 @@ LOCAL_PATH := $(call my-dir)
 include $(CLEAR_VARS)
 
 strongswan_CHARON_PLUGINS := android-log openssl fips-prf random nonce pubkey \
-       pkcs1 pem xcbc hmac socket-default \
-       eap-identity eap-mschapv2 eap-md5
+       pkcs1 pkcs8 pem xcbc hmac socket-default \
+       eap-identity eap-mschapv2 eap-md5 eap-gtc
 
 strongswan_PLUGINS := $(strongswan_CHARON_PLUGINS)
 
@@ -16,11 +16,14 @@ openssl_PATH := $(LOCAL_PATH)/openssl/include
 
 # CFLAGS (partially from a configure run using droid-gcc)
 strongswan_CFLAGS := \
+       -Wall \
+       -Wextra \
        -Wno-format \
        -Wno-pointer-sign \
        -Wno-pointer-arith \
        -Wno-sign-compare \
        -Wno-strict-aliasing \
+       -Wno-unused-parameter \
        -DHAVE___BOOL \
        -DHAVE_STDBOOL_H \
        -DHAVE_ALLOCA_H \
@@ -44,7 +47,8 @@ strongswan_CFLAGS := \
        -DUSE_IKEV2 \
        -DUSE_VSTR \
        -DDEBUG \
-       -DCHARON_UDP_PORT=4000 \
+       -DCHARON_UDP_PORT=0 \
+       -DCHARON_NATT_PORT=0 \
        -DVERSION=\"$(strongswan_VERSION)\" \
        -DDEV_RANDOM=\"/dev/random\" \
        -DDEV_URANDOM=\"/dev/urandom\"
@@ -56,6 +60,8 @@ strongswan_CFLAGS += \
 include $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
                vstr \
                openssl \
+               libandroidbridge \
+               strongswan/src/libipsec \
                strongswan/src/libcharon \
                strongswan/src/libhydra \
                strongswan/src/libstrongswan \