Makefiles in contributed packages
Prof Brian Ripley
ripley@stats.ox.ac.uk
Tue, 22 Dec 1998 09:42:10 +0000 (GMT)
On Thu, 3 Dec 1998, U-E59264-Osman F Buyukisik wrote:
> Hello,
> I have a couple of suggestions that will help persons with
> machines/OSs that use extensions other than ".so" for shared libs:
>
> 1) Use the variable SHLIBEXT (defined in Makeconf), DONT use "so" or "sl".
> 2) Use the method in "modreg" to load the dynamic lib:
> .First.lib <- function(lib, pkg) library.dynam("modreg", pkg, lib)
> DO NOT USE
> library.dynam("eda.so")
>
>
> Now, I have to edit every package Makefile and zzz.R files for
> hpux10.20 installs.
My experience (doing this for Windows, where it is .dll) suggests
-- in all cases bar funfits I can just delete the Makefile
-- R INSTALL has a line
cat `ls ${dir}/*.[RSqrs]` > ${lib}/${pkg}/R/${pkg}
Add an sed command there to change ${lib}.so to ${lib}.sl (or whatever).
[That is not really what is done under Windows, but is effectively what
Guido's Makefile does.]
Package funfits is a bit harder: I just deleted all the unused (with S/R)
source code, keeping the list in OBJS.
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._