2014-05-31 03:32:10 +08:00
|
|
|
############################################################################
|
|
|
|
# net/icmp/Make.defs
|
|
|
|
#
|
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
|
|
|
|
|
2014-05-31 03:32:10 +08:00
|
|
|
NET_CSRCS += icmp_input.c
|
|
|
|
|
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
|
|
|
|
SOCK_CSRCS += icmp_recvmsg.c icmp_netpoll.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
|