LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Makefile for Cleant and Server (https://www.linuxquestions.org/questions/linux-general-1/makefile-for-cleant-and-server-353474/)

kapsikum 08-15-2005 10:47 AM

Makefile for Cleant and Server
 
Hi.
I have to write a Makefile that can compile both server and client programs.
I have writteb the Makefile with these options:

sender: sender.c
cc -o sender sender.c

reciever: reciever.c
cc -o reciever reciever.c

However, only the sender program is getting compiled.

If any one could suggest how the sender and the reciever programs can be compiled using this single Makefile.


any suggestion will be highly appriciated.


Thanks.


All times are GMT -5. The time now is 04:53 PM.