|
Packit Service |
82fcde |
# Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
|
Packit Service |
82fcde |
# This file is part of the GNU C Library.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
82fcde |
# modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
# License as published by the Free Software Foundation; either
|
|
Packit Service |
82fcde |
# version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
82fcde |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
82fcde |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
82fcde |
# Lesser General Public License for more details.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
# License along with the GNU C Library; if not, see
|
|
Packit Service |
82fcde |
# <http://www.gnu.org/licenses/>.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#
|
|
Packit Service |
82fcde |
# Specific makefile for stdio-common.
|
|
Packit Service |
82fcde |
#
|
|
Packit Service |
82fcde |
subdir := stdio-common
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
include ../Makeconfig
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
headers := stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
routines := \
|
|
Packit Service |
82fcde |
ctermid cuserid \
|
|
Packit Service |
82fcde |
_itoa _itowa itoa-digits itoa-udigits itowa-digits \
|
|
Packit Service |
82fcde |
vfprintf vprintf printf_fp reg-printf printf-prs printf_fphex \
|
|
Packit Service |
82fcde |
reg-modifier reg-type \
|
|
Packit Service |
82fcde |
printf_size fprintf printf snprintf sprintf asprintf dprintf \
|
|
Packit Service |
82fcde |
vfwprintf vfscanf vfwscanf \
|
|
Packit Service |
82fcde |
fscanf scanf sscanf \
|
|
Packit Service |
82fcde |
perror psignal \
|
|
Packit Service |
82fcde |
tmpfile tmpfile64 tmpnam tmpnam_r tempnam tempname \
|
|
Packit Service |
82fcde |
getline getw putw \
|
|
Packit Service |
82fcde |
remove rename renameat renameat2 \
|
|
Packit Service |
82fcde |
flockfile ftrylockfile funlockfile \
|
|
Packit Service |
82fcde |
isoc99_scanf isoc99_vscanf isoc99_fscanf isoc99_vfscanf isoc99_sscanf \
|
|
Packit Service |
82fcde |
isoc99_vsscanf \
|
|
Packit Service |
82fcde |
psiginfo gentempfd
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
aux := errlist siglist printf-parsemb printf-parsewc fxprintf
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
tests := tstscanf test_rdwr test-popen tstgetln test-fseek \
|
|
Packit Service |
82fcde |
temptest tst-fileno test-fwrite tst-ungetc tst-ferror \
|
|
Packit Service |
82fcde |
xbug errnobug \
|
|
Packit Service |
82fcde |
bug1 bug2 bug3 bug4 bug5 bug6 bug7 bug8 bug9 bug10 bug11 bug12 bug13 \
|
|
Packit Service |
82fcde |
tfformat tiformat tllformat tstdiomisc tst-printfsz tst-wc-printf \
|
|
Packit Service |
82fcde |
scanf1 scanf2 scanf3 scanf4 scanf5 scanf7 scanf8 scanf9 scanf10 \
|
|
Packit Service |
82fcde |
scanf11 scanf12 tst-tmpnam tst-cookie tst-obprintf tst-sscanf \
|
|
Packit Service |
82fcde |
tst-swprintf tst-fseek tst-fmemopen test-vfprintf tst-gets \
|
|
Packit Service |
82fcde |
tst-perror tst-sprintf tst-rndseek tst-fdopen tst-fphex bug14 \
|
|
Packit Service |
82fcde |
tst-popen tst-unlockedio tst-fmemopen2 tst-put-error tst-fgets \
|
|
Packit Service |
82fcde |
tst-fwrite bug16 bug17 tst-swscanf tst-sprintf2 bug18 bug18a \
|
|
Packit Service |
82fcde |
bug19 bug19a tst-popen2 scanf13 scanf14 scanf15 bug20 bug21 bug22 \
|
|
Packit Service |
82fcde |
scanf16 scanf17 tst-setvbuf1 tst-grouping bug23 bug24 \
|
|
Packit Service |
82fcde |
bug-vfprintf-nargs tst-long-dbl-fphex tst-fphex-wide tst-sprintf3 \
|
|
Packit Service |
82fcde |
bug25 tst-printf-round bug23-2 bug23-3 bug23-4 bug26 tst-fmemopen3 \
|
|
Packit Service |
82fcde |
tst-printf-bz18872 tst-vfprintf-width-prec tst-fmemopen4 \
|
|
Packit Service |
82fcde |
tst-vfprintf-user-type \
|
|
Packit Service |
82fcde |
tst-vfprintf-mbs-prec \
|
|
Packit Service |
82fcde |
tst-scanf-round \
|
|
Packit Service |
82fcde |
tst-renameat2 \
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
test-srcs = tst-unbputc tst-printf tst-printfsz-islongdouble
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ifeq ($(run-built-tests),yes)
|
|
Packit Service |
82fcde |
tests-special += $(objpfx)tst-unbputc.out $(objpfx)tst-printf.out \
|
|
Packit Service |
82fcde |
$(objpfx)tst-printf-bz18872-mem.out \
|
|
Packit Service |
82fcde |
$(objpfx)tst-setvbuf1-cmp.out \
|
|
Packit Service |
82fcde |
$(objpfx)tst-vfprintf-width-prec-mem.out \
|
|
Packit Service |
82fcde |
$(objpfx)tst-printfsz-islongdouble.out
|
|
Packit Service |
82fcde |
generated += tst-printf-bz18872.c tst-printf-bz18872.mtrace \
|
|
Packit Service |
82fcde |
tst-printf-bz18872-mem.out \
|
|
Packit Service |
82fcde |
tst-vfprintf-width-prec.mtrace tst-vfprintf-width-prec-mem.out
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
include ../Rules
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ifeq ($(run-built-tests),yes)
|
|
Packit Service |
82fcde |
LOCALES := de_DE.ISO-8859-1 de_DE.UTF-8 en_US.ISO-8859-1 ja_JP.EUC-JP
|
|
Packit Service |
82fcde |
include ../gen-locales.mk
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)bug14.out: $(gen-locales)
|
|
Packit Service |
82fcde |
$(objpfx)scanf13.out: $(gen-locales)
|
|
Packit Service |
82fcde |
$(objpfx)test-vfprintf.out: $(gen-locales)
|
|
Packit Service |
82fcde |
$(objpfx)tst-grouping.out: $(gen-locales)
|
|
Packit Service |
82fcde |
$(objpfx)tst-sprintf.out: $(gen-locales)
|
|
Packit Service |
82fcde |
$(objpfx)tst-sscanf.out: $(gen-locales)
|
|
Packit Service |
82fcde |
$(objpfx)tst-swprintf.out: $(gen-locales)
|
|
Packit Service |
82fcde |
$(objpfx)tst-vfprintf-mbs-prec.out: $(gen-locales)
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
tst-printf-bz18872-ENV = MALLOC_TRACE=$(objpfx)tst-printf-bz18872.mtrace
|
|
Packit Service |
82fcde |
tst-vfprintf-width-prec-ENV = \
|
|
Packit Service |
82fcde |
MALLOC_TRACE=$(objpfx)tst-vfprintf-width-prec.mtrace
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-unbputc.out: tst-unbputc.sh $(objpfx)tst-unbputc
|
|
Packit Service |
82fcde |
$(SHELL) $< $(common-objpfx) '$(test-program-prefix)' > $@; \
|
|
Packit Service |
82fcde |
$(evaluate-test)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-printf.out: tst-printf.sh $(objpfx)tst-printf
|
|
Packit Service |
82fcde |
$(SHELL) $< $(common-objpfx) '$(test-program-prefix)' > $@; \
|
|
Packit Service |
82fcde |
$(evaluate-test)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-printfsz-islongdouble.out: \
|
|
Packit Service |
82fcde |
tst-printfsz-islongdouble.sh $(objpfx)tst-printfsz-islongdouble
|
|
Packit Service |
82fcde |
$(SHELL) $^ '$(test-program-prefix)' $@; \
|
|
Packit Service |
82fcde |
$(evaluate-test)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# We generate this source because it requires a printf invocation with
|
|
Packit Service |
82fcde |
# 10K arguments.
|
|
Packit Service |
82fcde |
$(objpfx)tst-printf-bz18872.c: tst-printf-bz18872.sh
|
|
Packit Service |
82fcde |
rm -f $@ && $(BASH) $^ > $@.new && mv $@.new $@
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-%-mem.out: $(objpfx)tst-%.out
|
|
Packit Service |
82fcde |
$(common-objpfx)malloc/mtrace $(objpfx)tst-$*.mtrace > $@; \
|
|
Packit Service |
82fcde |
$(evaluate-test)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
CFLAGS-vfprintf.c += -Wno-uninitialized
|
|
Packit Service |
82fcde |
CFLAGS-vfwprintf.c += -Wno-uninitialized
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
CFLAGS-tmpfile.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-tmpfile64.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-tempname.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-psignal.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-vprintf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-cuserid.c += -fexceptions
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
CFLAGS-vfprintf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-fprintf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-printf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-vfwprintf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-vfscanf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-vfwscanf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-fscanf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-scanf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-isoc99_vfscanf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-isoc99_vscanf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-isoc99_fscanf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-isoc99_scanf.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-errlist.c += $(fno-unit-at-a-time)
|
|
Packit Service |
82fcde |
CFLAGS-siglist.c += $(fno-unit-at-a-time)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# The following is a hack since we must compile scanf1{5,7}.c without any
|
|
Packit Service |
82fcde |
# GNU extension. The latter are needed, though, when internal headers
|
|
Packit Service |
82fcde |
# are used. So made sure we see the installed headers first.
|
|
Packit Service |
82fcde |
CFLAGS-scanf15.c += -I../libio -I../stdlib -I../wcsmbs -I../time -I../string \
|
|
Packit Service |
82fcde |
-I../wctype
|
|
Packit Service |
82fcde |
CFLAGS-scanf17.c += -I../libio -I../stdlib -I../wcsmbs -I../time -I../string \
|
|
Packit Service |
82fcde |
-I../wctype
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
CFLAGS-bug3.c += -DOBJPFX=\"$(objpfx)\"
|
|
Packit Service |
82fcde |
CFLAGS-bug4.c += -DOBJPFX=\"$(objpfx)\"
|
|
Packit Service |
82fcde |
CFLAGS-bug5.c += -DOBJPFX=\"$(objpfx)\"
|
|
Packit Service |
82fcde |
CFLAGS-test-fseek.c += -DOBJPFX=\"$(objpfx)\"
|
|
Packit Service |
82fcde |
CFLAGS-test-popen.c += -DOBJPFX=\"$(objpfx)\"
|
|
Packit Service |
82fcde |
CFLAGS-test_rdwr.c += -DOBJPFX=\"$(objpfx)\"
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# tst-gets.c tests a deprecated function.
|
|
Packit Service |
82fcde |
CFLAGS-tst-gets.c += -Wno-deprecated-declarations
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
CPPFLAGS += $(libio-mtsafe)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-setvbuf1.out: /dev/null $(objpfx)tst-setvbuf1
|
|
Packit Service |
82fcde |
$(test-program-cmd) > $@ 2>&1; \
|
|
Packit Service |
82fcde |
$(evaluate-test)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-setvbuf1-cmp.out: tst-setvbuf1.expect $(objpfx)tst-setvbuf1.out
|
|
Packit Service |
82fcde |
cmp $^ > $@; \
|
|
Packit Service |
82fcde |
$(evaluate-test)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-printf-round: $(libm)
|
|
Packit Service |
82fcde |
$(objpfx)tst-scanf-round: $(libm)
|