# 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)