From jlindsey@alpha.luc.ac.be  Wed Jun  9 14:18:47 1999
From: jlindsey@alpha.luc.ac.be (Jim Lindsey)
Date: Wed, 9 Jun 1999 15:18:47 +0200 (MET DST)
Subject: packages with FORTRAN code
In-Reply-To: <14174.23554.302077.914375@pc87.maho.magnaeu.com> from "Kurt Hornik" at Jun 9, 99 02:20:18 pm
Message-ID: <199906091318.PAA26169@alpha.luc.ac.be>

> Yes, sure.  You may simply want to include $(R_HOME)/etc/Makeconf which
> has the rule


The following, put in my Makefile, works without the include. (I had
the same without the final $(FLIBS) before.) Will this be OK on other
systems? (The mva and modreg libraries have both the include and the
following rule but without $(FLIBS)???)
  I'm afraid that I don't understand this at all. All of my libraries
have Fortran code. Why pick on growth? When I use $(FLIBS), it just
links f2c into my library whereas it is already linked into R. On my
son's computer with g77, FLIBS is defined, in etc/Makeconf, as a blank
so that nothing occurs for him. (My toms614.c function in my rmutil
library was obtained from f2c. It runs on my son's computer without
f2clib linked in, except for that part of the library built into R.)
  What is the point of all this?

Jim

> 
> $(SHLIB): $(OBJS)
>         $(SHLIBLD) $(SHLIBLDFLAGS) -o $@ $(OBJS) $(FLIBS)
> 
> so you only need to set SHLIB=growth and OBJS to the object files you
> have.
> 
> -k
> 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


packages with FORTRAN code
Jim Lindsey