mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-16 19:39:52 +08:00
bbf0fcca54
* Makefile.in (WARN_CFLAGS): New. (FLAGS_TO_PASS): Add WARN_CFLAGS. * libF77/Makefile.in (ALL_CFLAGS): Likewise. * libI77/Makefile.in (ALL_CFLAGS): Likewise. * libU77/Makefile.in (ALL_CFLAGS): Likewise. From-SVN: r54083
256 lines
6.6 KiB
Makefile
256 lines
6.6 KiB
Makefile
# Makefile for GNU F77 compiler runtime.
|
|
# Copyright 1990 - 1994 by AT&T Bell Laboratories and Bellcore (see the
|
|
# file `Notice').
|
|
# Portions of this file Copyright (C) 1995-1998, 2001 Free Software Foundation, Inc.
|
|
# Contributed by Dave Love (d.love@dl.ac.uk).
|
|
#
|
|
#This file is part of GNU Fortran.
|
|
#
|
|
#GNU Fortran is free software; you can redistribute it and/or modify
|
|
#it under the terms of the GNU General Public License as published by
|
|
#the Free Software Foundation; either version 2, or (at your option)
|
|
#any later version.
|
|
#
|
|
#GNU Fortran is distributed in the hope that it will be useful,
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
#GNU General Public License for more details.
|
|
#
|
|
#You should have received a copy of the GNU General Public License
|
|
#along with GNU Fortran; see the file COPYING. If not, write to
|
|
#the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|
#02111-1307, USA.
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
# $(srcdir) must be set to the g77 runtime libF77 source directory.
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
# configure sets this to all the -D options appropriate for the
|
|
# configuration.
|
|
DEFS = @DEFS@
|
|
|
|
F2C_H_DIR = @srcdir@/..
|
|
G2C_H_DIR = ..
|
|
CC = @CC@
|
|
CFLAGS = @CFLAGS@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
AR = @AR@
|
|
ARFLAGS = rc
|
|
RANLIB = @RANLIB@
|
|
@SET_MAKE@
|
|
|
|
SHELL = @SHELL@
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) $(CPPFLAGS) $(DEFS) $(WARN_CFLAGS) $(CFLAGS)
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .c .lo
|
|
|
|
.c.lo:
|
|
@LIBTOOL@ --mode=compile $(CC) -c -DSkip_f2c_Undefs $(ALL_CFLAGS) $<
|
|
|
|
MISC = F77_aloc.lo VersionF.lo s_rnge.lo abort_.lo getarg_.lo iargc_.lo\
|
|
getenv_.lo signal_.lo s_stop.lo s_paus.lo system_.lo cabs.lo\
|
|
derf_.lo derfc_.lo erf_.lo erfc_.lo sig_die.lo exit_.lo setarg.lo setsig.lo
|
|
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 \
|
|
pow_qq.lo
|
|
CX = c_abs.lo c_cos.lo c_div.lo c_exp.lo c_log.lo c_sin.lo c_sqrt.lo
|
|
DCX = z_abs.lo z_cos.lo z_div.lo z_exp.lo z_log.lo z_sin.lo z_sqrt.lo
|
|
REAL = r_abs.lo r_acos.lo r_asin.lo r_atan.lo r_atn2.lo r_cnjg.lo r_cos.lo\
|
|
r_cosh.lo r_dim.lo r_exp.lo r_imag.lo r_int.lo\
|
|
r_lg10.lo r_log.lo r_mod.lo r_nint.lo r_sign.lo\
|
|
r_sin.lo r_sinh.lo r_sqrt.lo r_tan.lo r_tanh.lo
|
|
DBL = d_abs.lo d_acos.lo d_asin.lo d_atan.lo d_atn2.lo\
|
|
d_cnjg.lo d_cos.lo d_cosh.lo d_dim.lo d_exp.lo\
|
|
d_imag.lo d_int.lo d_lg10.lo d_log.lo d_mod.lo\
|
|
d_nint.lo d_prod.lo d_sign.lo d_sin.lo d_sinh.lo\
|
|
d_sqrt.lo d_tan.lo d_tanh.lo
|
|
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
|
|
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
|
|
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
|
|
EFL = ef1asc_.lo ef1cmc_.lo
|
|
CHAR = s_cat.lo s_cmp.lo s_copy.lo
|
|
F90BIT = lbitbits.lo lbitshft.lo qbitbits.lo qbitshft.lo
|
|
|
|
OBJS = $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \
|
|
$(HALF) $(CMP) $(EFL) $(CHAR) $(F90BIT)
|
|
|
|
all: ../s-libf77 ../libfrtbegin.a
|
|
|
|
../s-libf77: $(OBJS)
|
|
-rm -f $@.T $@
|
|
objs='$(OBJS)'; for name in $$objs; do \
|
|
echo libF77/$${name} >> $@.T; done
|
|
mv $@.T $@
|
|
|
|
Makefile: Makefile.in config.status
|
|
$(SHELL) config.status
|
|
|
|
config.status: configure
|
|
rm -f config.cache
|
|
CONFIG_SITE=no-such-file CC='$(CC)' AR='$(AR)' CFLAGS='$(CFLAGS)' \
|
|
CPPFLAGS='$(CPPFLAGS)' $(SHELL) config.status --recheck
|
|
|
|
${srcdir}/configure: configure.in
|
|
rm -f config.cache
|
|
cd ${srcdir} && autoconf
|
|
|
|
VersionF.lo: Version.c
|
|
@LIBTOOL@ --mode=compile $(CC) -c $(ALL_CFLAGS) $(srcdir)/Version.c -o $@
|
|
|
|
frtbegin.o : main.c
|
|
$(CC) -c $(ALL_CFLAGS) $(srcdir)/main.c -o $@
|
|
|
|
../libfrtbegin.a: frtbegin.o
|
|
-rm -f $@
|
|
$(AR) $(ARFLAGS) $@ frtbegin.o
|
|
$(RANLIB) $@
|
|
|
|
F77_aloc.lo: F77_aloc.c
|
|
s_rnge.lo: s_rnge.c
|
|
abort_.lo: abort_.c
|
|
getarg_.lo: getarg_.c
|
|
iargc_.lo: iargc_.c
|
|
getenv_.lo: getenv_.c
|
|
signal_.lo: signal_.c
|
|
s_stop.lo: s_stop.c
|
|
s_paus.lo: s_paus.c
|
|
system_.lo: system_.c
|
|
cabs.lo: cabs.c
|
|
derf_.lo: derf_.c
|
|
derfc_.lo: derfc_.c
|
|
erf_.lo: erf_.c
|
|
erfc_.lo: erfc_.c
|
|
sig_die.lo: sig_die.c
|
|
exit_.lo: exit_.c
|
|
setarg.lo: setarg.c
|
|
setsig.lo: setsig.c
|
|
pow_ci.lo: pow_ci.c
|
|
pow_dd.lo: pow_dd.c
|
|
pow_di.lo: pow_di.c
|
|
pow_hh.lo: pow_hh.c
|
|
pow_ii.lo: pow_ii.c
|
|
pow_ri.lo: pow_ri.c
|
|
pow_zi.lo: pow_zi.c
|
|
pow_zz.lo: pow_zz.c
|
|
pow_qq.lo: pow_qq.c
|
|
c_abs.lo: c_abs.c
|
|
c_cos.lo: c_cos.c
|
|
c_div.lo: c_div.c
|
|
c_exp.lo: c_exp.c
|
|
c_log.lo: c_log.c
|
|
c_sin.lo: c_sin.c
|
|
c_sqrt.lo: c_sqrt.c
|
|
z_abs.lo: z_abs.c
|
|
z_cos.lo: z_cos.c
|
|
z_div.lo: z_div.c
|
|
z_exp.lo: z_exp.c
|
|
z_log.lo: z_log.c
|
|
@LIBTOOL@ --mode=compile $(CC) -c -DSkip_f2c_Undefs $(ALL_CFLAGS) -ffloat-store $(srcdir)/z_log.c
|
|
z_sin.lo: z_sin.c
|
|
z_sqrt.lo: z_sqrt.c
|
|
r_abs.lo: r_abs.c
|
|
r_acos.lo: r_acos.c
|
|
r_asin.lo: r_asin.c
|
|
r_atan.lo: r_atan.c
|
|
r_atn2.lo: r_atn2.c
|
|
r_cnjg.lo: r_cnjg.c
|
|
r_cos.lo: r_cos.c
|
|
r_cosh.lo: r_cosh.c
|
|
r_dim.lo: r_dim.c
|
|
r_exp.lo: r_exp.c
|
|
r_imag.lo: r_imag.c
|
|
r_int.lo: r_int.c
|
|
r_lg10.lo: r_lg10.c
|
|
r_log.lo: r_log.c
|
|
r_mod.lo: r_mod.c
|
|
r_nint.lo: r_nint.c
|
|
r_sign.lo: r_sign.c
|
|
r_sin.lo: r_sin.c
|
|
r_sinh.lo: r_sinh.c
|
|
r_sqrt.lo: r_sqrt.c
|
|
r_tan.lo: r_tan.c
|
|
r_tanh.lo: r_tanh.c
|
|
d_abs.lo: d_abs.c
|
|
d_acos.lo: d_acos.c
|
|
d_asin.lo: d_asin.c
|
|
d_atan.lo: d_atan.c
|
|
d_atn2.lo: d_atn2.c
|
|
d_cnjg.lo: d_cnjg.c
|
|
d_cos.lo: d_cos.c
|
|
d_cosh.lo: d_cosh.c
|
|
d_dim.lo: d_dim.c
|
|
d_exp.lo: d_exp.c
|
|
d_imag.lo: d_imag.c
|
|
d_int.lo: d_int.c
|
|
d_lg10.lo: d_lg10.c
|
|
d_log.lo: d_log.c
|
|
d_mod.lo: d_mod.c
|
|
d_nint.lo: d_nint.c
|
|
d_prod.lo: d_prod.c
|
|
d_sign.lo: d_sign.c
|
|
d_sin.lo: d_sin.c
|
|
d_sinh.lo: d_sinh.c
|
|
d_sqrt.lo: d_sqrt.c
|
|
d_tan.lo: d_tan.c
|
|
d_tanh.lo: d_tanh.c
|
|
i_abs.lo: i_abs.c
|
|
i_dim.lo: i_dim.c
|
|
i_dnnt.lo: i_dnnt.c
|
|
i_indx.lo: i_indx.c
|
|
i_len.lo: i_len.c
|
|
i_mod.lo: i_mod.c
|
|
i_nint.lo: i_nint.c
|
|
i_sign.lo: i_sign.c
|
|
h_abs.lo: h_abs.c
|
|
h_dim.lo: h_dim.c
|
|
h_dnnt.lo: h_dnnt.c
|
|
h_indx.lo: h_indx.c
|
|
h_len.lo: h_len.c
|
|
h_mod.lo: h_mod.c
|
|
h_nint.lo: h_nint.c
|
|
h_sign.lo: h_sign.c
|
|
l_ge.lo: l_ge.c
|
|
l_gt.lo: l_gt.c
|
|
l_le.lo: l_le.c
|
|
l_lt.lo: l_lt.c
|
|
hl_ge.lo: hl_ge.c
|
|
hl_gt.lo: hl_gt.c
|
|
hl_le.lo: hl_le.c
|
|
hl_lt.lo: hl_lt.c
|
|
ef1asc_.lo: ef1asc_.c
|
|
ef1cmc_.lo: ef1cmc_.c
|
|
s_cat.lo: s_cat.c
|
|
s_cmp.lo: s_cmp.c
|
|
s_copy.lo: s_copy.c
|
|
lbitbits.lo: lbitbits.c
|
|
lbitshft.lo: lbitshft.c
|
|
qbitbits.lo: qbitbits.c
|
|
qbitshft.lo: qbitshft.c
|
|
|
|
# Not quite all these actually do depend on f2c.h...
|
|
$(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) $(HALF) $(CMP) $(EFL) \
|
|
$(CHAR) $(F90BIT): $(F2C_H_DIR)/f2c.h $(G2C_H_DIR)/g2c.h
|
|
|
|
check install uninstall install-strip dist installcheck installdirs:
|
|
|
|
mostlyclean:
|
|
rm -f *.o *.lo ../libfrtbegin.a
|
|
rm -rf .libs
|
|
|
|
clean: mostlyclean
|
|
rm -f config.log
|
|
rm -f ../s-libf77
|
|
|
|
distclean: clean
|
|
rm -f config.cache config.status Makefile ../s-libf77 configure
|
|
|
|
maintainer-clean:
|
|
|
|
.PHONY: mostlyclean clean distclean maintainer-clean all check uninstall \
|
|
install-strip dist installcheck installdirs archive
|