home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / GCC / GERLIB_DEV08B.LHA / gerlib / libg++ / iostream / Makefile.in < prev    next >
Encoding:
Makefile  |  1993-12-12  |  2.5 KB  |  80 lines

  1. VERSION=0.92
  2. SUBDIRS = stdio test
  3.  
  4. srcdir = .
  5.  
  6. #### package, host, target, and site dependent Makefile fragments come in here.
  7. ##
  8.  
  9. DIST_NAME=iostream-${VERSION}
  10. DIST_FILE=$(DIST_NAME).tar.Z
  11. ${DIST_FILE}: dist
  12. .PHONY: dist
  13. dist: FORCE
  14.     -mkdir $(DIST_NAME)
  15.     cd $(DIST_NAME); \
  16.       ln -s $(srcdir)/../Make.defs .; \
  17.       ln -s $(srcdir)/../g++-include/_G_config.h .; \
  18.       ln -s $(srcdir)/* \
  19.         $(srcdir)/../../configure $(srcdir)/../../config.sub .; \
  20.       rm -rf test stdio *~ CVS configure.in; \
  21.       sed -e 's|\.\./||' <$(srcdir)/configure.in > configure.in; \
  22.       mkdir test stdio
  23.     cd $(DIST_NAME)/stdio; \
  24.       ln -s $(srcdir)/stdio/* .; \
  25.       rm -rf *~ CVS configure.in; \
  26.       sed -e 's|\.\./||' <$(srcdir)/stdio/configure.in > configure.in
  27.     cd $(DIST_NAME)/test; \
  28.       ln -s $(srcdir)/test/* .; \
  29.       rm -rf *~ CVS configure.in; \
  30.       sed -e 's|\.\./||' <$(srcdir)/test/configure.in > configure.in
  31.     tar -c -h -f - $(DIST_NAME) | compress -c >$(DIST_NAME).tar.Z
  32.     rm -rf $(DIST_NAME)
  33.  
  34. IOSTREAM_OBS= streambuf.o stdstrbufs.o iostream.o stdstreams.o strstream.o \
  35.   indstream.o PlotFile.o SFile.o fstream.o parsestream.o stream.o makebuf.o \
  36.   editbuf.o filebuf.o sgetline.o igetline.o igetsb.o procbuf.o \
  37.   sbufvform.o sbufvscan.o stdiostream.o floatconv.o outfloat.o iomanip.o
  38.  
  39.  
  40. # The following include files are merely to provide partial
  41. # compatibilty with the old stream library from libg++.
  42.  
  43. COMPAT_INCLUDES = istream.h ostream.h stream.h
  44.  
  45. # The following include files are publicly visible, and
  46. # should be installed where user programs can find them.
  47.  
  48. USER_INCLUDES = editbuf.h fstream.h iomanip.h iostream.h indstream.h \
  49.   parsestream.h streambuf.h strstream.h PlotFile.h SFile.h procbuf.h \
  50.   stdiostream.h $(COMPAT_INCLUDES)
  51.  
  52. # The following include files are private to the implementation.
  53.  
  54. INTERNAL_INCLUDES = ioprivate.h floatio.h
  55.  
  56. DEPEND_SOURCES = $(srcdir)/*.C
  57. # ../libg++.a depends on the stamp file.
  58. stamp: $(IOSTREAM_OBS)
  59.     @touch stamp
  60.  
  61. $(TARGETLIB): stamp
  62.     -rm -f $(TARGETLIB)
  63.     $(AR) $(AR_FLAGS) $(TARGETLIB) $(IOSTREAM_OBS)
  64.     $(RANLIB) $(TARGETLIB)
  65.  
  66. .PHONY: add-to-targetlib
  67. # Invoked from other directories, overriding $(TARGETLIB).
  68. add-to-targetlib:
  69.     $(AR) $(AR_FLAGS) $(TARGETLIB) $(IOSTREAM_OBS)
  70.  
  71. .PHONY: install-include-files
  72. install-include-files:
  73.     [ -d $(gxx_includedir) ] || mkdir $(gxx_includedir)
  74.     cd $(srcdir); \
  75.     for FILE in $(USER_INCLUDES) ; do \
  76.         rm -f $(gxx_includedir)/$$FILE ; \
  77.         $(INSTALL_DATA) $$FILE $(gxx_includedir)/$$FILE ; \
  78.         chmod a-x $(gxx_includedir)/$$FILE ; \
  79.     done
  80.