From help-request at octave dot org Wed Feb 16 05:54:44 2005 Subject: MPITB Makefile for Debian From: Michael Creel To: Javier Fernandez Baldomero , help@octave.org Date: Wed, 16 Feb 2005 12:55:48 +0100 --Boundary_(ID_A+YjxCI4eC0L37CuvoT9Og) Content-type: text/plain; charset=us-ascii Content-disposition: inline Attached is a makefile for MPITB for Octave. This will build MPITB on Debian unstable with current Octave (2.1.64) and LAM/MPI (7.1.1). Is has been tested with the examples on the ParallelKnoppix CD, and works fine with with those. Thanks to Thomas Weber for resolving the "missing symbols" issue. Cheers, Michael --Boundary_(ID_A+YjxCI4eC0L37CuvoT9Og) Content-type: text/x-makefile; name=Makefile.Debian.env; charset=us-ascii Content-disposition: attachment; filename=Makefile.Debian.env Content-transfer-encoding: 7BIT # Makefile for MPITB on Debian unstable # link Makefile.env to this file, then just do a make # # Required packages # octave2.1-headers # lam4-dev # Original Makefile.env by Javier Fernandez . # Modifications for Debian unstable by Michael Creel # and Thomas Weber 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-3 \ -lreadline -lncurses -ldl -lm \ -lfrtbegin -lg2c -lgcc_s OCTLDFLAGS = -shared DEBUGFLAGS = -g OPTIMFLAGS = -O2 DLDSFX = oct MPICPPFLAGS = -I/usr/include/lam MPICFLAGS = -pthread # MPICLIBS seems to be necessary to avoid missing symbol errors # Both of the following work, whether or not mpich is installed, and # in spite of the fact that they make reference to files and/or # directories that may not exist. # MPICLIBS = -L/usr/lib/mpich/lib/shared -llam -lutil -lmpich -lmpi++ MPICLIBS = -L/usr/include/lam -llam -lmpi++ -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_A+YjxCI4eC0L37CuvoT9Og)-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------