# 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 Free Software Foundation, Inc.
+# 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.
CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
+AR = @AR@
+ARFLAGS = rc
+RANLIB = @RANLIB@
@SET_MAKE@
-SHELL = /bin/sh
+SHELL = @SHELL@
#### End of system configuration section. ####
-ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) $(CPPFLAGS) $(DEFS) $(CFLAGS)
+ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) $(CPPFLAGS) $(DEFS) $(WARN_CFLAGS) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .lo
OBJS = $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \
$(HALF) $(CMP) $(EFL) $(CHAR) $(F90BIT)
-all: ../s-libf77 ../frtbegin.o
+all: ../s-libf77 ../libfrtbegin.a
../s-libf77: $(OBJS)
- echo timestamp > ../s-libf77
-
-objlist:
- objs="`cat ../objlist`" ; for i in $(OBJS) ; do \
- x=`echo $$i` ;\
- objs="$$objs libF77/$$x" ;\
- done ; \
- echo -n $$objs > ../objlist
+ -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)' CFLAGS='$(CFLAGS)' \
+ CONFIG_SITE=no-such-file CC='$(CC)' AR='$(AR)' CFLAGS='$(CFLAGS)' \
CPPFLAGS='$(CPPFLAGS)' $(SHELL) config.status --recheck
${srcdir}/configure: configure.in
VersionF.lo: Version.c
@LIBTOOL@ --mode=compile $(CC) -c $(ALL_CFLAGS) $(srcdir)/Version.c -o $@
-../frtbegin.o : main.c
+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
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
check install uninstall install-strip dist installcheck installdirs:
mostlyclean:
- rm -f *.o *.lo ../frtbegin.o
+ rm -f *.o *.lo ../libfrtbegin.a
rm -rf .libs
clean: mostlyclean