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-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 libF77 source directory.
30 # configure sets this to all the -D options appropriate for the
34 F2C_H_DIR
= @
srcdir@
/..
46 #### End of system configuration section. ####
48 ALL_CFLAGS
= -I.
-I
$(srcdir) -I
$(G2C_H_DIR
) -I
$(F2C_H_DIR
) $(CPPFLAGS
) $(DEFS
) $(CFLAGS
)
54 @LIBTOOL@
--mode
=compile
$(CC
) -c
-DSkip_f2c_Undefs
$(ALL_CFLAGS
) $<
56 MISC
= F77_aloc.lo VersionF.lo s_rnge.lo abort_.lo getarg_.lo iargc_.lo\
57 getenv_.lo signal_.lo s_stop.lo s_paus.lo system_.lo cabs.lo\
58 derf_.lo derfc_.lo erf_.lo erfc_.lo sig_die.lo exit_.lo setarg.lo setsig.lo
59 POW
= pow_ci.lo pow_dd.lo pow_di.lo pow_hh.lo pow_ii.lo pow_ri.lo pow_zi.lo pow_zz.lo \
61 CX
= c_abs.lo c_cos.lo c_div.lo c_exp.lo c_log.lo c_sin.lo c_sqrt.lo
62 DCX
= z_abs.lo z_cos.lo z_div.lo z_exp.lo z_log.lo z_sin.lo z_sqrt.lo
63 REAL
= r_abs.lo r_acos.lo r_asin.lo r_atan.lo r_atn2.lo r_cnjg.lo r_cos.lo\
64 r_cosh.lo r_dim.lo r_exp.lo r_imag.lo r_int.lo\
65 r_lg10.lo r_log.lo r_mod.lo r_nint.lo r_sign.lo\
66 r_sin.lo r_sinh.lo r_sqrt.lo r_tan.lo r_tanh.lo
67 DBL
= d_abs.lo d_acos.lo d_asin.lo d_atan.lo d_atn2.lo\
68 d_cnjg.lo d_cos.lo d_cosh.lo d_dim.lo d_exp.lo\
69 d_imag.lo d_int.lo d_lg10.lo d_log.lo d_mod.lo\
70 d_nint.lo d_prod.lo d_sign.lo d_sin.lo d_sinh.lo\
71 d_sqrt.lo d_tan.lo d_tanh.lo
72 INT
= i_abs.lo i_dim.lo i_dnnt.lo i_indx.lo i_len.lo i_mod.lo i_nint.lo i_sign.lo
73 HALF
= h_abs.lo h_dim.lo h_dnnt.lo h_indx.lo h_len.lo h_mod.lo h_nint.lo h_sign.lo
74 CMP
= l_ge.lo l_gt.lo l_le.lo l_lt.lo hl_ge.lo hl_gt.lo hl_le.lo hl_lt.lo
75 EFL
= ef1asc_.lo ef1cmc_.lo
76 CHAR
= s_cat.lo s_cmp.lo s_copy.lo
77 F90BIT
= lbitbits.lo lbitshft.lo qbitbits.lo qbitshft.lo
79 OBJS
= $(MISC
) $(POW
) $(CX
) $(DCX
) $(REAL
) $(DBL
) $(INT
) \
80 $(HALF
) $(CMP
) $(EFL
) $(CHAR
) $(F90BIT
)
82 all: ..
/s-libf77 ..
/libfrtbegin.a
86 objs
='$(OBJS)'; for name in
$$objs; do \
87 echo libF77
/$${name} >> $@.T
; done
90 Makefile
: Makefile.in config.status
91 $(SHELL
) config.status
93 config.status
: configure
95 CONFIG_SITE
=no-such-file CC
='$(CC)' AR
='$(AR)' CFLAGS
='$(CFLAGS)' \
96 CPPFLAGS
='$(CPPFLAGS)' $(SHELL
) config.status
--recheck
98 ${srcdir}/configure
: configure.in
100 cd
${srcdir} && autoconf
102 VersionF.lo
: Version.c
103 @LIBTOOL@
--mode
=compile
$(CC
) -c
$(ALL_CFLAGS
) $(srcdir)/Version.c
-o
$@
106 $(CC
) -c
$(ALL_CFLAGS
) $(srcdir)/main.c
-o
$@
108 ..
/libfrtbegin.a
: frtbegin.o
110 $(AR
) $(ARFLAGS
) $@ frtbegin.o
113 F77_aloc.lo
: F77_aloc.c
116 getarg_.lo
: getarg_.c
118 getenv_.lo
: getenv_.c
119 signal_.lo
: signal_.c
122 system_.lo
: system_.c
128 sig_die.lo
: sig_die.c
153 @LIBTOOL@
--mode
=compile
$(CC
) -c
-DSkip_f2c_Undefs
$(ALL_CFLAGS
) -ffloat-store
$(srcdir)/z_log.c
225 ef1asc_.lo
: ef1asc_.c
226 ef1cmc_.lo
: ef1cmc_.c
230 lbitbits.lo
: lbitbits.c
231 lbitshft.lo
: lbitshft.c
232 qbitbits.lo
: qbitbits.c
233 qbitshft.lo
: qbitshft.c
235 # Not quite all these actually do depend on f2c.h...
236 $(MISC
) $(POW
) $(CX
) $(DCX
) $(REAL
) $(DBL
) $(INT
) $(HALF
) $(CMP
) $(EFL
) \
237 $(CHAR
) $(F90BIT
): $(F2C_H_DIR
)/f2c.h
$(G2C_H_DIR
)/g2c.h
239 check install uninstall install-strip
dist installcheck installdirs:
242 rm -f
*.o
*.lo ..
/libfrtbegin.a
250 rm -f config.cache config.status Makefile ..
/s-libf77 configure
254 .PHONY
: mostlyclean clean distclean maintainer-clean
all check uninstall \
255 install-strip
dist installcheck installdirs archive