Files
glibc/stdio-common/Makefile
T

93 lines
3.2 KiB
Makefile
Raw Normal View History

2003-01-16 00:09:24 +00:00
# Copyright (C) 1991-2002, 2003 Free Software Foundation, Inc.
# 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.
# 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.
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.
#
# Specific makefile for stdio-common.
#
subdir := stdio-common
2002-08-27 12:10:11 +00:00
headers := printf.h stdio_ext.h
routines := \
ctermid cuserid \
2000-08-31 08:50:08 +00:00
_itoa _itowa itoa-digits itoa-udigits itowa-digits \
1997-10-26 20:13:00 +00:00
vfprintf vprintf printf_fp reg-printf printf-prs printf_fphex \
1997-03-25 01:45:04 +00:00
printf_size fprintf printf snprintf sprintf asprintf dprintf \
2002-08-27 12:10:11 +00:00
vfwprintf vfscanf vfwscanf \
fscanf scanf sscanf \
perror psignal \
1997-10-12 04:05:44 +00:00
tmpfile tmpfile64 tmpnam tmpnam_r tempnam tempname \
getline getw putw \
1996-09-13 05:28:59 +00:00
remove rename \
2002-12-16 22:17:11 +00:00
flockfile ftrylockfile funlockfile
1996-09-13 03:21:39 +00:00
2002-08-27 12:10:11 +00:00
install-others = $(inst_includedir)/bits/stdio_lim.h
1998-09-15 12:10:51 +00:00
2002-08-31 09:43:13 +00:00
generated = errlist-compat.c
2002-08-27 12:10:11 +00:00
include ../Makeconfig
1999-08-23 17:55:49 +00:00
aux := errlist siglist
distribute := _itoa.h _itowa.h _i18n_number.h \
printf-parse.h stdio_lim.h.in tst-unbputc.sh tst-printf.sh
tests := tstscanf test_rdwr test-popen tstgetln test-fseek \
1997-04-08 23:42:08 +00:00
temptest tst-fileno test-fwrite tst-ungetc tst-ferror \
xbug errnobug \
1999-10-05 00:48:12 +00:00
bug1 bug2 bug3 bug4 bug5 bug6 bug7 bug8 bug9 bug10 bug11 bug12 bug13 \
1999-02-14 20:03:55 +00:00
tfformat tiformat tllformat tstdiomisc tst-printfsz tst-wc-printf \
1998-12-14 15:23:56 +00:00
scanf1 scanf2 scanf3 scanf4 scanf5 scanf7 scanf8 scanf9 scanf10 \
2001-11-27 08:33:32 +00:00
scanf11 scanf12 tst-tmpnam tst-cookie tst-obprintf tst-sscanf \
2001-12-14 07:22:26 +00:00
tst-swprintf tst-fseek tst-fmemopen test-vfprintf tst-gets \
2003-01-16 00:09:24 +00:00
tst-perror tst-sprintf tst-rndseek tst-fdopen tst-fphex bug14
test-srcs = tst-unbputc tst-printf
2000-07-03 21:40:46 +00:00
include ../Rules
2002-08-27 16:23:40 +00:00
$(inst_includedir)/bits/stdio_lim.h: $(common-objpfx)bits/stdio_lim.h $(+force)
2002-08-27 12:10:11 +00:00
$(do-install)
2000-08-25 09:02:59 +00:00
ifeq ($(cross-compiling),no)
.PHONY: do-tst-unbputc do-tst-printf
tests: do-tst-unbputc do-tst-printf
2000-07-03 21:40:46 +00:00
do-tst-unbputc: $(objpfx)tst-unbputc.out
$(objpfx)tst-unbputc.out: $(objpfx)tst-unbputc tst-unbputc.sh
$(SHELL) -e tst-unbputc.sh $(common-objpfx) '$(run-program-prefix)'
2000-07-03 21:40:46 +00:00
do-tst-printf: $(objpfx)tst-printf.out
$(objpfx)tst-printf.out: $(objpfx)tst-printf tst-printf.sh
$(SHELL) -e tst-printf.sh $(common-objpfx) '$(run-program-prefix)'
2000-08-25 09:02:59 +00:00
endif
1996-12-22 00:32:43 +00:00
CFLAGS-vfprintf.c = -Wno-uninitialized
CFLAGS-tst-printf.c = -Wno-format
1996-10-31 02:57:12 +00:00
CFLAGS-tstdiomisc.c = -Wno-format
1996-11-27 06:13:15 +00:00
CFLAGS-scanf4.c = -Wno-format
CFLAGS-scanf7.c = -Wno-format
1997-04-21 11:38:46 +00:00
CFLAGS-tst-printfsz.c = -Wno-format
1996-09-20 01:58:09 +00:00
2000-07-28 17:45:15 +00:00
tst-sscanf-ENV = LOCPATH=$(common-objpfx)localedata
2000-09-05 22:52:41 +00:00
tst-swprintf-ENV = LOCPATH=$(common-objpfx)localedata
2000-11-18 23:34:30 +00:00
test-vfprintf-ENV = LOCPATH=$(common-objpfx)localedata
2000-07-28 17:45:15 +00:00
1996-09-20 01:58:09 +00:00
ifneq (,$(filter %REENTRANT, $(defines)))
CPPFLAGS += -D_IO_MTSAFE_IO
endif