J'ai deux fichiers makefile, un pour mon client:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
Client: Client.o	# generate executable from objects
	gcc Client.o -o Client
 
Client.o:	Client.c
	gcc -c Client.c
et un pour mon serveur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
Server: Server_functions.o Server.o Server_main.o	# generate executable from objects
	gcc Server_functions.o Server.o Server_main.o -o Server 
 
Server_functions.o:    Server_functions.c
	gcc -c Server_functions.c
 
Server.o:   Server.c
	gcc -c Server.c
 
Server_main.o:   Server_main.c
	gcc -c Server_main.c
Comment je fais pour les réunir dans un seul fichier makefile?