support: Add support_set_vma_name
[glibc.git] / socket / Makefile
blob08f20118cdde769769d40dd06dbdce54e3b7395c
1 # Copyright (C) 1991-2023 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, see
16 # <https://www.gnu.org/licenses/>.
19 # Sub-makefile for socket portion of the library.
21 subdir := socket
23 include ../Makeconfig
25 headers := \
26 bits/sockaddr.h \
27 bits/socket.h \
28 bits/socket2.h \
29 bits/types/struct_osockaddr.h \
30 net/if.h \
31 sys/socket.h \
32 sys/socketvar.h \
33 sys/un.h \
34 # headers
36 routines := \
37 accept \
38 accept4 \
39 bind \
40 connect \
41 getpeername \
42 getsockname \
43 getsockopt \
44 isfdtype \
45 listen \
46 opensock \
47 recv \
48 recvfrom \
49 recvmmsg \
50 recvmsg \
51 send \
52 sendmmsg \
53 sendmsg \
54 sendto \
55 setsockopt \
56 shutdown \
57 sockaddr_un_set \
58 sockatmark \
59 socket \
60 socketpair \
61 # routines
63 # Exclude fortified routines from being built with _FORTIFY_SOURCE
64 routines_no_fortify += \
65 recv \
66 recvfrom \
67 # routines_no_fortify
69 tests := \
70 tst-accept4 \
71 tst-cmsg_cloexec \
72 tst-cmsghdr \
73 tst-sockopt \
74 # tests
76 tests-internal := \
77 tst-sockaddr_un_set \
78 # tests-internal
80 tests-time64 := \
81 tst-sockopt-time64 \
82 # tests
84 aux := sa_len
86 include ../Rules
88 CFLAGS-recv.c += -fexceptions -fasynchronous-unwind-tables $(config-cflags-wno-ignored-attributes)
89 CFLAGS-recvfrom.c += -fexceptions -fasynchronous-unwind-tables
90 CFLAGS-sendto.c += -fexceptions -fasynchronous-unwind-tables
91 CFLAGS-recvmsg.c += -fexceptions -fasynchronous-unwind-tables
92 CFLAGS-sendmsg.c += -fexceptions -fasynchronous-unwind-tables $(config-cflags-wno-ignored-attributes)
93 CFLAGS-send.c += -fexceptions -fasynchronous-unwind-tables $(config-cflags-wno-ignored-attributes)
94 CFLAGS-connect.c += -fexceptions -fasynchronous-unwind-tables $(config-cflags-wno-ignored-attributes)
95 CFLAGS-accept.c += -fexceptions -fasynchronous-unwind-tables $(config-cflags-wno-ignored-attributes)