From p.dalgaard@biostat.ku.dk  Tue Jan 20 21:29:27 1998
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 20 Jan 1998 22:29:27 +0100
Subject: .h files
In-Reply-To: Paul Gilbert's message of Tue, 20 Jan 1998 15:38:10 -0500
References: <98Jan20.154626est.13453@mailgate.bank-banque-canada.ca>
Message-ID: <x2d8hmvnpk.fsf@blueberry.kubism.ku.dk>

Paul Gilbert <pgilbert@bank-banque-canada.ca> writes:

> 
> I'm trying to set up R INSTALL for my padi package and the compile needs
>     -I pkg/src-c
> to find some .h files. (Perhaps I should be putting these in a different
> location?)
> 
> Could someone please explain how I should pass this location to the compiler
> used by R INSTALL from the Makefile in my pkg/src?

What goes wrong with putting the include files along with the sources
and using  #include "file.h"  ?


As for sticking extra options into the gcc command line, I suppose
something like CFLAGS+=-I pkg/src-c in the Makefile could do it, but
does it work with all make programs or just GNU make? Or spell out
$(CC) -c $< $(CFLAGS) -I pkg/src-c $(FFLAGS) ...

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


.h files
Peter Dalgaard BSA