]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/libio/Makefile.am
[multiple changes]
[thirdparty/gcc.git] / libstdc++-v3 / libio / Makefile.am
1 ## Makefile for the math 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 noinst_LTLIBRARIES = libio.la
27
28 if GLIBCPP_NEED_LIBIO_CONFIG_H
29 LIBIO_CONFIG_H = _G_config.h
30 else
31 LIBIO_CONFIG_H =
32 endif
33
34 includes =
35
36 libio_headers = \
37 libio.h libioP.h iolibio.h
38
39 if GLIBCPP_NEED_LIBIO
40 LIBIO_SRCS = \
41 filedoalloc.c genops.c fileops.c stdfiles.c cleanup.c
42 else
43 LIBIO_SRCS =
44 endif
45
46
47 EXTRA_DIST = iostreamP.h
48
49 libio_la_LIBADD = $(LIBIO_SRCS)
50 libio_la_DEPENDENCIES = $(libio_la_LIBADD)
51 libio_la_SOURCES = $(LIBIO_SRCS)
52
53 # Specifying that *.o depend on this one header
54 $(libio_la_OBJECTS): $(LIBIO_CONFIG_H)
55
56 LINK = $(LIBTOOL) --mode=link "$(CCLD)" $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
57
58 # Generate this file.
59 _G_config.h: $(srcdir)/gen-params
60 rootme=`pwd`/ ; export rootme; \
61 CC="$(CC) $(CINCLUDES)"; export CC; \
62 CXX="$(CXX) $(CXXINCLUDES) $(NOSTDINC) $(CXXFLAGS)"; export CXX; \
63 CONFIG_NM="$(NM)"; export CONFIG_NM; \
64 $(SHELL) $(srcdir)/gen-params LIB_VERSION=$(VERSION) $(G_CONFIG_ARGS) >tmp-params.h
65 mv tmp-params.h _G_config.h
66
67
68
69