MPITB Makefile.env for Debian Linux

Michael Creel <[email protected]> Thu, 16 Sep 2004 10:28:52 +0200
Newsgroups gmane.comp.gnu.octave.sources
Organization UAB
Message-ID <[email protected]>
--Boundary_(ID_cMc5STzUUVVehPEA/eWbbA)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline

Hi Javier and list,

For those on the list that may not be aware of it, MPITB 
(http://atc.ugr.es/javier-bin/mpitb) is an MPI toolbox for Octave that can 
actually be used to do productive work. I expect to be able to give some 
user-friendly examples of this in the next few months. In the mean time, for 
users of the One True Linux Distribution who are not afraid of a 
near-vertical learning curve, the attached file will let you compile the 
MPITB source assuming that you have installed Octave and LAM-MPI using .debs 
from unstable. This works for the current versions (Octave 2.1.58 and lam-mpi 
7.0.6). To use it, just make the Makefile.env link (in mpitb/src) point to 
this file.

Cheers, Michael

--Boundary_(ID_cMc5STzUUVVehPEA/eWbbA)
Content-type: text/x-makefile; name=Makefile.Debian.env; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=Makefile.Debian.env

# Generic Makefile for Debian, when Octave and LAM-MPI
# are installed using .debs for unstable (sid)
# Works for Octave 2.1.58 and LAM-MPI 7.0.6
# please send improvements or modifications for
# later versions to [email protected]

CC = gcc
CP = cp
MV = mv

OCTCPPFLAGS =   -I/usr/include/octave/octave -I/usr/include/octave
OCTCFLAGS   = -fPIC -mieee-fp
WHEREARELIBS     := $(shell octave-config -p OCTLIBDIR)
OCTCLIBS    = -L/$(WHEREARELIBS) \
		-loctinterp -loctave -lcruft -llapack -lblas \
		-lreadline -lncurses -ldl -lm \
		-lfrtbegin -lg2c -lgcc_s
OCTLDFLAGS  = -shared 

DEBUGFLAGS  = -g 
OPTIMFLAGS  = -O2
DLDSFX      = oct


MPICPPFLAGS = -I/usr/include/lam
MPICFLAGS   = -pthread
#MPICFLAGS   =
MPICLIBS    = -L/usr/include/lam/lib -lmpi -llam -lutil
MPILDFLAGS  = -pthread

CPPFLAGS = $(OCTCPPFLAGS) $(MPICPPFLAGS)
CFLAGS   = $(OCTCFLAGS)   $(MPICFLAGS)   $(OPTIMFLAGS) -Wall
#CFLAGS  = $(OCTCFLAGS)   $(MPICFLAGS)   $(DEBUGFLAGS) -Wall

CLIBS    = $(OCTCLIBS)    $(MPICLIBS)
LDFLAGS  = $(OCTLDFLAGS) $(MPILDFLAGS)
LDLIBS   = $(CLIBS)

--Boundary_(ID_cMc5STzUUVVehPEA/eWbbA)--