Thanks so much Steve and Andrew and all the others that responded. Andrew's
reference to the docs and Steve's example were just the ticket I needed. I
have had more fun getting started with this again after 30 years. It's nice
to have access to a good quality FORTRAN compiler without having to sell my
house and car. My hat is off to the FreeBSD folks and the GNU compiler folks!
Thanks,
Gene Harris
On Sat, 7 Oct 2000, Steve Kargl wrote:
> Gene Harris wrote:
> > I wonder if someone could direct me to some readings on "make"? I have dusted
> > off an ancient FORTRAN program from graduate school (circa 1968). It consists
> > of seven modules and all I want to do is create a make file to compile and
> > link this program. I can successfully compile and link the program manually,
> > but make file syntax escapes me.
> >
> > I have tried the following, but it goes down in flames:
> >
> > =======================
> > cnindo: coord.o ss.o huckl.o iter.o eign.o matout.o perturb.o
> >
> > *.f: *.o
> > =======================
> >
> > While I realize this could be done by an experienced person quite easily, I'd
> > rather go learn what I should be doing.
> >
> > Many Thanks,
> > Gene
> >
> >
>
> #
> # Replace <tab> with an actual tab character.
> #
> F77=f77
> FFLAGS=-O
> OBJS=coord.o ss.o huckl.o iter.o eign.o matout.o perturb.o
>
> all: cnindo
>
> cnindo: ${OBJS}
> <tab>${F77} -o cnindo ${FFLAGS} ${OBJ$}
>
> clean:
> <tab>rm -f ${OBJS}
>
> .f.o:
> <tab>${F77} ${FFLAGS} $<
>
> --
> Steve
>
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message