From owner-freebsd-hackers Sat Oct 7 14:27:43 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ns1.tetronsoftware.com (ns1.tetronsoftware.com [64.217.1.41]) by hub.freebsd.org (Postfix) with ESMTP id 9D39537B66C for ; Sat, 7 Oct 2000 14:27:40 -0700 (PDT) Received: from ns1.tetronsoftware.com (ns1.tetronsoftware.com [64.217.1.41]) by ns1.tetronsoftware.com (8.11.0/8.9.3) with ESMTP id e97LRZw86919; Sat, 7 Oct 2000 16:27:40 -0500 (CDT) (envelope-from zeus@tetronsoftware.com) Date: Sat, 7 Oct 2000 16:27:35 -0500 (CDT) From: Gene Harris To: freebsd-hackers@FreeBSD.ORG Cc: Steve Kargl , andrew@ugh.net.au Subject: Re: Information on make In-Reply-To: <200010071632.e97GWLY04678@troutmask.apl.washington.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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} > ${F77} -o cnindo ${FFLAGS} ${OBJ$} > > clean: > rm -f ${OBJS} > > .f.o: > ${F77} ${FFLAGS} $< > > -- > Steve > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message