Changeset 1415 for trunk/doc/build_tool.doxygen
- Timestamp:
- Aug 18, 2008, 2:04:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/build_tool.doxygen
r1414 r1415 27 27 28 28 The \c yat-config script provides information on the local version of 29 the library. For instance the following command shows that the yat30 header files are located in \c `/usr/local/include' 29 the library. For instance the following command shows that yat was 30 installed at prefix \c `/usr/local' 31 31 32 32 \verbatim 33 #> yat-config -- includedir34 /usr/local /include33 #> yat-config --prefix 34 /usr/local 35 35 \endverbatim 36 36 37 For more information use \c yat-config \c --help 37 This information can then be used in a Makefile, for example, as follows: 38 39 \verbatim 40 BIN=foo 41 SRC=$(BIN).cc 42 OBJECTS=$(SOURCES:.cc=.o) 43 44 CPPFLAGS+=`yat-config cppflags` 45 CXXFLAGS+=`yat-config --cxxflags` 46 LDFLAGS+=`yat-config --ldflags` 47 LIBS+=`yat-config --libs` 48 49 all: $(BIN) 50 51 $(BIN): $(OBJECTS) 52 $(CXX) $(LDFLAGS) $(OBJECTS) -o $(BIN) $(LIBS) 53 54 .cc.o: 55 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@ 56 57 clean:; rm -f $(OBJECTS) $(BIN) 58 \endverbatim 59 60 For further information on yat-config use \c `yat-config \c --help' 38 61 39 62 \section macro Autoconf Macro
Note: See TracChangeset
for help on using the changeset viewer.