home *** CD-ROM | disk | FTP | other *** search
- # common make include file
- #
-
- %.o: %.cc
- $(GXX) -c $(GXXFLAGS) $<
-
- IO_OBJECTS = filedoalloc.o floatconv.o genops.o fileops.o \
- iovfprintf.o \
- iovfscanf.o ioignore.o iopadn.o \
- iofgetpos.o iofread.o iofscanf.o \
- iofsetpos.o iogetline.o \
- ioprintf.o ioseekoff.o ioseekpos.o \
- outfloat.o stdfiles.o strops.o iofclose.o ioungetc.o
- # outfloat.o stdfiles.o strops.o iofclose.o iopopen.o ioungetc.o
-
- # These emulate stdio functionality, but with a different name (_IO_ungetc
- # instead of ungetc), and using _IO_FILE instead of FILE.
- # They are not needed for C++ iostream, nor stdio, though some stdio
- # files are build using the same source files (see stdio/configure.in).
- # They are needed for iostdio.h.
- # iofclose.o is not here, because it is needed for stdio (by pclose).
- 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
-
- IOSTREAM_OBJECTS = builtinbuf.o filebuf.o fstream.o \
- indstream.o isgetline.o isgetsb.o isscan.o ioextend.o iomanip.o iostream.o \
- osform.o procbuf.o sbform.o sbgetline.o sbscan.o \
- stdiostream.o stdstreams.o stream.o streambuf.o strstream.o \
- PlotFile.o SFile.o parsestream.o pfstream.o editbuf.o
-
- # These files define _IO_read etc, which are just wrappers for read(2) etc.
- # They need to be changed to use name-space-clean (e.g. __read) versions
- # for each specific libc.
- OSPRIM_OBJECTS = ioprims.o iostrerror.o cleanup.o
-
- LIBIOSTREAM_OBJECTS = $(IO_OBJECTS) $(IOSTREAM_OBJECTS) $(OSPRIM_OBJECTS)
- LIBIO_OBJECTS = $(IO_OBJECTS) $(STDIO_WRAP_OBJECTS) $(OSPRIM_OBJECTS)
-
- OBJ = $(LIBIOSTREAM_OBJECTS)
-
- all: $(OBJ)
-
-
- libio.a: $(LIBIO_OBJECTS)
- rm -f $@
- $(AR) rs $@ $^
-
- libiostream.a: $(LIBIOSTREAM_OBJECTS)
- rm -f $@
- $(AR) rs $@ $^
-
- clean :
- rm -f $(OBJ)
-
- realclean : clean
- rm -f *.a report core
-
- .PHONY: clean realclean all
-
- # DO NOT DELETE THIS LINE -- g++dep uses it.
- # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
- # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
-