added license for sysdeps/ieee754/flt-32/e_gammaf_r.c
[glibc.git] / socket / Makefile
blobdf732fa9b72570cdbac4c2ff17d457f24b44fb29
1 # Copyright (C) 1991-2024 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-connect \
74 tst-shutdown \
75 tst-sockopt \
76 # tests
78 tests-internal := \
79 tst-sockaddr_un_set \
80 # tests-internal
82 tests-time64 := \
83 tst-sockopt-time64 \
84 # tests
86 aux := sa_len
88 include ../Rules
90 CFLAGS-recv.c += -fexceptions -fasynchronous-unwind-tables $(config-cflags-wno-ignored-attributes)
91 CFLAGS-recvfrom.c += -fexceptions -fasynchronous-unwind-tables
92 CFLAGS-sendto.c += -fexceptions -fasynchronous-unwind-tables
93 CFLAGS-recvmsg.c += -fexceptions -fasynchronous-unwind-tables
94 CFLAGS-sendmsg.c += -fexceptions -fasynchronous-unwind-tables $(config-cflags-wno-ignored-attributes)
95 CFLAGS-send.c += -fexceptions -fasynchronous-unwind-tables $(config-cflags-wno-ignored-attributes)
96 CFLAGS-connect.c += -fexceptions -fasynchronous-unwind-tables $(config-cflags-wno-ignored-attributes)
97 CFLAGS-accept.c += -fexceptions -fasynchronous-unwind-tables $(config-cflags-wno-ignored-attributes)