Files
glibc/misc/Makefile
T

122 lines
4.0 KiB
Makefile
Raw Normal View History

# Copyright (C) 1991-2002,2003,2004,2005,2006 Free Software Foundation, Inc.
1995-02-18 01:27:10 +00:00
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
2001-07-06 04:58:11 +00:00
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
1995-02-18 01:27:10 +00:00
# The GNU C Library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2001-07-06 04:58:11 +00:00
# Lesser General Public License for more details.
1995-02-18 01:27:10 +00:00
2001-07-06 04:58:11 +00:00
# You should have received a copy of the GNU Lesser General Public
# License along with the GNU C Library; if not, write to the Free
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307 USA.
1995-02-18 01:27:10 +00:00
#
# Sub-makefile for misc portion of the library.
#
subdir := misc
1997-06-21 02:59:26 +00:00
headers := sys/uio.h bits/uio.h sys/ioctl.h bits/ioctls.h bits/ioctl-types.h \
sys/ptrace.h sys/file.h sys/dir.h sys/cdefs.h \
1997-06-21 02:59:26 +00:00
ar.h a.out.h libgen.h stab.h bits/stab.def sgtty.h \
ttyent.h paths.h sys/reboot.h \
1997-06-21 02:59:26 +00:00
sys/mman.h sys/param.h fstab.h mntent.h search.h err.h error.h \
sys/queue.h sysexits.h syscall.h sys/syscall.h sys/swap.h \
1997-06-21 02:59:26 +00:00
sys/select.h ustat.h sys/ustat.h bits/ustat.h sys/sysinfo.h \
regexp.h bits/select.h bits/mman.h sys/xattr.h \
2006-02-23 22:50:36 +00:00
syslog.h sys/syslog.h \
bits/syslog.h bits/syslog-ldbl.h bits/syslog-path.h
1995-02-18 01:27:10 +00:00
routines := brk sbrk sstk ioctl \
readv writev \
setreuid setregid \
seteuid setegid \
getpagesize \
getdtsz \
gethostname sethostname getdomain setdomain \
select pselect \
acct chroot fsync sync fdatasync reboot \
1995-02-18 01:27:10 +00:00
gethostid sethostid \
revoke vhangup \
2000-09-26 09:57:34 +00:00
swapon swapoff mktemp mkstemp mkstemp64 mkdtemp \
1995-02-18 01:27:10 +00:00
ualarm usleep \
gtty stty \
1996-10-17 01:51:38 +00:00
ptrace \
1996-09-22 03:06:42 +00:00
fstab mntent mntent_r \
utimes lutimes futimes futimesat \
1997-12-22 20:53:38 +00:00
truncate ftruncate truncate64 ftruncate64 \
1995-02-18 01:27:10 +00:00
chflags fchflags \
insremque getttyent getusershell getpass ttyslot \
syslog syscall daemon \
2003-03-03 19:34:52 +00:00
mmap mmap64 munmap mprotect msync madvise mincore remap_file_pages\
2001-04-19 23:25:40 +00:00
mlock munlock mlockall munlockall \
efgcvt efgcvt_r qefgcvt qefgcvt_r \
hsearch hsearch_r tsearch lsearch \
1996-09-22 03:06:42 +00:00
err error ustat \
1999-10-04 05:28:33 +00:00
getsysstats dirname regexp \
2002-08-23 09:29:27 +00:00
getloadavg getclktck \
fgetxattr flistxattr fremovexattr fsetxattr getxattr \
listxattr lgetxattr llistxattr lremovexattr lsetxattr \
removexattr setxattr
1998-08-03 16:47:01 +00:00
2000-09-26 07:56:19 +00:00
distribute := device-nrs.h
generated := tst-error1.mtrace tst-error1-mem
1998-08-03 16:47:01 +00:00
include ../Makeconfig
aux := init-misc
1998-07-29 14:52:00 +00:00
ifeq ($(build-static),yes)
1995-02-18 01:27:10 +00:00
install-lib := libbsd-compat.a libg.a
1998-07-29 14:52:00 +00:00
endif
gpl2lgpl := error.c error.h
1995-02-18 01:27:10 +00:00
tests := tst-dirname tst-tsearch tst-fdset tst-efgcvt tst-mntent tst-hsearch \
tst-error1 tst-pselect
ifeq (no,$(cross-compiling))
tests: $(objpfx)tst-error1-mem
endif
2003-09-16 05:54:09 +00:00
CFLAGS-tsearch.c = $(uses-callbacks)
CFLAGS-lsearch.c = $(uses-callbacks)
2003-06-15 21:22:26 +00:00
CFLAGS-pselect.c = -fexceptions
CFLAGS-readv.c = -fexceptions -fasynchronous-unwind-tables
CFLAGS-writev.c = -fexceptions -fasynchronous-unwind-tables
CFLAGS-usleep.c = -fexceptions
2003-07-15 07:52:52 +00:00
CFLAGS-syslog.c = -fexceptions
2003-08-30 08:33:15 +00:00
CFLAGS-error.c = -fexceptions
2003-08-30 09:10:12 +00:00
CFLAGS-getpass.c = -fexceptions
2003-09-02 07:14:15 +00:00
CFLAGS-mkstemp.c = -fexceptions
CFLAGS-mkstemp64.c = -fexceptions
CFLAGS-getsysstats.c = -fexceptions
CFLAGS-getusershell.c = -fexceptions
2003-09-12 22:37:19 +00:00
CFLAGS-err.c = -fexceptions
2003-09-17 18:23:49 +00:00
CFLAGS-tst-tsearch.c = $(stack-align-test-flags)
2004-02-09 07:39:42 +00:00
CFLAGS-mntent_r.c = -D_IO_MTSAFE_IO
1998-06-26 14:47:05 +00:00
1995-02-18 01:27:10 +00:00
include ../Rules
1998-04-21 22:58:23 +00:00
$(objpfx)libbsd-compat.a: $(dep-dummy-lib); $(make-dummy-lib)
1995-02-18 01:27:10 +00:00
$(objpfx)libg.a: $(dep-dummy-lib); $(make-dummy-lib)
1996-08-28 00:26:07 +00:00
1997-03-29 17:32:35 +00:00
ifeq ($(build-shared),yes)
$(objpfx)tst-tsearch: $(common-objpfx)math/libm.so$(libm.so-version)
else
$(objpfx)tst-tsearch: $(common-objpfx)math/libm.a
endif
2000-08-17 07:38:02 +00:00
ifeq ($(build-bounded),yes)
$(objpfx)tst-tsearch-bp: $(common-objpfx)math/libm_b.a
endif
tst-error1-ENV = MALLOC_TRACE=$(objpfx)tst-error1.mtrace
tst-error1-ARGS = $(objpfx)tst-error1.out
$(objpfx)tst-error1-mem: $(objpfx)tst-error1.out
$(common-objpfx)malloc/mtrace $(objpfx)tst-error1.mtrace > $@