Newsgroups: comp.parallel.mpi
From: Erik Demaine <eddemain@daisy.uwaterloo.ca>
Subject: Re: MPI and makefiles
Organization: University of Waterloo
Date: Fri, 3 Oct 1997 12:57:38 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
Message-ID: <EHH803.28C@undergrad.math.uwaterloo.ca>

Peter Bismuti <bismuti@dirac.scri.fsu.edu> wrote:
: Hi, I'm new to this newsgroup.  I'm just about ready to fire up MPI but
: I'm having trouble with the makefile.  I have a working makefile 
: where all the source code is in one file, but my source code is spread
: out between many files and directories.  [...]

: OBJS =  global_constants.o \
:         complex_definition.o \
:         EQUATION/equation_type.o \
:         MORTAR/mortar_definition.o \
:         MATRIX/matrix_list.o \
: [...]
: 1d : ${OBJS}
: [...]
: f.o:
: 	$(F90) $(F90FLAGS) -c $<

What exactly is the problem with the makefile?  (What's the output?)  This
general rule will not place the .o files in the appropriate location, you'd
need something more like

        cd `dirname $<`; $(F90) $(F90FLAGS) -c `basename $<`

There are probably better ways to do this.

You also define specific rules for what looks like each .o file, so perhaps
this is not your problem.  Posting the output would help a lot.  (But try to
trim it down to the most relevant parts...)

Erik
-- 
Erik Demaine              \(  e-mail: eddemain@daisy.uwaterloo.ca (PGP avail.)
Dept. of Computer Science  \) URL: http://daisy.uwaterloo.ca/~eddemain/
University of Waterloo     (\  "I don't know why; it seems to be harder to lie
Waterloo, ON Canada N2L 3G1 )\  to other people than yourself." -Neil Robertson

