yat  0.8.3pre
Build Tools


The yat-config script provides information on the local version of the library. For instance the following command shows that yat was installed at prefix `/usr/local'

 #> yat-config --prefix

This information can then be used in a Makefile, for example, as follows:


CPPFLAGS+=`yat-config --cppflags`
CXXFLAGS+=`yat-config --cxxflags`
LDFLAGS+=`yat-config --ldflags`
LIBS+=`yat-config --libs`

all: $(BIN)

  $(CXX) $(LDFLAGS) $(OBJECTS) -o $(BIN) $(LIBS)

  $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@

clean:; $(RM) $(OBJECTS) $(BIN)

From yat 0.6 an alternative CBLAS library can be specified using YAT_CBLAS_LIB environment variable. By default the CBLAS library detected during configuration of yat is used.

For further information on yat-config use `yat-config --help'

New in yat 0.5

Autoconf Macro

For applications using autoconf there is a macro available in yat.m4. The macro can be called from your configure.ac:

YAT_CHECK_YAT([minimum-version=0.5], [action-if-found], [action-if-not-found]) 

The argument minimum-version should be the number (MAJOR.MINOR or MAJOR.MINOR.PATCH) of the version you require. If yat header files and library are not found or the version is not new enough, macro will complain and execute shell command action-if-not-found. A suitable action-if-not-found could be

AC_MSG_FAILURE([could not find required version of yat])

If the test is successful, HAVE_YAT is defined and action-if-found is executed. The test calls yat-config and sets variables YAT_CPPFLAGS, YAT_CXXFLAGS, YAT_LDFLAGS, YAT_LIBS, and YAT_LA_FILE. These flags can then be used in the Makefile.am. For instance:

this macro assumes that yat-config has been installed; yat-config was introduced in yat 0.5 and consequently this macro does not work with yat 0.4.x (or older).

Generated on Thu Dec 20 2012 03:12:58 for yat by  doxygen 1.8.0-20120409