I have 2 makefile
one for my client:
and one for my server:Code:Client: Client.o # generate executable from objects gcc Client.o -o Client Client.o: Client.c gcc -c Client.c
How do you do to put them together in the same file?Code: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