1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_SRC_FILES:= \ 5 auth.c \ 6 ccp.c \ 7 chap-md5.c \ 8 chap-new.c \ 9 chap_ms.c \ 10 demand.c \ 11 eap.c \ 12 ecp.c \ 13 eui64.c \ 14 fsm.c \ 15 ipcp.c \ 16 ipv6cp.c \ 17 lcp.c \ 18 magic.c \ 19 main.c \ 20 options.c \ 21 pppcrypt.c \ 22 pppox.c \ 23 session.c \ 24 sys-linux.c \ 25 tty.c \ 26 upap.c \ 27 utils.c 28 29# options.c:623:21: error: passing 'const char *' to parameter of type 'char *' discards qualifiers. 30# [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 31LOCAL_CLANG_CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers 32 33LOCAL_SHARED_LIBRARIES := \ 34 libcutils liblog libcrypto 35 36LOCAL_C_INCLUDES := \ 37 $(LOCAL_PATH)/include 38 39LOCAL_CFLAGS := -DCHAPMS=1 -DMPPE=1 -DINET6=1 -DUSE_OPENSSL=1 -Wno-unused-parameter -Wno-empty-body -Wno-missing-field-initializers -Wno-attributes -Wno-sign-compare -Wno-pointer-sign -Werror 40 41# Turn off warnings for now until this is fixed upstream. b/18632512 42LOCAL_CFLAGS += -Wno-unused-variable 43 44LOCAL_MODULE:= pppd 45 46include $(BUILD_EXECUTABLE) 47