Files
glibc/stdio-common/Makefile
T

96 lines
3.2 KiB
Makefile
Raw Normal View History

2001-02-15 19:57:43 +00:00
# Copyright (C) 1991-1999, 2000, 2001 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
# modify it under the terms of the GNU Library General Public License as
# published by the Free Software Foundation; either version 2 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
# Library General Public License for more details.
# You should have received a copy of the GNU Library General Public
1996-11-27 06:13:15 +00:00
# License along with the GNU C Library; see the file COPYING.LIB. 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
1998-09-14 16:38:49 +00:00
headers := printf.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 \
2000-07-29 07:25:43 +00:00
vfscanf \
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 \
1996-12-21 04:13:58 +00:00
lockfile
1996-09-13 03:21:39 +00:00
1998-09-15 12:10:51 +00:00
include ../Makeconfig
1999-08-23 17:55:49 +00:00
ifeq ($(stdio),libio)
routines += vfwprintf vfwscanf
endif
1998-09-14 16:38:49 +00:00
install-others := $(inst_includedir)/bits/stdio_lim.h
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 \
2000-10-28 05:51:07 +00:00
scanf12 tst-tmpnam tst-cookie tst-obprintf tst-sscanf tst-swprintf \
2001-02-15 19:57:43 +00:00
tst-fseek tst-fmemopen test-vfprintf tst-gets
test-srcs = tst-unbputc tst-printf
2000-07-03 21:40:46 +00:00
include ../Rules
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
1998-09-14 16:38:49 +00:00
$(inst_includedir)/bits/stdio_lim.h: $(common-objpfx)bits/stdio_lim.h
1998-09-16 17:54:34 +00:00
$(do-install)
1998-09-14 16:38:49 +00:00
1996-09-20 01:58:09 +00:00
ifeq ($(stdio),libio)
ifneq (,$(filter %REENTRANT, $(defines)))
CPPFLAGS += -D_IO_MTSAFE_IO
endif
endif