1# SPDX-License-Identifier: Apache-2.0 2 3zephyr_library() 4zephyr_library_include_directories(. ${ZEPHYR_BASE}/subsys/net/ip) 5zephyr_library_compile_definitions_ifdef( 6 CONFIG_NEWLIB_LIBC __LINUX_ERRNO_EXTENSIONS__ 7 ) 8 9zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip) 10 11zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP 12 ppp_l2.c 13 fsm.c 14 lcp.c 15 options.c 16 link.c 17 network.c 18 misc.c) 19 20zephyr_library_sources_ifdef(CONFIG_NET_STATISTICS_PPP ppp_stats.c) 21 22zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP_MGMT ppp_mgmt.c) 23 24if(CONFIG_NET_IPV4) 25 zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP ipcp.c) 26endif() 27 28if(CONFIG_NET_IPV6) 29 zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP ipv6cp.c) 30endif() 31 32zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP_PAP pap.c) 33