<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>http://www.bricosoft.com/index.php?action=history&amp;feed=atom&amp;title=Make</id>
	<title>Make - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="http://www.bricosoft.com/index.php?action=history&amp;feed=atom&amp;title=Make"/>
	<link rel="alternate" type="text/html" href="http://www.bricosoft.com/index.php?title=Make&amp;action=history"/>
	<updated>2026-11-17T09:17:47Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>http://www.bricosoft.com/index.php?title=Make&amp;diff=21&amp;oldid=prev</id>
		<title>Sysop : 2 versions&amp;nbsp;:&amp;#32;depuis ancien wiki</title>
		<link rel="alternate" type="text/html" href="http://www.bricosoft.com/index.php?title=Make&amp;diff=21&amp;oldid=prev"/>
		<updated>2009-06-02T20:57:23Z</updated>

		<summary type="html">&lt;p&gt;2 versions : depuis ancien wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;En programmation, &amp;#039;&amp;#039;&amp;#039;[[w:make|make]]&amp;#039;&amp;#039;&amp;#039; est, en autres, un outil pour compiler de grandes applications. C&amp;#039;est un [[w:moteur de production|moteur de production]] principalement pour travailler en C et C++ sous environnement Unix.&lt;br /&gt;
&lt;br /&gt;
En [[langage C]], l&amp;#039;utilisation basique est :&lt;br /&gt;
 make exo7&lt;br /&gt;
&lt;br /&gt;
cela remplace :&lt;br /&gt;
 cc exo7.c -o exo7&lt;br /&gt;
&lt;br /&gt;
Son principal avantage et ce pourquoi il fut imaginé est de simplifier grandement le travail du programmeur. Lorsque l&amp;#039;on compile un programme utilisant de nombreuses bibliothèques comme pour l&amp;#039;utilisation d&amp;#039;interfaces graphiques par exemple :&lt;br /&gt;
 gcc -o exo5 exo5.c -L/usr/X11R6/lib -lglut -lGLU -lGL -lX11 -lXmu -lXext -lXi -lm&lt;br /&gt;
&lt;br /&gt;
On aura besoin de directives indiquant que l&amp;#039;on compilera avec cette longue ligne de bibliothèques, ces directives sont enregistrés dans un fichier texte toujours nommé Makefile.&lt;br /&gt;
&lt;br /&gt;
La commande make et fichier ASCII Makefile (M majuscule) vont toujours de pair. Makefile se trouvant dans le répertoire ou l&amp;#039;on exécute make.&lt;br /&gt;
&lt;br /&gt;
== Structure du Makefile ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Les lignes de commentaires commencent par dièze&lt;br /&gt;
 cible: dépendances&lt;br /&gt;
&amp;lt;TABULATION&amp;gt;commande 1&lt;br /&gt;
	    commande 2&lt;br /&gt;
             .&lt;br /&gt;
             .&lt;br /&gt;
             .&lt;br /&gt;
	    commande n&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Exemple de Makefile ==&lt;br /&gt;
Un Makefile commun est :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 all: helloworld&lt;br /&gt;
 &lt;br /&gt;
 helloworld: helloworld.c&lt;br /&gt;
	cc -o helloworld helloworld.c&lt;br /&gt;
 clean:&lt;br /&gt;
	rm -f helloworld&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
En exécutant make en ligne de commande dans le répertoire où se trouve le Makefile nous avons :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ ls&lt;br /&gt;
helloworld.c  Makefile&lt;br /&gt;
$ make&lt;br /&gt;
cc -o helloworld helloworld.c&lt;br /&gt;
$ ls&lt;br /&gt;
helloworld  helloworld.c  Makefile&lt;br /&gt;
$ make clean&lt;br /&gt;
rm -f helloworld&lt;br /&gt;
$ ls&lt;br /&gt;
helloworld.c  Makefile&lt;br /&gt;
$ make all&lt;br /&gt;
cc -o helloworld helloworld.c&lt;br /&gt;
$ &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sysop</name></author>
	</entry>
</feed>