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 | LIBG2C = ../libg2c.a |
---|
35 | |
---|
36 | F2C_H_DIR = @srcdir@/.. |
---|
37 | G2C_H_DIR = .. |
---|
38 | CC = @CC@ |
---|
39 | CFLAGS = @CFLAGS@ |
---|
40 | CPPFLAGS = @CPPFLAGS@ |
---|
41 | AR = @AR@ |
---|
42 | ARFLAGS = rc |
---|
43 | @SET_MAKE@ |
---|
44 | |
---|
45 | SHELL = /bin/sh |
---|
46 | |
---|
47 | #### End of system configuration section. #### |
---|
48 | |
---|
49 | ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) $(CPPFLAGS) \ |
---|
50 | $(DEFS) $(CFLAGS) |
---|
51 | |
---|
52 | .SUFFIXES: |
---|
53 | .SUFFIXES: .c .o |
---|
54 | |
---|
55 | .c.o: |
---|
56 | $(CC) -c -DSkip_f2c_Undefs -DAllow_TYQUAD $(ALL_CFLAGS) $< |
---|
57 | |
---|
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 \ |
---|
62 | ftell_.o |
---|
63 | |
---|
64 | all: ../s-libi77 |
---|
65 | |
---|
66 | ../s-libi77: $(OBJ) |
---|
67 | echo timestamp > ../s-libi77 |
---|
68 | |
---|
69 | archive: |
---|
70 | $(AR) $(ARFLAGS) $(LIBG2C) $(OBJ) |
---|
71 | |
---|
72 | Makefile: Makefile.in config.status |
---|
73 | $(SHELL) config.status |
---|
74 | |
---|
75 | config.status: configure |
---|
76 | rm -f config.cache |
---|
77 | CONFIG_SITE=no-such-file CC='$(CC)' AR='$(AR)' CFLAGS='$(CFLAGS)' \ |
---|
78 | CPPFLAGS='$(CPPFLAGS)' $(SHELL) config.status --recheck |
---|
79 | |
---|
80 | ${srcdir}/configure: configure.in |
---|
81 | rm -f config.cache |
---|
82 | cd ${srcdir} && autoconf |
---|
83 | |
---|
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 |
---|
90 | |
---|
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 |
---|
95 | |
---|
96 | VersionI.o: Version.c |
---|
97 | $(CC) -c $(ALL_CFLAGS) -o $@ $(srcdir)/Version.c |
---|
98 | |
---|
99 | backspace.o: backspace.c fio.h |
---|
100 | close.o: close.c fio.h |
---|
101 | dfe.o: fio.h |
---|
102 | dfe.o: dfe.c fmt.h |
---|
103 | dolio.o: dolio.c |
---|
104 | due.o: due.c fio.h |
---|
105 | endfile.o: endfile.c fio.h rawio.h config.h |
---|
106 | err.o: err.c fio.h rawio.h |
---|
107 | fmt.o: fio.h |
---|
108 | fmt.o: fmt.c fmt.h |
---|
109 | fmtlib.o: fmtlib.c |
---|
110 | ftell_.o: ftell_.c fio.h |
---|
111 | iio.o: fio.h |
---|
112 | iio.o: iio.c fmt.h |
---|
113 | ilnw.o: fio.h |
---|
114 | ilnw.o: ilnw.c lio.h |
---|
115 | inquire.o: inquire.c fio.h |
---|
116 | lread.o: fio.h |
---|
117 | lread.o: fmt.h |
---|
118 | lread.o: lio.h |
---|
119 | lread.o: lread.c fp.h |
---|
120 | lwrite.o: fio.h |
---|
121 | lwrite.o: fmt.h |
---|
122 | lwrite.o: lwrite.c lio.h |
---|
123 | open.o: open.c fio.h rawio.h |
---|
124 | rdfmt.o: fio.h |
---|
125 | rdfmt.o: fmt.h |
---|
126 | rdfmt.o: rdfmt.c fp.h |
---|
127 | rewind.o: rewind.c fio.h |
---|
128 | rsfe.o: fio.h |
---|
129 | rsfe.o: rsfe.c fmt.h |
---|
130 | rsli.o: fio.h |
---|
131 | rsli.o: rsli.c lio.h |
---|
132 | rsne.o: fio.h |
---|
133 | rsne.o: rsne.c lio.h |
---|
134 | sfe.o: sfe.c fio.h |
---|
135 | sue.o: sue.c fio.h |
---|
136 | typesize.o: typesize.c |
---|
137 | uio.o: uio.c fio.h |
---|
138 | util.o: util.c fio.h |
---|
139 | wref.o: fio.h |
---|
140 | wref.o: fmt.h |
---|
141 | wref.o: wref.c fp.h |
---|
142 | wrtfmt.o: fio.h |
---|
143 | wrtfmt.o: wrtfmt.c fmt.h |
---|
144 | wsfe.o: fio.h |
---|
145 | wsfe.o: wsfe.c fmt.h |
---|
146 | wsle.o: fio.h |
---|
147 | wsle.o: fmt.h |
---|
148 | wsle.o: wsle.c lio.h |
---|
149 | wsne.o: fio.h |
---|
150 | wsne.o: wsne.c lio.h |
---|
151 | xwsne.o: fio.h |
---|
152 | xwsne.o: lio.h |
---|
153 | xwsne.o: xwsne.c fmt.h |
---|
154 | |
---|
155 | # May be pessimistic: |
---|
156 | $(OBJ): $(F2C_H_DIR)/f2c.h $(G2C_H_DIR)/g2c.h |
---|
157 | |
---|
158 | check install uninstall install-strip dist installcheck installdirs: |
---|
159 | |
---|
160 | mostlyclean: |
---|
161 | rm -f *.o |
---|
162 | |
---|
163 | clean: mostlyclean |
---|
164 | rm -f config.log ../s-libi77 |
---|
165 | |
---|
166 | distclean: clean |
---|
167 | rm -f config.cache config.status Makefile ../s-libi77 configure |
---|
168 | |
---|
169 | maintainer-clean: |
---|
170 | |
---|
171 | .PHONY: mostlyclean clean distclean maintainer-clean all check uninstall \ |
---|
172 | install-strip dist installcheck installdirs archive |
---|