home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / useful / dist / gnu / libg++ / build / libio / makefile < prev   
Encoding:
Makefile  |  1993-12-19  |  9.2 KB  |  283 lines

  1. # This file was generated automatically by configure.  Do not edit.
  2. VPATH = /Scratch/libg++-2.5.2/libg++-2.5.2-amiga/libio
  3. links = 
  4. host_alias = amigados
  5. host_cpu = m68k
  6. host_vendor = cbm
  7. host_os = amigados
  8. host_canonical = m68k-cbm-amigados
  9. target_alias = amigados
  10. target_cpu = m68k
  11. target_vendor = cbm
  12. target_os = amigados
  13. target_canonical = m68k-cbm-amigados
  14. package_makefile_frag = Make.pack
  15. # Copyright (C) 1993 Free Software Foundation
  16. # This file is part of the GNU IO Library.  This library is free
  17. # software; you can redistribute it and/or modify it under the
  18. # terms of the GNU General Public License as published by the
  19. # Free Software Foundation; either version 2, or (at your option)
  20. # any later version.
  21. # This library is distributed in the hope that it will be useful,
  22. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  24. # GNU General Public License for more details.
  25. # You should have received a copy of the GNU General Public License
  26. # along with GNU CC; see the file COPYING.  If not, write to
  27. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  28.  
  29. srcdir = /Scratch/libg++-2.5.2/libg++-2.5.2-amiga/libio
  30. VERSION = 0.62
  31. #### package, host, target, and site dependent Makefile fragments come in here.
  32. # Start of package fragment generated by /Scratch/libg++-2.5.2/libg++-2.5.2-amiga/libio/config.shared.
  33. # TOPDIR=$${rootme}../ invsubdir= subdir=
  34. srcdir = /Scratch/libg++-2.5.2/libg++-2.5.2-amiga/libio
  35. SUBDIRS = tests dbz stdio
  36. prefix = /usr
  37. exec_prefix = $(prefix)
  38. bindir = $(exec_prefix)/bin
  39. libdir = $(exec_prefix)/lib
  40. datadir = $(prefix)/lib
  41. mandir = $(prefix)/man
  42. man1dir = $(mandir)/man1
  43. man2dir = $(mandir)/man2
  44. man3dir = $(mandir)/man3
  45. man4dir = $(mandir)/man4
  46. man5dir = $(mandir)/man5
  47. man6dir = $(mandir)/man6
  48. man7dir = $(mandir)/man7
  49. man8dir = $(mandir)/man8
  50. man9dir = $(mandir)/man9
  51. infodir = $(prefix)/info
  52. includedir = $(prefix)/include
  53. gxx_includedir = $(libdir)/g++-include
  54. docdir = $(datadir)/doc
  55.  
  56. SHELL = /bin/sh
  57.  
  58. INSTALL = $(srcdir)/../install.sh -c
  59. INSTALL_PROGRAM = $(INSTALL)
  60. INSTALL_DATA = $(INSTALL)
  61.  
  62. AR = `if [ -f $${rootme}../binutils/ar ] ; \
  63.     then echo $${rootme}../binutils/ar ; \
  64.     else echo ar ; fi`
  65. AR_FLAGS = rc
  66. RANLIB = `if [ -f $${rootme}../binutils/ranlib ] ; \
  67.     then echo $${rootme}../binutils/ranlib ; \
  68.     else echo ranlib ; fi`
  69. NM = `if [ -f $${rootme}../binutils/nm ] ; \
  70.     then echo $${rootme}../binutils/nm ; \
  71.     else echo nm ; fi`
  72.  
  73. MAKEINFO = `if [ -f $${rootme}../texinfo/C/makeinfo ] ; \
  74.     then echo $${rootme}../texinfo/C/makeinfo ; \
  75.     else echo makeinfo ; fi`
  76. TEXIDIR=${srcdir}/..//texinfo
  77. TEXI2DVI = TEXINPUTS=${TEXIDIR}:$$TEXINPUTS texi2dvi
  78.  
  79. CC = `if [ -f $${rootme}../gcc/xgcc ] ; \
  80.     then echo $${rootme}../gcc/xgcc -B$${rootme}../gcc/ ; \
  81.     else echo gcc ; fi`
  82. CXX = `if [ -f $${rootme}../gcc/xgcc ] ; \
  83.     then echo $${rootme}../gcc/xgcc -B$${rootme}../gcc/ ; \
  84.     else echo gcc ; fi`
  85.  
  86. XTRAFLAGS = `if [ -f $${rootme}../gcc/xgcc ] ;\
  87.     then echo -I$${rootme}../gcc/include;\
  88.     else echo ; fi`
  89. WRAP_C_INCLUDES =
  90. CFLAGS = -O
  91. CXXFLAGS = -O
  92. .PHONY: all
  93. all: _G_config.h libio.a libiostream.a $(OSPRIM_OBJECTS)
  94.     @rootme=`pwd`/; export rootme; \
  95.     $(MAKE) "DODIRS=$(SUBDIRS)" DO=all $(FLAGS_TO_PASS) subdir_do
  96.  
  97.  
  98. .PHONY: subdir_do
  99. subdir_do: force
  100.     @rootme=`pwd`/; export rootme; \
  101.     for i in $(DODIRS); do \
  102.         if [ -f  ./$$i/Makefile ] ; then \
  103.             echo "cd $$i; make $(DO) ..." ; \
  104.             (cd $$i ; $(MAKE) $(FLAGS_TO_PASS) $(DO)) || exit 1 ; \
  105.         else true ; fi ; \
  106.     done
  107.  
  108. # List of variables to pass to sub-makes.  This should not be needed
  109. # by GNU make or Sun make (both of which pass command-line variable
  110. # overrides thouh $(MAKE)) but may be needed by older versions.
  111.  
  112. FLAGS_TO_PASS= \
  113.     "INSTALL=$(INSTALL)" \
  114.     "INSTALL_DATA=$(INSTALL_DATA)" \
  115.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  116.     "prefix=$(prefix)" \
  117.     "exec_prefix=$(exec_prefix)" \
  118.     "tooldir=$(tooldir)" \
  119.     "AR=$(AR)" \
  120.     "AR_FLAGS=$(AR_FLAGS)" \
  121.     "CC=$(CC)" \
  122.     "CXX=$(CXX)" \
  123.     "CFLAGS=$(CFLAGS)" \
  124.     "CXXFLAGS=$(CXXFLAGS)" \
  125.     "RANLIB=$(RANLIB)" \
  126.     "LOADLIBES=$(LOADLIBES)" \
  127.     "LDFLAGS=$(LDFLAGS)" \
  128.     "MAKEINFO=$(MAKEINFO)" \
  129.     "XTRAFLAGS=$(XTRAFLAGS)"
  130. CXXINCLUDES = -I. -I$(srcdir) $(XTRAFLAGS)
  131. CINCLUDES = -I. -I$(srcdir) $(XTRAFLAGS)
  132. .SUFFIXES: .o .C .cc
  133. .c.o:
  134.     $(CC) -c $(CFLAGS) $(CINCLUDES) $<
  135. .C.o:
  136.     $(CXX) -c $(CXXFLAGS) $(CXXINCLUDES) $<
  137. .cc.o:
  138.     $(CXX) -c $(CXXFLAGS) $(CXXINCLUDES) $<
  139.  
  140.  
  141. .PHONY: install
  142. install:
  143. .PHONY: check
  144. check: _G_config.h libio.a libiostream.a $(OSPRIM_OBJECTS) 
  145.     @rootme=`pwd`/; export rootme; \
  146.     $(MAKE) "DODIRS=$(SUBDIRS)" DO=check $(FLAGS_TO_PASS) subdir_do
  147. .PHONY: info dvi install-info clean-info
  148. info: iostream.info
  149. dvi: iostream.dvi
  150. iostream.info: $(srcdir)/iostream.texi
  151.     $(MAKEINFO) -I$(srcdir) -I$(TEXIDIR) $(srcdir)/iostream.texi -o iostream.info
  152. iostream.dvi: $(srcdir)/iostream.texi
  153.     $(TEXI2DVI) $(srcdir)/iostream.texi
  154. iostream.ps: iostream.dvi
  155.     dvips iostream -o
  156. install-info:
  157.     -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
  158.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  159.     -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
  160.     for i in *.info* ; do \
  161.       $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  162.     done
  163. .PHONY: do-clean-info clean-info do-clean-dvi clean-dvi
  164. do-clean-info:
  165.     rm -f *.info*
  166. do-clean-dvi:
  167.     rm -f *.dvi *.aux *.cp *.fn* *.ky *.log *.pg *.toc *.tp *.vr
  168. clean-info: do-clean-info
  169. clean-dvi: do-clean-dvi
  170.  
  171. .PHONY: boltcc
  172. boltcc:
  173.     rootme=`pwd`/ ; export rootme ; $(MAKE) $(FLAGS_TO_PASS)
  174.  
  175.  
  176. # clean rules
  177. .PHONY: mostlyclean clean distclean realclean
  178. .PHONY: do-clean subdir_distclean subdir_realclean
  179. mostlyclean: do-clean-dvi
  180.     rm -rf *.o core iostream.list 
  181.     @$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=mostlyclean subdir_do
  182. do-clean: do-clean-dvi
  183.     rm -rf *.o core iostream.list  _G_config.h *.a
  184. clean: do-clean
  185.     @$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=clean subdir_do
  186. subdir_distclean:
  187.     @$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=distclean subdir_do
  188. distclean: do-clean subdir_distclean
  189.     rm -rf config.status Makefile *~ Make.pack
  190. subdir_realclean:
  191.     @$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=realclean subdir_do
  192. realclean: do-clean subdir_realclean do-clean-info
  193.     rm -rf config.status Makefile *~ Make.pack depend *.info*
  194.  
  195. .PHONY: force
  196. force:
  197.  
  198. # with the gnu make, this is done automatically.
  199.  
  200. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  201.     $(SHELL) ./config.status
  202.  
  203. .NOEXPORT:
  204. MAKEOVERRIDES=
  205. # End of package fragment generated by /Scratch/libg++-2.5.2/libg++-2.5.2-amiga/libio/config.shared.
  206. ##
  207.  
  208. INSTALLDIR = $(libdir)
  209.  
  210. IO_OBJECTS = filedoalloc.o floatconv.o genops.o fileops.o \
  211.   iovfprintf.o \
  212.   iovfscanf.o ioignore.o iopadn.o \
  213.   iofgetpos.o iofread.o iofscanf.o \
  214.   iofsetpos.o iogetline.o \
  215.   ioprintf.o ioseekoff.o ioseekpos.o \
  216.   outfloat.o stdfiles.o strops.o iofclose.o iopopen.o ioungetc.o
  217.  
  218. # These emulate stdio functionality, but with a different name (_IO_ungetc
  219. # instead of ungetc), and using _IO_FILE instead of FILE.
  220. # They are not needed for C++ iostream, nor stdio, though some stdio
  221. # files are build using the same source files (see stdio/configure.in).
  222. # They are needed for iostdio.h.
  223. # iofclose.o is not here, because it is needed for stdio (by pclose).
  224. 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
  225.  
  226. IOSTREAM_OBJECTS = builtinbuf.o filebuf.o fstream.o \
  227.   indstream.o isgetline.o isgetsb.o isscan.o ioextend.o iomanip.o iostream.o \
  228.   osform.o procbuf.o sbform.o sbgetline.o sbscan.o \
  229.   stdiostream.o stdstreams.o stream.o streambuf.o strstream.o \
  230.   PlotFile.o SFile.o parsestream.o pfstream.o editbuf.o
  231.  
  232. # These files define _IO_read etc, which are just wrappers for read(2) etc.
  233. # They need to be changed to use name-space-clean (e.g. __read) versions
  234. # for each specific libc.
  235. OSPRIM_OBJECTS = ioprims.o iostrerror.o cleanup.o
  236.  
  237. LIBIOSTREAM_OBJECTS = $(IO_OBJECTS) $(IOSTREAM_OBJECTS) $(OSPRIM_OBJECTS)
  238. LIBIO_OBJECTS = $(IO_OBJECTS) $(STDIO_WRAP_OBJECTS) $(OSPRIM_OBJECTS)
  239.  
  240. libio.a: _G_config.h $(LIBIO_OBJECTS)
  241.     -rm -rf libio.a
  242.     $(AR) $(AR_FLAGS) libio.a $(LIBIO_OBJECTS)
  243.     $(RANLIB) libio.a
  244.  
  245. libiostream.a: _G_config.h $(LIBIOSTREAM_OBJECTS)
  246.     -rm -rf libiostream.a
  247.     $(AR) $(AR_FLAGS) libiostream.a $(LIBIOSTREAM_OBJECTS)
  248.     $(RANLIB) libiostream.a
  249.  
  250. test: test.o libio.a
  251.     $(CC) -o test test.o libio.a
  252. tpipe: tpipe.o libio.a
  253.     $(CC) -o tpipe tpipe.o libio.a
  254.  
  255. iostream.list: _G_config.h $(LIBIOSTREAM_OBJECTS)
  256.     @echo "$(LIBIOSTREAM_OBJECTS)"> iostream.list
  257.  
  258. # The CC=$(CXX) is a kludge to force use of gcc.
  259. _G_config.h: ${srcdir}/gen-params
  260.     rootme=`pwd`/ ; export rootme; \
  261.     CC="$(CXX) $(XTRAFLAGS)"; export CC; \
  262.     CXX="$(CXX) $(XTRAFLAGS) $(NOSTDINC)"; export CXX; \
  263.     CONFIG_NM="$(NM)"; export CONFIG_NM; \
  264.     $(SHELL) ${srcdir}/gen-params LIB_VERSION=$(VERSION) $(G_CONFIG_ARGS) >tmp-params.h
  265.     mv tmp-params.h _G_config.h
  266.  
  267. USER_INCLUDES = *.h
  268. install:
  269.     rm -f $(tooldir)/include/_G_config.h ; \
  270.       $(INSTALL_DATA) _G_config.h $(tooldir)/include/_G_config.h || exit 1;
  271.     cd $(srcdir); \
  272.     for FILE in $(USER_INCLUDES) ; do \
  273.         rm -f $(gxx_includedir)/$$FILE ; \
  274.         $(INSTALL_DATA) $$FILE $(gxx_includedir)/$$FILE ; \
  275.         chmod a-x $(gxx_includedir)/$$FILE ; \
  276.     done
  277.     $(INSTALL_DATA) libiostream.a $(INSTALLDIR)/libiostream.a
  278.     $(RANLIB) $(INSTALLDIR)/libiostream.a
  279.     chmod a-x $(INSTALLDIR)/libiostream.a
  280.