| 1 | # Makefile for GNU F77 compiler runtime.
 | 
|---|
| 2 | # Copyright 1990 - 1994 by AT&T Bell Laboratories and Bellcore (see the
 | 
|---|
| 3 | # file `Notice').
 | 
|---|
| 4 | # Portions of this file Copyright (C) 1995, 1996, 1998, 2001 Free Software Foundation, Inc.
 | 
|---|
| 5 | #   Contributed by Dave Love (d.love@dl.ac.uk).
 | 
|---|
| 6 | #
 | 
|---|
| 7 | #This file is part of GNU Fortran.
 | 
|---|
| 8 | #
 | 
|---|
| 9 | #GNU Fortran is free software; you can redistribute it and/or modify
 | 
|---|
| 10 | #it under the terms of the GNU General Public License as published by
 | 
|---|
| 11 | #the Free Software Foundation; either version 2, or (at your option)
 | 
|---|
| 12 | #any later version.
 | 
|---|
| 13 | #
 | 
|---|
| 14 | #GNU Fortran is distributed in the hope that it will be useful,
 | 
|---|
| 15 | #but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
|---|
| 16 | #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
|---|
| 17 | #GNU General Public License for more details.
 | 
|---|
| 18 | #
 | 
|---|
| 19 | #You should have received a copy of the GNU General Public License
 | 
|---|
| 20 | #along with GNU Fortran; see the file COPYING.  If not, write to
 | 
|---|
| 21 | #the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 | 
|---|
| 22 | #02111-1307, USA.
 | 
|---|
| 23 | 
 | 
|---|
| 24 | #### Start of system configuration section. ####
 | 
|---|
| 25 | 
 | 
|---|
| 26 | # $(srcdir) must be set to the g77 runtime libI77 source directory.
 | 
|---|
| 27 | srcdir = @srcdir@
 | 
|---|
| 28 | VPATH = @srcdir@
 | 
|---|
| 29 | 
 | 
|---|
| 30 | # configure sets this to all the -D options appropriate for the
 | 
|---|
| 31 | # configuration.
 | 
|---|
| 32 | DEFS = @DEFS@
 | 
|---|
| 33 | 
 | 
|---|
| 34 | F2C_H_DIR = @srcdir@/..
 | 
|---|
| 35 | G2C_H_DIR = ..
 | 
|---|
| 36 | CC = @CC@
 | 
|---|
| 37 | CFLAGS = @CFLAGS@
 | 
|---|
| 38 | CPPFLAGS = @CPPFLAGS@
 | 
|---|
| 39 | @SET_MAKE@
 | 
|---|
| 40 | 
 | 
|---|
| 41 | SHELL = @SHELL@
 | 
|---|
| 42 | 
 | 
|---|
| 43 | #### End of system configuration section. ####
 | 
|---|
| 44 | 
 | 
|---|
| 45 | ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) $(CPPFLAGS) \
 | 
|---|
| 46 |              $(DEFS) $(WARN_CFLAGS) $(CFLAGS)
 | 
|---|
| 47 | 
 | 
|---|
| 48 | .SUFFIXES:
 | 
|---|
| 49 | .SUFFIXES: .c .lo
 | 
|---|
| 50 | 
 | 
|---|
| 51 | .c.lo:
 | 
|---|
| 52 |         @LIBTOOL@ --mode=compile $(CC) -c -DSkip_f2c_Undefs -DAllow_TYQUAD $(ALL_CFLAGS) $<
 | 
|---|
| 53 | 
 | 
|---|
| 54 | OBJS =  VersionI.lo backspace.lo close.lo dfe.lo dolio.lo due.lo endfile.lo err.lo \
 | 
|---|
| 55 |         fmt.lo fmtlib.lo iio.lo ilnw.lo inquire.lo lread.lo lwrite.lo open.lo \
 | 
|---|
| 56 |         rdfmt.lo rewind.lo rsfe.lo rsli.lo rsne.lo sfe.lo sue.lo typesize.lo uio.lo \
 | 
|---|
| 57 |         util.lo wref.lo wrtfmt.lo wsfe.lo wsle.lo wsne.lo xwsne.lo \
 | 
