|
|
1.1 root 1: # Copyright (C) 1993 Free Software Foundation
2: #
3: # This file is part of the GNU IO Library. This library is free
4: # software; you can redistribute it and/or modify it under the
5: # terms of the GNU General Public License as published by the
6: # Free Software Foundation; either version 2, or (at your option)
7: # any later version.
8: #
9: # This library is distributed in the hope that it will be useful,
10: # but WITHOUT ANY WARRANTY; without even the implied warranty of
11: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: # GNU General Public License for more details.
13: #
14: # You should have received a copy of the GNU General Public License
15: # along with GNU CC; see the file COPYING. If not, write to
16: # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
17:
18: srcdir = .
19: VERSION = 0.63
20: #### package, host, target, and site dependent Makefile fragments come in here.
21: ##
22:
23: INSTALLDIR = $(libdir)
24:
25: IO_OBJECTS = filedoalloc.o floatconv.o genops.o fileops.o \
26: iovfprintf.o \
27: iovfscanf.o ioignore.o iopadn.o \
28: iofgetpos.o iofread.o iofscanf.o \
29: iofsetpos.o iogetline.o \
30: ioprintf.o ioseekoff.o ioseekpos.o \
31: outfloat.o stdfiles.o strops.o iofclose.o iopopen.o ioungetc.o
32:
33: # These emulate stdio functionality, but with a different name (_IO_ungetc
34: # instead of ungetc), and using _IO_FILE instead of FILE.
35: # They are not needed for C++ iostream, nor stdio, though some stdio
36: # files are build using the same source files (see stdio/configure.in).
37: # They are needed for iostdio.h.
38: # iofclose.o is not here, because it is needed for stdio (by pclose).
39: STDIO_WRAP_OBJECTS = iofdopen.o iofflush.o iofgets.o iofopen.o iofprintf.o iofputs.o iofwrite.o iogets.o ioperror.o ioputs.o ioscanf.o iosetbuffer.o iosetvbuf.o iosprintf.o iosscanf.o ioftell.o iovsprintf.o iovsscanf.o
40:
41: IOSTREAM_OBJECTS = builtinbuf.o filebuf.o fstream.o \
42: indstream.o isgetline.o isgetsb.o isscan.o ioextend.o iomanip.o iostream.o \
43: osform.o procbuf.o sbform.o sbgetline.o sbscan.o \
44: stdiostream.o stdstreams.o stream.o streambuf.o strstream.o \
45: PlotFile.o SFile.o parsestream.o pfstream.o editbuf.o
46:
47: # These files define _IO_read etc, which are just wrappers for read(2) etc.
48: # They need to be changed to use name-space-clean (e.g. __read) versions
49: # for each specific libc.
50: OSPRIM_OBJECTS = ioprims.o iostrerror.o cleanup.o
51:
52: LIBIOSTREAM_OBJECTS = $(IO_OBJECTS) $(IOSTREAM_OBJECTS) $(OSPRIM_OBJECTS)
53: LIBIO_OBJECTS = $(IO_OBJECTS) $(STDIO_WRAP_OBJECTS) $(OSPRIM_OBJECTS)
54:
55: libio.a: _G_config.h $(LIBIO_OBJECTS)
56: -rm -rf libio.a
57: $(AR) $(AR_FLAGS) libio.a $(LIBIO_OBJECTS)
58: $(RANLIB) libio.a
59:
60: libiostream.a: _G_config.h $(LIBIOSTREAM_OBJECTS)
61: -rm -rf libiostream.a
62: $(AR) $(AR_FLAGS) libiostream.a $(LIBIOSTREAM_OBJECTS)
63: $(RANLIB) libiostream.a
64:
65: test: test.o libio.a
66: $(CC) -o test test.o libio.a
67: tpipe: tpipe.o libio.a
68: $(CC) -o tpipe tpipe.o libio.a
69:
70: iostream.list: _G_config.h $(LIBIOSTREAM_OBJECTS)
71: @echo "$(LIBIOSTREAM_OBJECTS)"> iostream.list
72:
73: # The CC=$(CXX) is a kludge to force use of gcc.
74: _G_config.h: ${srcdir}/gen-params
75: rootme=`pwd`/ ; export rootme; \
76: CC="$(CXX) $(XTRAFLAGS)"; export CC; \
77: CXX="$(CXX) $(XTRAFLAGS) $(NOSTDINC)"; export CXX; \
78: CONFIG_NM="$(NM)"; export CONFIG_NM; \
79: $(SHELL) ${srcdir}/gen-params LIB_VERSION=$(VERSION) $(G_CONFIG_ARGS) >tmp-params.h
80: mv tmp-params.h _G_config.h
81:
82: USER_INCLUDES = *.h
83: install:
84: rm -f $(tooldir)/include/_G_config.h ; \
85: $(INSTALL_DATA) _G_config.h $(DSTROOT)/$(gxx_includedir)/_G_config.h || exit 1;
86: cd $(srcdir); \
87: for FILE in $(USER_INCLUDES) ; do \
88: rm -f $(DSTROOT)/$(gxx_includedir)/$$FILE ; \
89: $(INSTALL_DATA) $$FILE $(DSTROOT)/$(gxx_includedir)/$$FILE ; \
90: chmod a-x,a+r $(DSTROOT)/$(gxx_includedir)/$$FILE ; \
91: done
92: $(INSTALL_DATA) libiostream.a $(DSTROOT)/$(INSTALLDIR)/libiostream.a
93: $(RANLIB) $(DSTROOT)/$(INSTALLDIR)/libiostream.a
94: chmod a-x $(DSTROOT)$(INSTALLDIR)/libiostream.a
95:
96: installhdrs:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.