Problems making fortran libraries


mitchelltroy
03-13-2002, 11:18 AM
I seem to be having trouble making the fortran libraries. I have edited the makefile and tried it on two different systems, but seem to get the same error (see below, the system is a PC running Red-hat 7.2).

Can someone please help,
Thanks,
Mitch

make -f Makefile.galaxy
/bin/rm -f make_list
cp /dev/null make_list
if /usr/bin/test -d ../recipes_f; then \
echo '../recipes_f' >> make_list; fi
if /usr/bin/test -d ../recipes_c-ansi; then \
echo '../recipes_c-ansi' >> make_list; fi
if /usr/bin/test -d ../recipes_c-kr; then \
echo '../recipes_c-kr' >> make_list; fi
echo Making Numerical Recipes
Making Numerical Recipes
for distrib in `cat make_list`; do \
for library in $distrib/recipes; do \
(cd $library && /usr/bin/make all "LIBDIR = /usr/local/lib" "FC = f77" "CCKR = cc" "CCANSI = gcc" "FFLAGS = " "CFLAGSANSI = -I../include" "CFLAGSKR = -I../include" "FBIN = ../bin" "CBIN = ../bin" "FLIB = librecipes_f.a" "CANSILIB = librecipes_c.a" "CKRLIB = librecipes_ckr.a" "RANLIB = /usr/bin/ar -ts" "AR = /usr/bin/ar" "ARFLAGS = crv" "SHELL = /bin/sh"); done; done
make[1]: Entering directory `/home/users/mtroy/programing/recipes_f/recipes'
make[1]: *** No rule to make target `addint.o', needed by `librecipes_f.a'. Stop.
make[1]: Leaving directory `/home/users/mtroy/programing/recipes_f/recipes'
make: *** [libs] Error 2

mitchelltroy
03-13-2002, 08:05 PM
Sorry to have bothered people figured out the mistake.
I was/am making a library out of the NR routines that we had been using individiualy. I unfortnatley did not realize that someone had renamed all the *.f files *.for!

Mitch

Bill Press
03-13-2002, 10:07 PM
Glad you found the problem, but thanks anyway for your post -- might help someone else who encounters the same difficulty!