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
24AUTOMAKE_OPTIONS = 1.3 cygnus
25
26mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
27
28if GLIBCPP_BUILD_LIBIO
29noinst_LTLIBRARIES = libio.la
30else
31noinst_LTLIBRARIES =
32endif
33
34# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
35GLIBCPP_INCLUDES = @GLIBCPP_INCLUDES@
36TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
37LIBIO_INCLUDES = @LIBIO_INCLUDES@
38
39INCLUDES = \
40	-nostdinc++ \
41	$(GLIBCPP_INCLUDES) $(LIBIO_INCLUDES) $(TOPLEVEL_INCLUDES)
42
43libio_headers = \
44        libio.h libioP.h iolibio.h
45
46if GLIBCPP_NEED_LIBIO
47LIBIO_SRCS = \
48	filedoalloc.c genops.c fileops.c stdfiles.c c_codecvt.c \
49	iofclose.c iofopen.c
50else
51LIBIO_SRCS =
52endif
53
54if GLIBCPP_NEED_WLIBIO
55LIBIO_WSRCS = \
56	wfiledoalloc.c wfileops.c wgenops.c iofwide.c
57else
58LIBIO_WSRCS =
59endif
60
61
62EXTRA_DIST = iostreamP.h
63
64libio_la_SOURCES = $(LIBIO_SRCS) $(LIBIO_WSRCS)
65
66
67AM_CFLAGS = -D_GNU_SOURCE
68