1 # Makefile for GNU F77 compiler runtime.
2 # Copyright 1990 - 1994 by AT&T Bell Laboratories and Bellcore (see the
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).
7 #This file is part of GNU Fortran.
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)
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.
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
24 #### Start of system configuration section. ####
26 # $(srcdir) must be set to the g77 runtime libI77 source directory.
30 # configure sets this to all the -D options appropriate for the
36 F2C_H_DIR = @srcdir@/..
47 #### End of system configuration section. ####
49 ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) $(CPPFLAGS) \
56 $(CC) -c -DSkip_f2c_Undefs -DAllow_TYQUAD $(ALL_CFLAGS) $<
58 OBJ = VersionI.o backspace.o close.o dfe.o dolio.o due.o endfile.o err.o \
59 fmt.o fmtlib.o iio.o ilnw.o inquire.o lread.o lwrite.o open.o \
60 rdfmt.o rewind.o rsfe.o rsli.o rsne.o sfe.o sue.o typesize.o uio.o \
61 util.o wref.o wrtfmt.o wsfe.o wsle.o wsne.o xwsne.o \
67 echo timestamp > ../s-libi77
70 $(AR) $(ARFLAGS) $(LIBG2C) $(OBJ)
72 Makefile: Makefile.in config.status
73 $(SHELL) config.status
75 config.status: configure
77 CONFIG_SITE=no-such-file CC='$(CC)' AR='$(AR)' CFLAGS='$(CFLAGS)' \
78 CPPFLAGS='$(CPPFLAGS)' $(SHELL) config.status --recheck
80 ${srcdir}/configure: configure.in
82 cd ${srcdir} && autoconf
84 # autoheader might not change config.h.in, so touch a stamp file.
85 ${srcdir}/config.h.in: stamp-h.in; @true
86 ${srcdir}/stamp-h.in: configure.in
87 (cd ${srcdir} && autoheader)
88 @rm -f ${srcdir}/stamp-h.in
89 echo timestamp > ${srcdir}/stamp-h.in
91 config.h: stamp-h; @true
92 stamp-h: config.h.in config.status
93 CONFIG_FILES= CONFIG_HEADERS=config.h $(SHELL) config.status
94 echo timestamp > stamp-h
97 $(CC) -c $(ALL_CFLAGS) -o $@ $(srcdir)/Version.c
99 backspace.o: backspace.c fio.h
100 close.o: close.c fio.h
105 endfile.o: endfile.c fio.h rawio.h config.h
106 err.o: err.c fio.h rawio.h
110 ftell_.o: ftell_.c fio.h
115 inquire.o: inquire.c fio.h
119 lread.o: lread.c fp.h
122 lwrite.o: lwrite.c lio.h
123 open.o: open.c fio.h rawio.h
126 rdfmt.o: rdfmt.c fp.h
127 rewind.o: rewind.c fio.h
136 typesize.o: typesize.c
143 wrtfmt.o: wrtfmt.c fmt.h
153 xwsne.o: xwsne.c fmt.h
155 # May be pessimistic:
156 $(OBJ): $(F2C_H_DIR)/f2c.h $(G2C_H_DIR)/g2c.h
158 check install uninstall install-strip dist installcheck installdirs:
164 rm -f config.log ../s-libi77
167 rm -f config.cache config.status Makefile ../s-libi77 configure
171 .PHONY: mostlyclean clean distclean maintainer-clean all check uninstall \
172 install-strip dist installcheck installdirs archive