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
34 F2C_H_DIR = @srcdir@/..
43 #### End of system configuration section. ####
45 ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) $(CPPFLAGS) \
52 @LIBTOOL@ --mode=compile $(CC) -c -DSkip_f2c_Undefs -DAllow_TYQUAD $(ALL_CFLAGS) $<
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 \
63 echo timestamp > ../s-libi77
66 objs="`cat ../objlist`" ; for i in $(OBJS) ; do \
68 objs="$$objs libI77/$$x" ;\
70 echo -n $$objs > ../objlist
72 Makefile: Makefile.in config.status
73 $(SHELL) config.status
75 config.status: configure
77 CONFIG_SITE=no-such-file CC='$(CC)' 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
96 VersionI.lo: Version.c
97 @LIBTOOL@ --mode=compile $(CC) -c $(ALL_CFLAGS) $(srcdir)/Version.c -o $@
99 backspace.lo: backspace.c fio.h config.h
100 close.lo: close.c fio.h config.h
101 dfe.lo: fio.h config.h
103 dolio.lo: dolio.c config.h
104 due.lo: due.c fio.h config.h
105 endfile.lo: endfile.c fio.h rawio.h config.h
106 err.lo: err.c fio.h rawio.h config.h
107 fmt.lo: fio.h config.h
109 fmtlib.lo: fmtlib.c config.h
110 ftell_.lo: ftell_.c fio.h config.h
113 ilnw.lo: fio.h config.h
114 ilnw.lo: ilnw.c lio.h
115 inquire.lo: inquire.c fio.h config.h
116 lread.lo: fio.h config.h
119 lread.lo: lread.c fp.h
122 lwrite.lo: lwrite.c lio.h
123 open.lo: open.c fio.h rawio.h config.h
124 rdfmt.lo: fio.h config.h
126 rdfmt.lo: rdfmt.c fp.h
127 rewind.lo: rewind.c fio.h config.h
128 rsfe.lo: fio.h config.h
129 rsfe.lo: rsfe.c fmt.h
131 rsli.lo: rsli.c lio.h
132 rsne.lo: fio.h config.h
133 rsne.lo: rsne.c lio.h
134 sfe.lo: sfe.c fio.h config.h
135 sue.lo: sue.c fio.h config.h
136 typesize.lo: typesize.c config.h
138 util.lo: util.c fio.h config.h
142 wrtfmt.lo: fio.h config.h
143 wrtfmt.lo: wrtfmt.c fmt.h
144 wsfe.lo: fio.h config.h
145 wsfe.lo: wsfe.c fmt.h
146 wsle.lo: fio.h config.h
148 wsle.lo: wsle.c lio.h
150 wsne.lo: wsne.c lio.h
151 xwsne.lo: fio.h config.h
153 xwsne.lo: xwsne.c fmt.h
155 # May be pessimistic:
156 $(OBJS): $(F2C_H_DIR)/f2c.h $(G2C_H_DIR)/g2c.h
158 check install uninstall install-strip dist installcheck installdirs:
165 rm -f config.log ../s-libi77
168 rm -f config.cache config.status Makefile ../s-libi77 configure
172 .PHONY: mostlyclean clean distclean maintainer-clean all check uninstall \
173 install-strip dist installcheck installdirs archive