Skip to content
Prev 25805 / 63421 Next

Makefile for embedding OpenBUGS in R package

On Mon, 6 Aug 2007, Tobias Verbeke wrote:

            
same as

http://mathstat.helsinki.fi/openbugs/data/Docu/CBugs.html

I presume.
Why do you want to install CBugs.c?
What does 'does not work' mean?  It's hard to know whether this is just 
not doing what you wanted, or something else is wrong.
I think you need to make ../inst/OpenBUGS/bugs, not src/bugs.  So 
something like

all: ../inst/OpenBUGS/bugs

../inst/OpenBUGS/bugs: ../inst/OpenBUGS/CBugs.c
 	gcc -m32 -o ../inst/OpenBUGS/bugs ../inst/OpenBUGS/CBugs.c -ldl

However, -m32 builds a 32-bit executable on 64-bit linux.  Is that what you 
wanted?