home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / gpplib22.zoo / iosrc / mincl < prev    next >
Encoding:
Text File  |  1993-11-30  |  2.0 KB  |  66 lines

  1. # common make include file
  2. #
  3.  
  4. %.o: %.cc
  5.     $(GXX) -c $(GXXFLAGS) $<
  6.  
  7. IO_OBJECTS = filedoalloc.o floatconv.o genops.o fileops.o \
  8.   iovfprintf.o \
  9.   iovfscanf.o ioignore.o iopadn.o \
  10.   iofgetpos.o iofread.o iofscanf.o \
  11.   iofsetpos.o iogetline.o \
  12.   ioprintf.o ioseekoff.o ioseekpos.o \
  13.   outfloat.o stdfiles.o strops.o iofclose.o ioungetc.o
  14. #  outfloat.o stdfiles.o strops.o iofclose.o iopopen.o ioungetc.o
  15.  
  16. # These emulate stdio functionality, but with a different name (_IO_ungetc
  17. # instead of ungetc), and using _IO_FILE instead of FILE.
  18. # They are not needed for C++ iostream, nor stdio, though some stdio
  19. # files are build using the same source files (see stdio/configure.in).
  20. # They are needed for iostdio.h.
  21. # iofclose.o is not here, because it is needed for stdio (by pclose).
  22. STDIO_WRAP_OBJECTS = \
  23.  iofdopen.o iofflush.o iofgets.o iofopen.o iofprintf.o iofputs.o iofwrite.o \
  24.  iogets.o ioperror.o ioputs.o ioscanf.o iosetbuffer.o iosetvbuf.o iosprintf.o \
  25.  iosscanf.o ioftell.o iovsprintf.o iovsscanf.o
  26.  
  27. IOSTREAM_OBJECTS = builtinbuf.o filebuf.o fstream.o \
  28.   indstream.o isgetline.o isgetsb.o isscan.o ioextend.o iomanip.o iostream.o \
  29.   osform.o procbuf.o sbform.o sbgetline.o sbscan.o \
  30.   stdiostream.o stdstreams.o stream.o streambuf.o strstream.o \
  31.   PlotFile.o SFile.o parsestream.o pfstream.o editbuf.o
  32.  
  33. # These files define _IO_read etc, which are just wrappers for read(2) etc.
  34. # They need to be changed to use name-space-clean (e.g. __read) versions
  35. # for each specific libc.
  36. OSPRIM_OBJECTS = ioprims.o iostrerror.o cleanup.o
  37.  
  38. LIBIOSTREAM_OBJECTS = $(IO_OBJECTS) $(IOSTREAM_OBJECTS) $(OSPRIM_OBJECTS)
  39. LIBIO_OBJECTS = $(IO_OBJECTS) $(STDIO_WRAP_OBJECTS) $(OSPRIM_OBJECTS)
  40.  
  41. OBJ = $(LIBIOSTREAM_OBJECTS)
  42.  
  43. all: $(OBJ)
  44.  
  45.  
  46. libio.a: $(LIBIO_OBJECTS)
  47.     rm -f $@
  48.     $(AR) rs $@ $^
  49.  
  50. libiostream.a: $(LIBIOSTREAM_OBJECTS)
  51.     rm -f $@
  52.     $(AR) rs $@ $^
  53.  
  54. clean :
  55.     rm -f $(OBJ)
  56.  
  57. realclean : clean
  58.     rm -f *.a report core
  59.  
  60. .PHONY: clean realclean all
  61.  
  62. # DO NOT DELETE THIS LINE -- g++dep uses it.
  63. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  64.  
  65. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  66.