2014-05-31 03:32:10 +08:00
|
|
|
############################################################################
|
|
|
|
# net/icmp/Make.defs
|
|
|
|
#
|
2024-09-11 20:39:39 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
2021-02-19 19:45:37 +08:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2014-05-31 03:32:10 +08:00
|
|
|
#
|
2021-02-19 19:45:37 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-05-31 03:32:10 +08:00
|
|
|
#
|
2021-02-19 19:45:37 +08:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2014-05-31 03:32:10 +08:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_ICMP),y)
|
2018-11-10 01:25:57 +08:00
|
|
|
ifneq ($(CONFIG_NET_ICMP_NO_STACK),y)
|
2014-05-31 03:32:10 +08:00
|
|
|
|
2015-01-15 06:10:38 +08:00
|
|
|
# ICMP source files
|
|
|
|
|
2021-11-25 22:03:33 +08:00
|
|
|
NET_CSRCS += icmp_input.c icmp_reply.c
|
2014-05-31 03:32:10 +08:00
|
|
|
|
2023-05-11 19:32:30 +08:00
|
|
|
ifneq ($(CONFIG_NET_ICMP_PMTU_ENTRIES), 0)
|
|
|
|
NET_CSRCS += icmp_pmtu.c
|
|
|
|
endif
|
|
|
|
|
2017-10-23 22:45:12 +08:00
|
|
|
ifeq ($(CONFIG_NET_ICMP_SOCKET),y)
|
2020-12-01 14:55:16 +08:00
|
|
|
SOCK_CSRCS += icmp_sockif.c icmp_poll.c icmp_conn.c icmp_sendmsg.c
|
2022-03-31 11:40:08 +08:00
|
|
|
SOCK_CSRCS += icmp_recvmsg.c icmp_netpoll.c icmp_ioctl.c
|
2014-05-31 03:32:10 +08:00
|
|
|
endif
|
|
|
|
|
2014-07-01 09:43:30 +08:00
|
|
|
# Include ICMP build support
|
2014-05-31 03:32:10 +08:00
|
|
|
|
|
|
|
DEPPATH += --dep-path icmp
|
|
|
|
VPATH += :icmp
|
2018-11-10 01:25:57 +08:00
|
|
|
|
|
|
|
endif # !CONFIG_NET_ICMP_NO_STACK
|
|
|
|
endif # CONFIG_NET_ICMP
|