1 ## Makefile for the libio subdirectory of the GNU C++ Standard library.
3 ## Copyright (C) 1999, 2000 Free Software Foundation, Inc.
5 ## This file is part of the libstdc++ version 3 distribution.
6 ## Process this file with automake to produce Makefile.in.
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)
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.
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,
24 AUTOMAKE_OPTIONS = 1.3 cygnus
26 # Passed down for cross compilers, canadian crosses.
27 TOPLEVEL_INCLUDES = -I$(includedir)
31 -I$(top_builddir)/libio -I$(top_srcdir)/libio
37 -I$(top_srcdir)/@cpu_include_dir@ \
38 -I$(top_srcdir)/@ctype_include_dir@
41 -nostdinc++ -I$(top_srcdir) \
42 $(LIBIO_INCLUDES) $(CONFIG_INCLUDES) \
45 noinst_LTLIBRARIES = libio.la
47 # These bits are all figured out from configure. Look in acinclude.m4
48 # or configure.in to see how they are set.
49 # NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
51 $(WERROR) @CPU_FLAGS@ @DEBUG_FLAGS@
53 # Need to manually set this option because AC_CXXFLAGS has to be at
54 # the end of the compile line so that -O2 can be overridden as the
55 # occasion call for it. (ie, --enable-debug)
57 -D_GNU_SOURCE $(AC_CFLAGS)
59 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) \
62 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \
63 $(AM_CPPFLAGS) \$(CPPFLAGS) $(CFLAGS) $(AM_CFLAGS)
65 LINK = $(LIBTOOL) --mode=link "$(CCLD)" $(CFLAGS) $(AM_CFLAGS) $(LDFLAGS) -o $@
69 libio.h libioP.h iolibio.h
73 filedoalloc.c genops.c fileops.c stdfiles.c c_codecvt.c
74 # filedoalloc.c genops.c fileops.c stdfiles.c cleanup.c c_codecvt.c
79 if GLIBCPP_NEED_WLIBIO
81 wfiledoalloc.c wfileops.c wgenops.c
86 if GLIBCPP_NEED_XTRA_LIBIO
88 iofwide.c iofclose.c iofopen.c stdio.c
94 EXTRA_DIST = iostreamP.h
96 libio_la_LIBADD = $(LIBIO_SRCS) $(LIBIO_WSRCS) $(LIBIO_XTRASRCS)
97 libio_la_DEPENDENCIES = $(libio_la_LIBADD)
98 libio_la_SOURCES = $(LIBIO_SRCS) $(LIBIO_WSRCS) $(LIBIO_XTRASRCS)