From owner-freebsd-bugs Wed Sep 17 02:50:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA03867 for bugs-outgoing; Wed, 17 Sep 1997 02:50:04 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA03857; Wed, 17 Sep 1997 02:50:01 -0700 (PDT) Date: Wed, 17 Sep 1997 02:50:01 -0700 (PDT) Message-Id: <199709170950.CAA03857@hub.freebsd.org> To: freebsd-bugs Cc: From: Bruce Evans Subject: Re: misc/4556: make can't build executable from single Fortran source Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR misc/4556; it has been noted by GNATS. From: Bruce Evans To: FreeBSD-gnats-submit@FreeBSD.ORG, mph@pobox.com Cc: Subject: Re: misc/4556: make can't build executable from single Fortran source Date: Wed, 17 Sep 1997 19:39:37 +1000 >>Description: > >As the legions reported unnecessarily to jkh, some people write Fortran >on FreeBSD. It seems that make knows how to build foo.o from foo.f, but >cannot build foo from foo.f. Contrast this behavior with C code; make can >build a single C source file into a binary. >As far as I can tell, it should work! /usr/share/mk/sys.mk has these >two rules: > >.f: > ${FC} ${FFLAGS} ${LDFLAGS} -o ${.TARGET} ${.IMPSRC} > >[...] > >.f.o: > ${FC} ${FFLAGS} -c ${.IMPSRC} > > >I cannot figure out why the second one works, but the first does not. The first one is hidden inside a %POSIX ifdef. Bruce