home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-12-19 | 9.2 KB | 283 lines |
- # This file was generated automatically by configure. Do not edit.
- VPATH = /Scratch/libg++-2.5.2/libg++-2.5.2-amiga/libio
- links =
- host_alias = amigados
- host_cpu = m68k
- host_vendor = cbm
- host_os = amigados
- host_canonical = m68k-cbm-amigados
- target_alias = amigados
- target_cpu = m68k
- target_vendor = cbm
- target_os = amigados
- target_canonical = m68k-cbm-amigados
- package_makefile_frag = Make.pack
- # Copyright (C) 1993 Free Software Foundation
- #
- # This file is part of the GNU IO Library. This library is free
- # software; you can redistribute it and/or modify it under the
- # terms of the GNU General Public License as published by the
- # Free Software Foundation; either version 2, or (at your option)
- # any later version.
- #
- # This library is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with GNU CC; see the file COPYING. If not, write to
- # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-
- srcdir = /Scratch/libg++-2.5.2/libg++-2.5.2-amiga/libio
- VERSION = 0.62
- #### package, host, target, and site dependent Makefile fragments come in here.
- # Start of package fragment generated by /Scratch/libg++-2.5.2/libg++-2.5.2-amiga/libio/config.shared.
- # TOPDIR=$${rootme}../ invsubdir= subdir=
- srcdir = /Scratch/libg++-2.5.2/libg++-2.5.2-amiga/libio
- SUBDIRS = tests dbz stdio
- prefix = /usr
- exec_prefix = $(prefix)
- bindir = $(exec_prefix)/bin
- libdir = $(exec_prefix)/lib
- datadir = $(prefix)/lib
- mandir = $(prefix)/man
- man1dir = $(mandir)/man1
- man2dir = $(mandir)/man2
- man3dir = $(mandir)/man3
- man4dir = $(mandir)/man4
- man5dir = $(mandir)/man5
- man6dir = $(mandir)/man6
- man7dir = $(mandir)/man7
- man8dir = $(mandir)/man8
- man9dir = $(mandir)/man9
- infodir = $(prefix)/info
- includedir = $(prefix)/include
- gxx_includedir = $(libdir)/g++-include
- docdir = $(datadir)/doc
-
- SHELL = /bin/sh
-
- INSTALL = $(srcdir)/../install.sh -c
- INSTALL_PROGRAM = $(INSTALL)
- INSTALL_DATA = $(INSTALL)
-
- AR = `if [ -f $${rootme}../binutils/ar ] ; \
- then echo $${rootme}../binutils/ar ; \
- else echo ar ; fi`
- AR_FLAGS = rc
- RANLIB = `if [ -f $${rootme}../binutils/ranlib ] ; \
- then echo $${rootme}../binutils/ranlib ; \
- else echo ranlib ; fi`
- NM = `if [ -f $${rootme}../binutils/nm ] ; \
- then echo $${rootme}../binutils/nm ; \
- else echo nm ; fi`
-
- MAKEINFO = `if [ -f $${rootme}../texinfo/C/makeinfo ] ; \
- then echo $${rootme}../texinfo/C/makeinfo ; \
- else echo makeinfo ; fi`
- TEXIDIR=${srcdir}/..//texinfo
- TEXI2DVI = TEXINPUTS=${TEXIDIR}:$$TEXINPUTS texi2dvi
-
- CC = `if [ -f $${rootme}../gcc/xgcc ] ; \
- then echo $${rootme}../gcc/xgcc -B$${rootme}../gcc/ ; \
- else echo gcc ; fi`
- CXX = `if [ -f $${rootme}../gcc/xgcc ] ; \
- then echo $${rootme}../gcc/xgcc -B$${rootme}../gcc/ ; \
- else echo gcc ; fi`
-
- XTRAFLAGS = `if [ -f $${rootme}../gcc/xgcc ] ;\
- then echo -I$${rootme}../gcc/include;\
- else echo ; fi`
- WRAP_C_INCLUDES =
- CFLAGS = -O
- CXXFLAGS = -O
- .PHONY: all
- all: _G_config.h libio.a libiostream.a $(OSPRIM_OBJECTS)
- @rootme=`pwd`/; export rootme; \
- $(MAKE) "DODIRS=$(SUBDIRS)" DO=all $(FLAGS_TO_PASS) subdir_do
-
-
- .PHONY: subdir_do
- subdir_do: force
- @rootme=`pwd`/; export rootme; \
- for i in $(DODIRS); do \
- if [ -f ./$$i/Makefile ] ; then \
- echo "cd $$i; make $(DO) ..." ; \
- (cd $$i ; $(MAKE) $(FLAGS_TO_PASS) $(DO)) || exit 1 ; \
- else true ; fi ; \
- done
-
- # List of variables to pass to sub-makes. This should not be needed
- # by GNU make or Sun make (both of which pass command-line variable
- # overrides thouh $(MAKE)) but may be needed by older versions.
-
- FLAGS_TO_PASS= \
- "INSTALL=$(INSTALL)" \
- "INSTALL_DATA=$(INSTALL_DATA)" \
- "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
- "prefix=$(prefix)" \
- "exec_prefix=$(exec_prefix)" \
- "tooldir=$(tooldir)" \
- "AR=$(AR)" \
- "AR_FLAGS=$(AR_FLAGS)" \
- "CC=$(CC)" \
- "CXX=$(CXX)" \
- "CFLAGS=$(CFLAGS)" \
- "CXXFLAGS=$(CXXFLAGS)" \
- "RANLIB=$(RANLIB)" \
- "LOADLIBES=$(LOADLIBES)" \
- "LDFLAGS=$(LDFLAGS)" \
- "MAKEINFO=$(MAKEINFO)" \
- "XTRAFLAGS=$(XTRAFLAGS)"
- CXXINCLUDES = -I. -I$(srcdir) $(XTRAFLAGS)
- CINCLUDES = -I. -I$(srcdir) $(XTRAFLAGS)
- .SUFFIXES: .o .C .cc
- .c.o:
- $(CC) -c $(CFLAGS) $(CINCLUDES) $<
- .C.o:
- $(CXX) -c $(CXXFLAGS) $(CXXINCLUDES) $<
- .cc.o:
- $(CXX) -c $(CXXFLAGS) $(CXXINCLUDES) $<
-
-
- .PHONY: install
- install:
- .PHONY: check
- check: _G_config.h libio.a libiostream.a $(OSPRIM_OBJECTS)
- @rootme=`pwd`/; export rootme; \
- $(MAKE) "DODIRS=$(SUBDIRS)" DO=check $(FLAGS_TO_PASS) subdir_do
- .PHONY: info dvi install-info clean-info
- info: iostream.info
- dvi: iostream.dvi
- iostream.info: $(srcdir)/iostream.texi
- $(MAKEINFO) -I$(srcdir) -I$(TEXIDIR) $(srcdir)/iostream.texi -o iostream.info
- iostream.dvi: $(srcdir)/iostream.texi
- $(TEXI2DVI) $(srcdir)/iostream.texi
- iostream.ps: iostream.dvi
- dvips iostream -o
- install-info:
- -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
- if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
- -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
- for i in *.info* ; do \
- $(INSTALL_DATA) $$i $(infodir)/$$i ; \
- done
- .PHONY: do-clean-info clean-info do-clean-dvi clean-dvi
- do-clean-info:
- rm -f *.info*
- do-clean-dvi:
- rm -f *.dvi *.aux *.cp *.fn* *.ky *.log *.pg *.toc *.tp *.vr
- clean-info: do-clean-info
- clean-dvi: do-clean-dvi
-
- .PHONY: boltcc
- boltcc:
- rootme=`pwd`/ ; export rootme ; $(MAKE) $(FLAGS_TO_PASS)
-
-
- # clean rules
- .PHONY: mostlyclean clean distclean realclean
- .PHONY: do-clean subdir_distclean subdir_realclean
- mostlyclean: do-clean-dvi
- rm -rf *.o core iostream.list
- @$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=mostlyclean subdir_do
- do-clean: do-clean-dvi
- rm -rf *.o core iostream.list _G_config.h *.a
- clean: do-clean
- @$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=clean subdir_do
- subdir_distclean:
- @$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=distclean subdir_do
- distclean: do-clean subdir_distclean
- rm -rf config.status Makefile *~ Make.pack
- subdir_realclean:
- @$(MAKE) $(FLAGS_TO_PASS) "DODIRS=$(SUBDIRS)" DO=realclean subdir_do
- realclean: do-clean subdir_realclean do-clean-info
- rm -rf config.status Makefile *~ Make.pack depend *.info*
-
- .PHONY: force
- force:
-
- # with the gnu make, this is done automatically.
-
- Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
- $(SHELL) ./config.status
-
- .NOEXPORT:
- MAKEOVERRIDES=
- # End of package fragment generated by /Scratch/libg++-2.5.2/libg++-2.5.2-amiga/libio/config.shared.
- ##
-
- INSTALLDIR = $(libdir)
-
- 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 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)
-
- libio.a: _G_config.h $(LIBIO_OBJECTS)
- -rm -rf libio.a
- $(AR) $(AR_FLAGS) libio.a $(LIBIO_OBJECTS)
- $(RANLIB) libio.a
-
- libiostream.a: _G_config.h $(LIBIOSTREAM_OBJECTS)
- -rm -rf libiostream.a
- $(AR) $(AR_FLAGS) libiostream.a $(LIBIOSTREAM_OBJECTS)
- $(RANLIB) libiostream.a
-
- test: test.o libio.a
- $(CC) -o test test.o libio.a
- tpipe: tpipe.o libio.a
- $(CC) -o tpipe tpipe.o libio.a
-
- iostream.list: _G_config.h $(LIBIOSTREAM_OBJECTS)
- @echo "$(LIBIOSTREAM_OBJECTS)"> iostream.list
-
- # The CC=$(CXX) is a kludge to force use of gcc.
- _G_config.h: ${srcdir}/gen-params
- rootme=`pwd`/ ; export rootme; \
- CC="$(CXX) $(XTRAFLAGS)"; export CC; \
- CXX="$(CXX) $(XTRAFLAGS) $(NOSTDINC)"; export CXX; \
- CONFIG_NM="$(NM)"; export CONFIG_NM; \
- $(SHELL) ${srcdir}/gen-params LIB_VERSION=$(VERSION) $(G_CONFIG_ARGS) >tmp-params.h
- mv tmp-params.h _G_config.h
-
- USER_INCLUDES = *.h
- install:
- rm -f $(tooldir)/include/_G_config.h ; \
- $(INSTALL_DATA) _G_config.h $(tooldir)/include/_G_config.h || exit 1;
- cd $(srcdir); \
- for FILE in $(USER_INCLUDES) ; do \
- rm -f $(gxx_includedir)/$$FILE ; \
- $(INSTALL_DATA) $$FILE $(gxx_includedir)/$$FILE ; \
- chmod a-x $(gxx_includedir)/$$FILE ; \
- done
- $(INSTALL_DATA) libiostream.a $(INSTALLDIR)/libiostream.a
- $(RANLIB) $(INSTALLDIR)/libiostream.a
- chmod a-x $(INSTALLDIR)/libiostream.a
-