]>
Commit | Line | Data |
---|---|---|
81fea2b1 JL |
1 | # Makefile for GNU F77 compiler runtime. |
2 | # Copyright 1990 - 1994 by AT&T Bell Laboratories and Bellcore (see the | |
3 | # file `Notice'). | |
f30bc2e7 | 4 | # Portions of this file Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc. |
81fea2b1 JL |
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 | ||
f30bc2e7 CB |
24 | #### Start of system configuration section. #### |
25 | ||
26 | # $(srcdir) must be set to the g77 runtime libF77 source directory | |
27 | # (g77/f/runtime/libF77). | |
81fea2b1 JL |
28 | |
29 | srcdir = @srcdir@ | |
30 | VPATH = @srcdir@ | |
31 | ||
f30bc2e7 CB |
32 | # gcc/f/runtime/configure sets this to all the -D options appropriate |
33 | # for the configuration. | |
81fea2b1 | 34 | DEFS = @DEFS@ |
f30bc2e7 CB |
35 | |
36 | #### End of system configuration section. #### | |
37 | ||
38 | # Must be passed in explicitly. Sample values are shown below. | |
39 | #CC = /gcc-build-dir/xgcc -B/gcc-build-dir/ | |
40 | #CFLAGS = -O -g | |
41 | #CPPFLAGS = | |
42 | #F2C_H_DIR = /gcc-source-dir/f/runtime | |
43 | #G2C_H_DIR = /gcc-build-dir/f/runtime | |
44 | #GCC_H_DIR = /gcc-build-dir/include | |
45 | ||
46 | ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) -I$(GCC_H_DIR) $(CPPFLAGS) $(DEFS) $(CFLAGS) | |
81fea2b1 JL |
47 | |
48 | .SUFFIXES: | |
49 | .SUFFIXES: .c .o | |
50 | ||
51 | .c.o: | |
52 | $(CC) -c -DSkip_f2c_Undefs -DAllow_TYQUAD $(ALL_CFLAGS) $< | |
53 | ||
54 | OBJ = VersionI.o backspace.o close.o dfe.o dolio.o due.o endfile.o err.o \ | |
55 | fmt.o fmtlib.o iio.o ilnw.o inquire.o lread.o lwrite.o open.o \ | |
56 | rdfmt.o rewind.o rsfe.o rsli.o rsne.o sfe.o sue.o typesize.o uio.o \ | |
57 | util.o wref.o wrtfmt.o wsfe.o wsle.o wsne.o xwsne.o \ | |
58 | ftell_.o | |
59 | ||
81fea2b1 JL |
60 | all: $(OBJ) |
61 | ||
62 | VersionI.o: Version.c | |
f30bc2e7 | 63 | $(CC) -c $(ALL_CFLAGS) -o $@ $(srcdir)/Version.c |
81fea2b1 JL |
64 | |
65 | backspace.o: fio.h | |
66 | close.o: fio.h | |
67 | dfe.o: fio.h | |
68 | dfe.o: fmt.h | |
69 | due.o: fio.h | |
70 | endfile.o: fio.h rawio.h | |
71 | err.o: fio.h rawio.h | |
72 | fmt.o: fio.h | |
73 | fmt.o: fmt.h | |
74 | ftell_.o: fio.h | |
75 | iio.o: fio.h | |
76 | iio.o: fmt.h | |
77 | ilnw.o: fio.h | |
78 | ilnw.o: lio.h | |
79 | inquire.o: fio.h | |
80 | lread.o: fio.h | |
81 | lread.o: fmt.h | |
82 | lread.o: lio.h | |
83 | lread.o: fp.h | |
84 | lwrite.o: fio.h | |
85 | lwrite.o: fmt.h | |
86 | lwrite.o: lio.h | |
87 | open.o: fio.h rawio.h | |
88 | rdfmt.o: fio.h | |
89 | rdfmt.o: fmt.h | |
90 | rdfmt.o: fp.h | |
91 | rewind.o: fio.h | |
92 | rsfe.o: fio.h | |
93 | rsfe.o: fmt.h | |
94 | rsli.o: fio.h | |
95 | rsli.o: lio.h | |
96 | rsne.o: fio.h | |
97 | rsne.o: lio.h | |
98 | sfe.o: fio.h | |
99 | sue.o: fio.h | |
100 | uio.o: fio.h | |
101 | util.o: fio.h | |
102 | wref.o: fio.h | |
103 | wref.o: fmt.h | |
104 | wref.o: fp.h | |
105 | wrtfmt.o: fio.h | |
106 | wrtfmt.o: fmt.h | |
107 | wsfe.o: fio.h | |
108 | wsfe.o: fmt.h | |
109 | wsle.o: fio.h | |
110 | wsle.o: fmt.h | |
111 | wsle.o: lio.h | |
112 | wsne.o: fio.h | |
113 | wsne.o: lio.h | |
114 | xwsne.o: fio.h | |
115 | xwsne.o: lio.h | |
116 | xwsne.o: fmt.h | |
117 | ||
118 | # May be pessimistic: | |
f30bc2e7 | 119 | $(OBJ): $(F2C_H_DIR)/f2c.h $(G2C_H_DIR)/g2c.h |
81fea2b1 | 120 | |
f30bc2e7 | 121 | .PHONY: all |