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 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@/..
43 #### End of system configuration section. ####
45 ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) $(CPPFLAGS) $(DEFS) $(CFLAGS)
51 @LIBTOOL@ --mode=compile $(CC) -c -DSkip_f2c_Undefs $(ALL_CFLAGS) $<
53 MISC = F77_aloc.o VersionF.o s_rnge.o abort_.o getarg_.o iargc_.o\
54 getenv_.o signal_.o s_stop.o s_paus.o system_.o cabs.o\
55 derf_.o derfc_.o erf_.o erfc_.o sig_die.o exit_.o setarg.o setsig.o
56 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 CX = c_abs.o c_cos.o c_div.o c_exp.o c_log.o c_sin.o c_sqrt.o
59 DCX = z_abs.o z_cos.o z_div.o z_exp.o z_log.o z_sin.o z_sqrt.o
60 REAL = r_abs.o r_acos.o r_asin.o r_atan.o r_atn2.o r_cnjg.o r_cos.o\
61 r_cosh.o r_dim.o r_exp.o r_imag.o r_int.o\
62 r_lg10.o r_log.o r_mod.o r_nint.o r_sign.o\
63 r_sin.o r_sinh.o r_sqrt.o r_tan.o r_tanh.o
64 DBL = d_abs.o d_acos.o d_asin.o d_atan.o d_atn2.o\
65 d_cnjg.o d_cos.o d_cosh.o d_dim.o d_exp.o\
66 d_imag.o d_int.o d_lg10.o d_log.o d_mod.o\
67 d_nint.o d_prod.o d_sign.o d_sin.o d_sinh.o\
68 d_sqrt.o d_tan.o d_tanh.o
69 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
70 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
71 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
72 EFL = ef1asc_.o ef1cmc_.o
73 CHAR = s_cat.o s_cmp.o s_copy.o
74 F90BIT = lbitbits.o lbitshft.o qbitbits.o qbitshft.o
76 OBJS = $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \
77 $(HALF) $(CMP) $(EFL) $(CHAR) $(F90BIT)
79 all: ../s-libf77 ../frtbegin.o
82 echo timestamp > ../s-libf77
85 objs="`cat ../objlist`" ; for i in $(OBJS) ; do \
86 x=`echo $$i | sed -e "s/\.o$$/.lo/g"` ;\
87 objs="$$objs libF77/$$x" ;\
89 echo -n $$objs > ../objlist
91 Makefile: Makefile.in config.status
92 $(SHELL) config.status
94 config.status: configure
96 CONFIG_SITE=no-such-file CC='$(CC)' CFLAGS='$(CFLAGS)' \
97 CPPFLAGS='$(CPPFLAGS)' $(SHELL) config.status --recheck
99 ${srcdir}/configure: configure.in
101 cd ${srcdir} && autoconf
103 VersionF.o: Version.c
104 @LIBTOOL@ --mode=compile $(CC) -c $(ALL_CFLAGS) $(srcdir)/Version.c -o $@
106 ../frtbegin.o : main.c
107 $(CC) -c $(ALL_CFLAGS) $(srcdir)/main.c -o $@
109 F77_aloc.o: F77_aloc.c
225 lbitbits.o: lbitbits.c
226 lbitshft.o: lbitshft.c
227 qbitbits.o: qbitbits.c
228 qbitshft.o: qbitshft.c
230 # Not quite all these actually do depend on f2c.h...
231 $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) $(HALF) $(CMP) $(EFL) \
232 $(CHAR) $(F90BIT): $(F2C_H_DIR)/f2c.h $(G2C_H_DIR)/g2c.h
234 check install uninstall install-strip dist installcheck installdirs:
237 rm -f *.o *.lo ../frtbegin.o
245 rm -f config.cache config.status Makefile ../s-libf77 configure
249 .PHONY: mostlyclean clean distclean maintainer-clean all check uninstall \
250 install-strip dist installcheck installdirs archive