]>
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 $(ALL_CFLAGS) $(CGFLAGS) $< | |
53 | ||
54 | MISC = F77_aloc.o VersionF.o main.o s_rnge.o abort_.o getarg_.o iargc_.o\ | |
55 | getenv_.o signal_.o s_stop.o s_paus.o system_.o cabs.o\ | |
56 | derf_.o derfc_.o erf_.o erfc_.o sig_die.o exit_.o | |
57 | POW = pow_ci.o pow_dd.o pow_di.o pow_hh.o pow_ii.o pow_ri.o pow_zi.o pow_zz.o \ | |
58 | pow_qq.o | |
59 | CX = c_abs.o c_cos.o c_div.o c_exp.o c_log.o c_sin.o c_sqrt.o | |
60 | DCX = z_abs.o z_cos.o z_div.o z_exp.o z_log.o z_sin.o z_sqrt.o | |
61 | REAL = r_abs.o r_acos.o r_asin.o r_atan.o r_atn2.o r_cnjg.o r_cos.o\ | |
62 | r_cosh.o r_dim.o r_exp.o r_imag.o r_int.o\ | |
63 | r_lg10.o r_log.o r_mod.o r_nint.o r_sign.o\ | |
64 | r_sin.o r_sinh.o r_sqrt.o r_tan.o r_tanh.o | |
65 | DBL = d_abs.o d_acos.o d_asin.o d_atan.o d_atn2.o\ | |
66 | d_cnjg.o d_cos.o d_cosh.o d_dim.o d_exp.o\ | |
67 | d_imag.o d_int.o d_lg10.o d_log.o d_mod.o\ | |
68 | d_nint.o d_prod.o d_sign.o d_sin.o d_sinh.o\ | |
69 | d_sqrt.o d_tan.o d_tanh.o | |
70 | INT = i_abs.o i_dim.o i_dnnt.o i_indx.o i_len.o i_mod.o i_nint.o i_sign.o | |
71 | HALF = h_abs.o h_dim.o h_dnnt.o h_indx.o h_len.o h_mod.o h_nint.o h_sign.o | |
72 | CMP = l_ge.o l_gt.o l_le.o l_lt.o hl_ge.o hl_gt.o hl_le.o hl_lt.o | |
73 | EFL = ef1asc_.o ef1cmc_.o | |
74 | CHAR = s_cat.o s_cmp.o s_copy.o | |
75 | F90BIT = lbitbits.o lbitshft.o qbitbits.o qbitshft.o | |
76 | ||
77 | F2C_H = ../../../include/f2c.h | |
78 | ||
79 | all: $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \ | |
80 | $(HALF) $(CMP) $(EFL) $(CHAR) $(F90BIT) | |
81 | ||
82 | VersionF.o: Version.c | |
83 | $(CC) -c $(CGFLAGS) -o $@ $(srcdir)/Version.c | |
84 | ||
85 | mostlyclean clean: | |
86 | -rm -f *.o | |
87 | ||
88 | distclean maintainer-clean: clean | |
89 | -rm -f stage? include Makefile | |
90 | ||
91 | # Not quite all these actually do depend on f2c.h... | |
92 | $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \ | |
93 | $(HALF) $(CMP) $(EFL) $(CHAR) $(F90BIT): $(F2C_H) | |
94 | ||
95 | .PHONY: mostlyclean clean distclean maintainer-clean all |