OSDN Git Service

903ca8d8ae60e180dd0d36214cd1fd9a30010fcc
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / libio / Makefile.am
1 ## Makefile for the libio subdirectory of the GNU C++ Standard library.
2 ##
3 ## Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
4 ##
5 ## This file is part of the libstdc++ version 3 distribution.
6 ## Process this file with automake to produce Makefile.in.
7
8 ## This file is part of the GNU ISO C++ Library.  This library is free
9 ## software; you can redistribute it and/or modify it under the
10 ## terms of the GNU General Public License as published by the
11 ## Free Software Foundation; either version 2, or (at your option)
12 ## any later version.
13
14 ## This library is distributed in the hope that it will be useful,
15 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 ## GNU General Public License for more details.
18
19 ## You should have received a copy of the GNU General Public License along
20 ## with this library; see the file COPYING.  If not, write to the Free
21 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22 ## USA.
23
24 AUTOMAKE_OPTIONS = 1.3 cygnus
25
26 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
27
28 if GLIBCPP_BUILD_LIBIO
29 noinst_LTLIBRARIES = libio.la
30 else
31 noinst_LTLIBRARIES =
32 endif
33
34 # Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
35 GLIBCPP_INCLUDES = @GLIBCPP_INCLUDES@
36 TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
37 LIBIO_INCLUDES = @LIBIO_INCLUDES@
38
39 INCLUDES = \
40         -nostdinc++ \
41         $(GLIBCPP_INCLUDES) $(LIBIO_INCLUDES) $(TOPLEVEL_INCLUDES)      
42
43 libio_headers = \
44         libio.h libioP.h iolibio.h
45
46 if GLIBCPP_NEED_LIBIO
47 LIBIO_SRCS = \
48         filedoalloc.c genops.c fileops.c stdfiles.c \
49         iofclose.c iofopen.c 
50 else
51 LIBIO_SRCS =
52 endif
53
54 if GLIBCPP_NEED_WLIBIO
55 LIBIO_WSRCS = \
56         wfiledoalloc.c wfileops.c wgenops.c iofwide.c
57 else
58 LIBIO_WSRCS =
59 endif
60
61
62 EXTRA_DIST = iostreamP.h
63
64 libio_la_SOURCES = $(LIBIO_SRCS) $(LIBIO_WSRCS)
65
66
67 AM_CFLAGS = -D_GNU_SOURCE