]>
Commit | Line | Data |
---|---|---|
5ff904cd JL |
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 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 | SHELL = /bin/sh | |
25 | ||
26 | srcdir = @srcdir@ | |
27 | VPATH = @srcdir@ | |
28 | ||
29 | #### Start of system configuration section. #### | |
30 | ||
31 | # The _FOR_TARGET things are appropriate for a cross-make, passed by the | |
32 | # superior makefile | |
33 | GCC_FOR_TARGET = @CC@ | |
34 | CC = $(GCC_FOR_TARGET) | |
35 | CFLAGS = @CFLAGS@ $(GCC_FLAGS) | |
36 | CPPFLAGS = @CPPFLAGS@ | |
37 | DEFS = @DEFS@ | |
7e9e3823 | 38 | CGFLAGS = #-g0 |
5ff904cd JL |
39 | # f2c.h should already be installed in xgcc's include directory but add that |
40 | # to -I anyhow in case not using xgcc. | |
41 | ALL_CFLAGS = -I. -I$(srcdir) -I../../../include $(CPPFLAGS) $(DEFS) $(CFLAGS) | |
42 | AR = @AR@ | |
43 | AR_FLAGS = rc | |
44 | RANLIB = @RANLIB@ | |
45 | RANLIB_TEST = @RANLIB_TEST@ | |
46 | CROSS = @CROSS@ | |
47 | ||
48 | .SUFFIXES: | |
49 | .SUFFIXES: .c .o | |
50 | ||
51 | .c.o: | |
52 | $(CC) -c -DSkip_f2c_Undefs -DAllow_TYQUAD $(ALL_CFLAGS) $(CGFLAGS) $< | |
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 | ||
60 | F2C_H = ../../../include/f2c.h | |
61 | ||
62 | all: $(OBJ) | |
63 | ||
64 | VersionI.o: Version.c | |
65 | $(CC) -c $(CGFLAGS) -o $@ $(srcdir)/Version.c | |
66 | ||
67 | mostlyclean clean: | |
68 | -rm -f $(OBJ) | |
69 | ||
70 | distclean maintainer-clean: mostlyclean | |
71 | -rm -f stage? include Makefile | |
72 | ||
73 | backspace.o: fio.h | |
74 | close.o: fio.h | |
75 | dfe.o: fio.h | |
76 | dfe.o: fmt.h | |
77 | due.o: fio.h | |
78 | endfile.o: fio.h rawio.h | |
79 | err.o: fio.h rawio.h | |
80 | fmt.o: fio.h | |
81 | fmt.o: fmt.h | |
82 | ftell_.o: fio.h | |
83 | iio.o: fio.h | |
84 | iio.o: fmt.h | |
85 | ilnw.o: fio.h | |
86 | ilnw.o: lio.h | |
87 | inquire.o: fio.h | |
88 | lread.o: fio.h | |
89 | lread.o: fmt.h | |
90 | lread.o: lio.h | |
91 | lread.o: fp.h | |
92 | lwrite.o: fio.h | |
93 | lwrite.o: fmt.h | |
94 | lwrite.o: lio.h | |
95 | open.o: fio.h rawio.h | |
96 | rdfmt.o: fio.h | |
97 | rdfmt.o: fmt.h | |
98 | rdfmt.o: fp.h | |
99 | rewind.o: fio.h | |
100 | rsfe.o: fio.h | |
101 | rsfe.o: fmt.h | |
102 | rsli.o: fio.h | |
103 | rsli.o: lio.h | |
104 | rsne.o: fio.h | |
105 | rsne.o: lio.h | |
106 | sfe.o: fio.h | |
107 | sue.o: fio.h | |
108 | uio.o: fio.h | |
109 | util.o: fio.h | |
110 | wref.o: fio.h | |
111 | wref.o: fmt.h | |
112 | wref.o: fp.h | |
113 | wrtfmt.o: fio.h | |
114 | wrtfmt.o: fmt.h | |
115 | wsfe.o: fio.h | |
116 | wsfe.o: fmt.h | |
117 | wsle.o: fio.h | |
118 | wsle.o: fmt.h | |
119 | wsle.o: lio.h | |
120 | wsne.o: fio.h | |
121 | wsne.o: lio.h | |
122 | xwsne.o: fio.h | |
123 | xwsne.o: lio.h | |
124 | xwsne.o: fmt.h | |
125 | ||
126 | # May be pessimistic: | |
127 | $(OBJ): $(F2C_H) | |
128 | ||
129 | .PHONY: mostlyclean clean distclean maintainer-clean all |