itaps-parallel Makefiles in tutorial exercises
Tim Tautges
tautges at mcs.anl.gov
Thu Nov 13 12:45:14 CST 2008
Lori A. Diachin wrote:
> While you're making last minute changes to your exercises, I'd like to
> advocate that if you haven't already done so you use the iMesh-Defs.inc
> file that is now available in /usr/local/itaps/FMDB_iMeshP/lib. This
> is consistent with the process we would like to encourage folks to use
> in their makefiles, so our examples should use it as well. The
> variables are defined below. I thought that we had only defined
> IMESH_INCLUDES, IMESH_LIBS, etc... is there a potential problem with
> possible conflicts in the FLAGS definitions?
>
Possibly there are conflicts, but that's why they're named
IMESH_CXXFLAGS instead of CXXFLAGS. Same with the _LIBS and _INCLUDES
variables.
Also, regarding IMESH_LIBS, keep in mind that although you compile your
implementation with a C++ compiler, the application may not be. It's a
relatively easy thing to get the libraries being linked automatically by
the C++ command, and add those to the link line. That way the
application doesn't have to write a custom C++ main to start using the
itaps interfaces.
- tim
>
> here's the iMesh-Defs.inc file from FMDB
>
> IMESH_CXXFLAGS = -g -O2
> IMESH_CFLAGS = -g -O2
> IMESH_LDFLAGS =
> IMESH_CXX_LDFLAGS =
> IMESH_CXX_LIBS =
>
> IMESH_INCLUDES = -I$(IMESH_INCLUDEDIR)/include/FMDB
> -I$(IMESH_INCLUDEDIR)/include/SCORECModel
> -I$(IMESH_INCLUDEDIR)/include/SCORECUtil
>
> IMESH_LIBS = -L$(FMDB_IMESH_LIBDIR) -lFMDB -lSCORECModel -lSCORECUtil \
> -L$(FMDB_IMESH_LIBDIR)/share/lib/$linux64 -lautopack
>
> IMESH_INCLUDEDIR = /usr/local/itaps/FMDB_iMeshP/
> FMDB_IMESH_LIBDIR = /usr/local/itaps/FMDB_iMeshP/
> iMesh_INCLUDEDIR=/usr/local/itaps/FMDB_iMeshP//include
> FMDB_iMesh_LIBDIR=/usr/local/itaps/FMDB_iMeshP//lib
>
>
--
================================================================
"You will keep in perfect peace him whose mind is
steadfast, because he trusts in you." Isaiah 26:3
Tim Tautges Argonne National Laboratory
(tautges at mcs.anl.gov) (telecommuting from UW-Madison)
phone: (608) 263-8485 1500 Engineering Dr.
fax: (608) 263-4499 Madison, WI 53706
More information about the itaps-parallel
mailing list