2000-10-13 Michael Fedrowitz <michael@fedrowitz.de>
[glibc.git] / libio / Makefile
blob4bbdc3128138ec6cf50ecf88c659da01234de33a
1 # Copyright (C) 1995,96,97,98,99,2000 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Library General Public License as
6 # published by the Free Software Foundation; either version 2 of the
7 # License, or (at your option) any later version.
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
12 # Library General Public License for more details.
14 # You should have received a copy of the GNU Library General Public
15 # License along with the GNU C Library; see the file COPYING.LIB. If not,
16 # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 # Boston, MA 02111-1307, USA.
20 # Specific makefile for libio.
22 subdir := libio
24 headers := stdio.h libio.h _G_config.h bits/stdio.h bits/stdio-lock.h \
25 stdio_ext.h
27 routines := \
28 filedoalloc iofclose iofdopen iofflush iofgetpos iofgets iofopen \
29 iofopncook iofputs iofread iofsetpos ioftell wfiledoalloc \
30 iofwrite iogetdelim iogetline iogets iopadn iopopen ioputs \
31 ioseekoff ioseekpos iosetbuffer iosetvbuf iosprintf ioungetc \
32 iovsprintf iovsscanf \
33 iofgetpos64 iofopen64 iofsetpos64 \
34 fputwc fputwc_u getwc getwc_u getwchar getwchar_u iofgetws iofgetws_u \
35 iofputws iofputws_u iogetwline iowpadn ioungetwc putwc putwc_u \
36 putwchar putwchar_u putchar putchar_u fwprintf swprintf vwprintf \
37 wprintf wscanf fwscanf vwscanf vswprintf iovswscanf swscanf wgenops \
38 wstrops wfileops iofwide fwide \
40 clearerr feof ferror fileno fputc freopen fseek getc getchar \
41 memstream pclose putc putchar rewind setbuf setlinebuf vasprintf \
42 iovdprintf vscanf vsnprintf obprintf fcloseall fseeko ftello \
43 freopen64 fseeko64 ftello64 \
45 __fbufsize __freading __fwriting __freadable __fwritable __flbf \
46 __fpurge __fpending __fsetlocking \
48 libc_fatal fmemopen
50 tests = tst_swprintf tst_wprintf tst_swscanf tst_wscanf tst_getwc tst_putwc \
51 tst_wprintf2 tst-widetext test-fmemopen
53 all: # Make this the default target; it will be defined in Rules.
55 include ../Makeconfig
57 ifeq ($(versioning),yes)
58 routines += oldiofopen oldiofdopen oldiofclose oldiopopen oldpclose \
59 oldtmpfile oldiofgetpos oldiofgetpos64 oldiofsetpos \
60 oldiofsetpos64
61 endif
63 ifneq (,$(filter %REENTRANT, $(defines)))
64 routines += clearerr_u feof_u ferror_u fputc_u getc_u getchar_u \
65 iofflush_u putc_u putchar_u peekc iofread_u iofwrite_u iofgets_u \
66 iofputs_u
68 CPPFLAGS += -D_IO_MTSAFE_IO
69 endif
71 # Support for exception handling.
72 CFLAGS-genops.c = $(exceptions)
73 CFLAGS-wgenops.c = $(exceptions)
74 CFLAGS-fileops.c = $(exceptions)
75 CFLAGS-wfileops.c = $(exceptions)
76 # XXX Do we need filedoalloc and wfiledoalloc? Others?
78 CFLAGS-tst_putwc.c = -DOBJPFX=\"$(objpfx)\"
80 tst_wprintf2-ARGS = "Some Text"
82 tst-widetext-ENV = LOCPATH=$(common-objpfx)localedata LANGUAGE=C
84 aux := fileops genops stdfiles stdio strops
86 ifeq ($(versioning),yes)
87 aux += oldfileops oldstdfiles
88 endif
90 shared-only-routines = oldiofopen oldiofdopen oldiofclose oldfileops \
91 oldstdfiles oldiopopen oldpclose oldtmpfile \
92 oldiofgetpos oldiofgetpos64 oldiofsetpos \
93 oldiofsetpos64
95 distribute := iolibio.h libioP.h strfile.h Banner
97 include ../Rules