OSDN Git Service

2001-04-20 Benjamin Kosnik <bkoz@redhat.com>
[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_INCLUDE_DIR = @GLIBCPP_INCLUDE_DIR@
36 C_INCLUDE_DIR = @C_INCLUDE_DIR@
37 TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
38 LIBMATH_INCLUDES = @LIBMATH_INCLUDES@
39 LIBSUPCXX_INCLUDES = @LIBSUPCXX_INCLUDES@
40 LIBIO_INCLUDES = @LIBIO_INCLUDES@
41 CSHADOW_INCLUDES = @CSHADOW_INCLUDES@
42
43 INCLUDES = \
44         -nostdinc++ \
45         -I$(top_builddir)/include -I$(GLIBCPP_INCLUDE_DIR) \
46         $(LIBIO_INCLUDES) $(TOPLEVEL_INCLUDES)  
47
48 libio_headers = \
49         libio.h libioP.h iolibio.h
50
51 if GLIBCPP_NEED_LIBIO
52 LIBIO_SRCS = \
53         filedoalloc.c genops.c fileops.c stdfiles.c c_codecvt.c \
54         iofclose.c iofopen.c 
55 else
56 LIBIO_SRCS =
57 endif
58
59 if GLIBCPP_NEED_WLIBIO
60 LIBIO_WSRCS = \
61         wfiledoalloc.c wfileops.c wgenops.c iofwide.c
62 else
63 LIBIO_WSRCS =
64 endif
65
66
67 EXTRA_DIST = iostreamP.h
68
69 libio_la_SOURCES = $(LIBIO_SRCS) $(LIBIO_WSRCS)
70
71
72 AM_CFLAGS = -D_GNU_SOURCE @DEBUG_FLAGS@