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 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
85 $(CC) -c $(ALL_CFLAGS) -o $@ $(srcdir)/Version.c
87 backspace.o: backspace.c fio.h
88 close.o: close.c fio.h
93 endfile.o: endfile.c fio.h rawio.h
94 err.o: err.c fio.h rawio.h
98 ftell_.o: ftell_.c fio.h
103 inquire.o: inquire.c fio.h
107 lread.o: lread.c fp.h
110 lwrite.o: lwrite.c lio.h
111 open.o: open.c fio.h rawio.h
114 rdfmt.o: rdfmt.c fp.h
115 rewind.o: rewind.c fio.h
124 typesize.o: typesize.c
131 wrtfmt.o: wrtfmt.c fmt.h
141 xwsne.o: xwsne.c fmt.h
143 # May be pessimistic:
144 $(OBJ): $(F2C_H_DIR)/f2c.h $(G2C_H_DIR)/g2c.h
146 check install uninstall install-strip dist installcheck installdirs:
152 rm -f config.log ../s-libi77
155 rm -f config.cache config.status Makefile ../s-libi77 configure
159 .PHONY: mostlyclean clean distclean maintainer-clean all check uninstall \
160 install-strip dist installcheck installdirs archive