|---|
| 58 |         ftell_.lo
 | 
|---|
| 59 | 
 | 
|---|
| 60 | all: ../s-libi77
 | 
|---|
| 61 | 
 | 
|---|
| 62 | ../s-libi77: $(OBJS)
 | 
|---|
| 63 |         -rm -f $@.T $@
 | 
|---|
| 64 |         objs='$(OBJS)'; for name in $$objs; do \
 | 
|---|
| 65 |           echo libI77/$${name} >> $@.T; done
 | 
|---|
| 66 |         mv $@.T $@
 | 
|---|
| 67 | 
 | 
|---|
| 68 | Makefile: Makefile.in config.status
 | 
|---|
| 69 |         $(SHELL) config.status
 | 
|---|
| 70 | 
 | 
|---|
| 71 | config.status: configure
 | 
|---|
| 72 |         rm -f config.cache
 | 
|---|
| 73 |         CONFIG_SITE=no-such-file CC='$(CC)' CFLAGS='$(CFLAGS)' \
 | 
|---|
| 74 |           CPPFLAGS='$(CPPFLAGS)' $(SHELL) config.status --recheck
 | 
|---|
| 75 | 
 | 
|---|
| 76 | ${srcdir}/configure: configure.in
 | 
|---|
| 77 |         rm -f config.cache
 | 
|---|
| 78 |         cd ${srcdir} && autoconf
 | 
|---|
| 79 | 
 | 
|---|
| 80 | # autoheader might not change config.h.in, so touch a stamp file.
 | 
|---|
| 81 | ${srcdir}/config.h.in: stamp-h.in; @true
 | 
|---|
| 82 | ${srcdir}/stamp-h.in: configure.in
 | 
|---|
| 83 |         (cd ${srcdir} && autoheader)
 | 
|---|
| 84 |         @rm -f ${srcdir}/stamp-h.in
 | 
|---|
| 85 |         echo timestamp > ${srcdir}/stamp-h.in
 | 
|---|
| 86 | 
 | 
|---|
| 87 | config.h: stamp-h; @true
 | 
|---|
| 88 | stamp-h: config.h.in config.status
 | 
|---|
| 89 |         CONFIG_FILES= CONFIG_HEADERS=config.h $(SHELL) config.status
 | 
|---|
| 90 |         echo timestamp > stamp-h
 | 
|---|
| 91 | 
 | 
|---|
| 92 | VersionI.lo: Version.c
 | 
|---|
| 93 |         @LIBTOOL@ --mode=compile $(CC) -c $(ALL_CFLAGS) $(srcdir)/Version.c -o $@
 | 
|---|
| 94 | 
 | 
|---|
| 95 | backspace.lo:   backspace.c fio.h config.h
 | 
|---|
| 96 | close.lo:       close.c fio.h config.h
 | 
|---|
| 97 | dfe.lo:         fio.h config.h
 | 
|---|
| 98 | dfe.lo:         dfe.c fmt.h
 | 
|---|
| 99 | dolio.lo:       dolio.c config.h
 | 
|---|
| 100 | due.lo:         due.c fio.h config.h
 | 
|---|
| 101 | endfile.lo:     endfile.c fio.h config.h
 | 
|---|
| 102 | err.lo:         err.c fio.h config.h
 | 
|---|
| 103 | fmt.lo:         fio.h config.h
 | 
|---|
| 104 | fmt.lo:         fmt.c fmt.h
 | 
|---|
| 105 | fmtlib.lo:      fmtlib.c config.h
 | 
|---|
| 106 | ftell_.lo:      ftell_.c fio.h config.h
 | 
|---|
| 107 | iio.lo:         fio.h
 | 
|---|
| 108 | iio.lo:         iio.c fmt.h
 | 
|---|
| 109 | ilnw.lo:                fio.h config.h
 | 
|---|
| 110 | ilnw.lo:                ilnw.c lio.h
 | 
|---|
| 111 | inquire.lo:     inquire.c fio.h config.h
 | 
|---|
| 112 | lread.lo:       fio.h config.h
 | 
