J'ai deux fichiers makefile, un pour mon client:
et un pour mon serveur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6Client: Client.o # generate executable from objects gcc Client.o -o Client Client.o: Client.c gcc -c Client.c
Comment je fais pour les réunir dans un seul fichier makefile?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12Server: 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
Partager