NOX
Development
|
NOX and LOCA support the export makefile system to streamline issues dealing with linking against user applications. When NOX and LOCA are installed using the "make install" command, it will install two Makefiles that contain all flags needed to link an application against the solvers. The first Makefile is Makefile.export.NOX. This contains the flags needed to build and link your code against nox. The second file is Makefile.client.NOX. This file can be used to link directly against your code. See the files for more details.
Although we don't recommend it, users can link NOX and LOCA to their application without using the export makefile system. To compile your code in this manner, your Makefile should look something like the following, assuming NOX was installed in /usr/local.
NOX_PREFIX = /usr/local LDFLAGS = -L$(NOX_PREFIX)/lib LIBS = -lnox CXXFLAGS = -I$(NOX_PREFIX)/include/
Compiling with LAPACK support:
NOX_PREFIX = /usr/local LDFLAGS = -L$(NOX_PREFIX)/lib LIBS = -lnox -lnoxlapack -llapack -lblas CXXFLAGS = -I$(NOX_PREFIX)/include/
Compiling with Epetra support:
We assume that Epetra, EpetraExt, Aztec, and Ifpack are installed in the same directory as NOX.
NOX_PREFIX = /usr/local LDFLAGS = -L$(NOX_PREFIX)/lib LIBS = -lnox -lnoxepetra -laztecoo -lifpack -lepetraext -lepetra -llapack -lblas CXXFLAGS = -I$(NOX_PREFIX)/include/
If you have problems linking NOX and/or LOCA, please report them using Bugzilla; see Reporting Bugs and Making Enhancement Requests for more information.