[ < ] [ > ]   [Contents] [Index] [ ? ]

A.4 Miniker with make


[ < ] [ > ]   [Contents] [Index] [ ? ]

A.4.1 Additional requirements for Miniker with make

The package has been tested with GNU make and solaris make.

Suitable preprocessors should also be installed. Two preprocessors are required, one that preprocess the cmz directives, and a mortran preprocessor. A cmz directives processor written in perl, is distributed in the car2txt package available at http://www.environnement.ens.fr/perso/dumas/mini_ker/software.html. A mortran package with a command able to preprocess a mortran file given on the command line with a syntax similar with the cpp command line syntax is also required. Such a mortran is available at http://www.environnement.ens.fr/perso/dumas/mini_ker/software.html.


[ < ] [ > ]   [Contents] [Index] [ ? ]

A.4.2 Configuration

The package is available at http://www.environnement.ens.fr/perso/dumas/mini_ker/software.html. It is available as a compresssed tar archive. On UNIX, with GNU tar it may be unpacked using

 
$ tar xzvf mini_ker-4.2.tar.gz

The detection of the compiler, the preprocessors (car2txt and mortran), and the libraries are performed by the configure script. This script sets the apropriate variables in makefiles. It can be run with:

 
$ cd mini_ker-4.2
$ ./configure

If the output of ./configure doesn’t show any error it means that all the components are here. It is possible to give ./configure switches and also specify environment variables (see also ./configure --help):

--disable-cernlib

Use the internal cernlib source files, even if a cernlib is detected.

--with-static-cernlib

This command line switch forces a static linking with the cernlib (or a dynamic linking if set to no).

--with-cernlib

This command line switch can be used to specify the cernlib location (if not detected or you want to use a specific cernlib).

--with-blas
--with-lapack

With this command switch, you can specify the location of the blas and lapack libraries.

For example, on mac OS X this can be used to specify the blas and lapack from the Apple frameworks:

 
./configure \
--with-blas=/System/Library/Frameworks/vecLib.framework/versions/A/vecLib \
--with-lapack=/System/Library/Frameworks/vecLib.framework/versions/A/vecLib
F77
FC
FFLAGS
LDFLAGS

Classical compiler, compiler flags and linker flags.

MORTRAN

This environment variable holds the mortran preprocessor command (default is mortran).

MTNFLAGS

This environment variable holds command line arguments for the mortran preprocessor. It is empty in the default case.

MTN

This environment variable may be used to specify the mortran executable name and/or path, it should be used by the mortran commmand. (default is empty, which leads to a mortran executable called mtn).

MTNDEPEND

This environment variable may be used to specify the mortran dependencies checker executable. It should be used by the mortran commmand. (default is empty, which leads to a mortran dependencies checker called mtndepend).

After a proper configuration, if make is run then the example models should be build. You have to perform the configuration only once.


[ < ] [ > ]   [Contents] [Index] [ ? ]

A.4.3 Installation with make

Miniker can be installed by running

 
make install

It should copy the sources and the ‘Makefile.miniker’ file in a ‘mini_ker’ directory in the $(includedir) directory, and copy the templates in ‘$(datadir)/mini_ker’. The default for $(includedir) is ‘/usr/local/include’ and the default for $(datadir) is ‘/usr/local/share’, these defaults may be changed by ./configure switches ‘--prefix’, ‘--includedir’ and ‘--datadir’. See ./configure --help and the ‘INSTALL’ file for more informations. The helper script ‘start_miniker’ should also be installed.

The installation is not required to use comfortably Miniker. Indeed the only thing that changes with the sources and the ‘Makefile.miniker’ directory location is the miniker_dir variable in a project Makefile.


[Contents] [Index] [ ? ]

This document was generated by a tester on a sunny day using texi2html.