Outils pour utilisateurs

Outils du site


autotools:makefile.am

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
autotools:makefile.am [2017/08/29 00:44] – Ajout d'une source rootautotools:makefile.am [2020/04/26 23:01] (Version actuelle) – Conversion de <note> vers <WRAP> root
Ligne 6: Ligne 6:
   protoc --cpp_out=cpp $^   protoc --cpp_out=cpp $^
 </code> </code>
-NOTA : ''$@'' désigne ici ''cpp/XXX.pb.cc'' et ''$^'' désigne ici ''XXX.proto''.+ 
 +<WRAP center round info 60%> 
 +''$@'' désigne ici ''cpp/XXX.pb.cc'' et ''$^'' désigne ici ''XXX.proto''. 
 +</WRAP>
  
 ====Ajouter une dépendance à all==== ====Ajouter une dépendance à all====
Ligne 14: Ligne 17:
   commands   commands
 </code> </code>
-[[https://www.gnu.org/software/automake/manual/html_node/Extending.html|Source]], {{ :autotools:makefile.am:automake_extending.html.maff |Archive}}+[[https://www.gnu.org/software/automake/manual/automake.pdf|GNU Automake]], {{ :autotools:makefile.am:automake-1.15.1.pdf |Archive}}
  
 ====Substituer une partie d'un texte d'une variable==== ====Substituer une partie d'un texte d'une variable====
   $(@:.pb.cc=.pb.h)   $(@:.pb.cc=.pb.h)
 Remplace dans la variable ''@'' ''.pb.cc'' par ''.pb.h''. Remplace dans la variable ''@'' ''.pb.cc'' par ''.pb.h''.
-[[https://www.gnu.org/software/make/manual/make.html#Substitution-Refs|Source]] {{ :autotools:makefile.am:gnu_make_0.74.html.maff |Archive}}+[[https://www.gnu.org/software/make/manual/make.pdf|GNU Make]] {{ :autotools:makefile.am:make-4.2.pdf |Archive}} 
 + 
 +====Création d'une librairie==== 
 +<code make> 
 +lib_LTLIBRARIES = lib1.la lib2.la 
 + 
 +lib1_la_CXXFLAGS = $(AM_CXXFLAGS) -isystem /usr/include 
 +lib1_la_LDFLAGS  = $(AM_LDFLAGS) -release $(VERSION) -Wl,-Map,lib1.map 
 +lib1_la_SOURCES  = source.cc 
 +lib1_ladir       = $(includedir) 
 +lib1_la_HEADERS  = source.h 
 + 
 +lib2_la_CXXFLAGS … 
 +… 
 +</code> 
 + 
 +====Génération du code Doxygen==== 
 +<code make> 
 +all-local: doxygen.stamp 
 + 
 +doxygen.stamp: $(libXXXXXX_la_SOURCES) $(libXXXXXX_la_HEADERS) 
 +  mkdir -p ../../../doc 
 +  echo Timestamp > doxygen.stamp 
 +  $(DOXYGEN) ./Doxyfile 
 + 
 +CLEANFILES  = doxygen.stamp 
 + 
 +EXTRA_DIST  = Doxyfile 
 + 
 +clean-local: 
 +  rm -Rf ../../../doc 
 +</code>
autotools/makefile.am.1503960245.txt.gz · Dernière modification : 2017/08/29 00:44 de root