|---|
| 113 | lread.lo:       fmt.h
 | 
|---|
| 114 | lread.lo:       lio.h
 | 
|---|
| 115 | lread.lo:       lread.c fp.h
 | 
|---|
| 116 | lwrite.lo:      fio.h
 | 
|---|
| 117 | lwrite.lo:      fmt.h
 | 
|---|
| 118 | lwrite.lo:      lwrite.c lio.h
 | 
|---|
| 119 | open.lo:                open.c fio.h config.h
 | 
|---|
| 120 | rdfmt.lo:       fio.h config.h
 | 
|---|
| 121 | rdfmt.lo:       fmt.h
 | 
|---|
| 122 | rdfmt.lo:       rdfmt.c fp.h
 | 
|---|
| 123 | rewind.lo:      rewind.c fio.h config.h
 | 
|---|
| 124 | rsfe.lo:                fio.h config.h
 | 
|---|
| 125 | rsfe.lo:                rsfe.c fmt.h
 | 
|---|
| 126 | rsli.lo:                fio.h
 | 
|---|
| 127 | rsli.lo:                rsli.c lio.h
 | 
|---|
| 128 | rsne.lo:                fio.h config.h
 | 
|---|
| 129 | rsne.lo:                rsne.c lio.h
 | 
|---|
| 130 | sfe.lo:         sfe.c fio.h config.h
 | 
|---|
| 131 | sue.lo:         sue.c fio.h config.h
 | 
|---|
| 132 | typesize.lo:    typesize.c config.h
 | 
|---|
| 133 | uio.lo:         uio.c fio.h
 | 
|---|
| 134 | util.lo:                util.c fio.h config.h
 | 
|---|
| 135 | wref.lo:                fio.h
 | 
|---|
| 136 | wref.lo:                fmt.h
 | 
|---|
| 137 | wref.lo:                wref.c fp.h
 | 
|---|
| 138 | wrtfmt.lo:      fio.h config.h
 | 
|---|
| 139 | wrtfmt.lo:      wrtfmt.c fmt.h
 | 
|---|
| 140 | wsfe.lo:                fio.h config.h
 | 
|---|
| 141 | wsfe.lo:                wsfe.c fmt.h
 | 
|---|
| 142 | wsle.lo:                fio.h config.h
 | 
|---|
| 143 | wsle.lo:                fmt.h
 | 
|---|
| 144 | wsle.lo:                wsle.c lio.h
 | 
|---|
| 145 | wsne.lo:                fio.h
 | 
|---|
| 146 | wsne.lo:                wsne.c lio.h
 | 
|---|
| 147 | xwsne.lo:       fio.h config.h
 | 
|---|
| 148 | xwsne.lo:       lio.h
 | 
|---|
| 149 | xwsne.lo:       xwsne.c fmt.h
 | 
|---|
| 150 | 
 | 
|---|
| 151 | # May be pessimistic:
 | 
|---|
| 152 | $(OBJS): $(F2C_H_DIR)/f2c.h $(G2C_H_DIR)/g2c.h
 | 
|---|
| 153 | 
 | 
|---|
| 154 | check install uninstall install-strip dist installcheck installdirs:
 | 
|---|
| 155 | 
 | 
|---|
| 156 | mostlyclean:
 | 
|---|
| 157 |         rm -f *.o *.lo
 | 
|---|
| 158 |         rm -rf .libs
 | 
|---|
| 159 | 
 | 
|---|
| 160 | clean: mostlyclean
 | 
|---|
| 161 |         rm -f config.log ../s-libi77
 | 
|---|
| 162 | 
 | 
|---|
| 163 | distclean: clean
 | 
|---|
| 164 |         rm -f config.cache config.status Makefile ../s-libi77 configure
 | 
|---|
| 165 | 
 | 
|---|
| 166 | maintainer-clean:
 | 
|---|
| 167 | 
 | 
|---|
| 168 | .PHONY: mostlyclean clean distclean maintainer-clean all check uninstall \
 | 
|---|
| 169 |         install-strip dist installcheck installdirs archive
 | 
|---|