Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 1997 02:50:01 -0700 (PDT)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs
Subject:   Re: misc/4556: make can't build executable from single Fortran source
Message-ID:  <199709170950.CAA03857@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/4556; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709170950.CAA03857>