[MITgcm-support] command line append to INCLUDEDIRS (aside from mpif.h location)

Martin Losch Martin.Losch at awi.de
Fri Feb 21 05:56:49 EST 2014


Hi Dan,

I think the most generic way is to append the INCLUDES variable in your build options file, either directly

INCLUDES = “$INCLUDES -I/my/own/extra/include”

or similarly to the MPI_INC_DIR thing with your own environment variable:

INCLUDES=“$INCLUDES -I$MPI_INC_DIR”

Martin


On Feb 21, 2014, at 11:05 AM, Daniel Goldberg <dngoldberg at gmail.com> wrote:

> Hi All,
> 
> Simple question, but one I couldn't answer for myself from the genmake2 error message -- if i would like to use an external library (e.g. a compiled shared version of ODEPACK) and would like to append the location of the header file to the INCLUDEDIRS variable in the Makefile, is there a command-line arg to genmake2 for this? I know setting the MPI_INC_DIR environment var will take care of mpif.h, but is there a more generic approach?
> 
> Thanks very much
> Dan
> 
> -- 
> 
> Daniel Goldberg, PhD
> Lecturer in Glaciology
> School of Geosciences, University of Edinburgh
> Geography Building, Drummond Street, Edinburgh EH8 9XP
> 
> 
> em: Dan.Goldberg at ed.ac.uk
> web: http://ocean.mit.edu/~dgoldberg
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list