Changeset 1415


Ignore:
Timestamp:
Aug 18, 2008, 2:04:30 PM (15 years ago)
Author:
Peter
Message:

added text on yat-config - closes #283

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/build_tool.doxygen

    r1414 r1415  
    2727
    2828The \c yat-config script provides information on the local version of
    29 the library. For instance the following command shows that the yat
    30 header files are located in \c `/usr/local/include'
     29the library. For instance the following command shows that yat was
     30installed at prefix \c `/usr/local'
    3131
    3232\verbatim
    33  #> yat-config --includedir
    34 /usr/local/include
     33 #> yat-config --prefix
     34/usr/local
    3535\endverbatim
    3636
    37 For more information use \c yat-config \c --help
     37This information can then be used in a Makefile, for example, as follows:
     38
     39\verbatim
     40BIN=foo
     41SRC=$(BIN).cc
     42OBJECTS=$(SOURCES:.cc=.o)
     43
     44CPPFLAGS+=`yat-config cppflags`
     45CXXFLAGS+=`yat-config --cxxflags`
     46LDFLAGS+=`yat-config --ldflags`
     47LIBS+=`yat-config --libs`
     48
     49all: $(BIN)
     50
     51$(BIN): $(OBJECTS)
     52  $(CXX) $(LDFLAGS) $(OBJECTS) -o $(BIN) $(LIBS)
     53
     54.cc.o:
     55  $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
     56
     57clean:; rm -f $(OBJECTS) $(BIN)
     58\endverbatim
     59
     60For further information on yat-config use \c `yat-config \c --help'
    3861
    3962\section macro Autoconf Macro
Note: See TracChangeset for help on using the changeset viewer.