]>
Commit | Line | Data |
---|---|---|
d4697bc9 | 1 | # Copyright (C) 1991-2014 Free Software Foundation, Inc. |
28f540f4 RM |
2 | # This file is part of the GNU C Library. |
3 | ||
4 | # The GNU C Library is free software; you can redistribute it and/or | |
41bdb6e2 AJ |
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. | |
28f540f4 RM |
8 | |
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 | |
41bdb6e2 | 12 | # Lesser General Public License for more details. |
28f540f4 | 13 | |
41bdb6e2 | 14 | # You should have received a copy of the GNU Lesser General Public |
59ba27a6 PE |
15 | # License along with the GNU C Library; if not, see |
16 | # <http://www.gnu.org/licenses/>. | |
28f540f4 RM |
17 | |
18 | # | |
19 | # Sub-makefile for misc portion of the library. | |
20 | # | |
21 | ||
22 | subdir := misc | |
23 | ||
a5f891ac JM |
24 | include ../Makeconfig |
25 | ||
5107cf1d | 26 | headers := sys/uio.h bits/uio.h sys/ioctl.h bits/ioctls.h bits/ioctl-types.h \ |
072ebcef | 27 | sys/ptrace.h sys/file.h sys/dir.h sys/cdefs.h \ |
5107cf1d | 28 | ar.h a.out.h libgen.h stab.h bits/stab.def sgtty.h \ |
c6251f03 | 29 | ttyent.h paths.h sys/reboot.h \ |
e66a42f5 RM |
30 | sys/mman.h sys/param.h bits/param.h \ |
31 | fstab.h mntent.h search.h err.h error.h \ | |
503054c0 | 32 | sys/queue.h sysexits.h syscall.h sys/syscall.h sys/swap.h \ |
5107cf1d | 33 | sys/select.h ustat.h sys/ustat.h bits/ustat.h sys/sysinfo.h \ |
c6251f03 | 34 | regexp.h bits/select.h bits/mman.h sys/xattr.h \ |
0f289b2a | 35 | syslog.h sys/syslog.h \ |
a0f33f99 | 36 | bits/syslog.h bits/syslog-ldbl.h bits/syslog-path.h bits/error.h \ |
c7683a6d | 37 | bits/select2.h bits/hwcap.h sys/auxv.h |
28f540f4 RM |
38 | |
39 | routines := brk sbrk sstk ioctl \ | |
e109c612 | 40 | readv writev preadv preadv64 pwritev pwritev64 \ |
28f540f4 RM |
41 | setreuid setregid \ |
42 | seteuid setegid \ | |
43 | getpagesize \ | |
44 | getdtsz \ | |
45 | gethostname sethostname getdomain setdomain \ | |
503054c0 | 46 | select pselect \ |
81a5726b | 47 | acct chroot fsync sync fdatasync syncfs reboot \ |
28f540f4 | 48 | gethostid sethostid \ |
069aa638 | 49 | revoke vhangup \ |
85adf316 | 50 | swapon swapoff mktemp mkstemp mkstemp64 mkdtemp \ |
3a83202d | 51 | mkostemp mkostemp64 mkstemps mkstemps64 mkostemps mkostemps64 \ |
28f540f4 RM |
52 | ualarm usleep \ |
53 | gtty stty \ | |
0d204b0a | 54 | ptrace \ |
845dcb57 | 55 | fstab mntent mntent_r \ |
26cec518 | 56 | utimes lutimes futimes futimesat \ |
9756dfe1 | 57 | truncate ftruncate truncate64 ftruncate64 \ |
28f540f4 RM |
58 | chflags fchflags \ |
59 | insremque getttyent getusershell getpass ttyslot \ | |
60 | syslog syscall daemon \ | |
3c531a87 | 61 | mmap mmap64 munmap mprotect msync madvise mincore remap_file_pages\ |
d81b986b | 62 | mlock munlock mlockall munlockall \ |
2064087b | 63 | efgcvt efgcvt_r qefgcvt qefgcvt_r \ |
9f447fb3 | 64 | hsearch hsearch_r tsearch lsearch \ |
845dcb57 | 65 | err error ustat \ |
54e9386d | 66 | getsysstats dirname regexp \ |
c0ad824e AJ |
67 | getloadavg getclktck \ |
68 | fgetxattr flistxattr fremovexattr fsetxattr getxattr \ | |
69 | listxattr lgetxattr llistxattr lremovexattr lsetxattr \ | |
11dd4af6 | 70 | removexattr setxattr getauxval ifunc-impl-list |
7cabd57c | 71 | |
f08e9a26 | 72 | generated += tst-error1.mtrace tst-error1-mem |
10ffcd52 | 73 | |
bbed653c | 74 | aux := init-misc |
029c7b25 | 75 | install-lib := libg.a |
196980f5 | 76 | gpl2lgpl := error.c error.h |
28f540f4 | 77 | |
10ffcd52 | 78 | tests := tst-dirname tst-tsearch tst-fdset tst-efgcvt tst-mntent tst-hsearch \ |
25e84177 | 79 | tst-error1 tst-pselect tst-insremque tst-mntent2 bug-hsearch1 |
03ac099f | 80 | ifeq ($(run-built-tests),yes) |
f214606a | 81 | tests-special += $(objpfx)tst-error1-mem |
10ffcd52 | 82 | endif |
1474b80f | 83 | |
c485e4d2 | 84 | CFLAGS-select.c = -fexceptions -fasynchronous-unwind-tables |
e07bb02a UD |
85 | CFLAGS-tsearch.c = $(uses-callbacks) |
86 | CFLAGS-lsearch.c = $(uses-callbacks) | |
7a114794 UD |
87 | CFLAGS-pselect.c = -fexceptions |
88 | CFLAGS-readv.c = -fexceptions -fasynchronous-unwind-tables | |
89 | CFLAGS-writev.c = -fexceptions -fasynchronous-unwind-tables | |
90 | CFLAGS-usleep.c = -fexceptions | |
73299943 | 91 | CFLAGS-syslog.c = -fexceptions |
048466f6 | 92 | CFLAGS-error.c = -fexceptions |
cdbfa9f8 | 93 | CFLAGS-getpass.c = -fexceptions |
f1c30c98 UD |
94 | CFLAGS-mkstemp.c = -fexceptions |
95 | CFLAGS-mkstemp64.c = -fexceptions | |
f1c30c98 UD |
96 | CFLAGS-getsysstats.c = -fexceptions |
97 | CFLAGS-getusershell.c = -fexceptions | |
8dab36a1 | 98 | CFLAGS-err.c = -fexceptions |
06f6ca90 | 99 | CFLAGS-tst-tsearch.c = $(stack-align-test-flags) |
dff14448 | 100 | |
28f540f4 RM |
101 | include ../Rules |
102 | ||
28f540f4 | 103 | $(objpfx)libg.a: $(dep-dummy-lib); $(make-dummy-lib) |
b236e99d | 104 | |
993b3242 UD |
105 | ifeq ($(build-shared),yes) |
106 | $(objpfx)tst-tsearch: $(common-objpfx)math/libm.so$(libm.so-version) | |
107 | else | |
108 | $(objpfx)tst-tsearch: $(common-objpfx)math/libm.a | |
109 | endif | |
e64911d1 | 110 | |
10ffcd52 UD |
111 | tst-error1-ENV = MALLOC_TRACE=$(objpfx)tst-error1.mtrace |
112 | tst-error1-ARGS = $(objpfx)tst-error1.out | |
113 | $(objpfx)tst-error1-mem: $(objpfx)tst-error1.out | |
f0881698 JM |
114 | $(common-objpfx)malloc/mtrace $(objpfx)tst-error1.mtrace > $@; \ |
115 | $(evaluate-test) |