]> gcc.gnu.org Git - gcc.git/blob - libstdc++-v3/libio/Makefile.am
Benjamin Kosnik <bkoz@gnu.org>
[gcc.git] / libstdc++-v3 / libio / Makefile.am
1 ## Makefile for the libio subdirectory of the GNU C++ Standard library.
2 ##
3 ## Copyright (C) 1999, 2000 Cygnus Solutions
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 # Passed down for cross compilers, canadian crosses.
27 TOPLEVEL_INCLUDES = -I$(includedir)
28
29 if GLIBCPP_NEED_LIBIO
30 LIBIO_INCLUDES = \
31 -I$(top_builddir)/libio -I$(top_srcdir)/libio
32 else
33 LIBIO_INCLUDES =
34 endif
35
36 CONFIG_INCLUDES = \
37 -I$(top_srcdir)/@cpu_include_dir@ \
38 -I$(top_srcdir)/@ctype_include_dir@
39
40 INCLUDES = \
41 -nostdinc++ -I$(top_srcdir) \
42 $(LIBIO_INCLUDES) $(CONFIG_INCLUDES) \
43 $(TOPLEVEL_INCLUDES)
44
45 noinst_LTLIBRARIES = libio.la
46
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.
50 AC_CFLAGS = \
51 $(WERROR) @CPU_FLAGS@ @DEBUG_FLAGS@
52
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)
56 AM_CFLAGS = \
57 -D_GNU_SOURCE $(AC_CFLAGS)
58
59 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) \
60 $(AM_CFLAGS)
61
62 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \
63 $(AM_CPPFLAGS) \$(CPPFLAGS) $(CFLAGS) $(AM_CFLAGS)
64
65 LINK = $(LIBTOOL) --mode=link "$(CCLD)" $(CFLAGS) $(AM_CFLAGS) $(LDFLAGS) -o $@
66
67 #includes =
68
69 libio_headers = \
70 libio.h libioP.h iolibio.h
71
72 if GLIBCPP_NEED_LIBIO
73 LIBIO_SRCS = \
74 filedoalloc.c genops.c fileops.c stdfiles.c cleanup.c c_codecvt.c
75 else
76 LIBIO_SRCS =
77 endif
78
79 if GLIBCPP_NEED_WLIBIO
80 LIBIO_WSRCS = \
81 wfiledoalloc.c wfileops.c wgenops.c
82 else
83 LIBIO_WSRCS =
84 endif
85
86 if GLIBCPP_NEED_XTRA_LIBIO
87 LIBIO_XTRASRCS = \
88 iofwide.c iofclose.c iofopen.c stdio.c
89 else
90 LIBIO_XTRASRCS =
91 endif
92
93
94 EXTRA_DIST = iostreamP.h
95
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)
99
This page took 0.039445 seconds and 5 git commands to generate.