diff --git a/td_tp/tp3/src/reseau/Makefile b/td_tp/tp3/src/reseau/Makefile index 41ec6bf..d0a3c3a 100644 --- a/td_tp/tp3/src/reseau/Makefile +++ b/td_tp/tp3/src/reseau/Makefile @@ -1,13 +1,32 @@ -all : clt srv +all : clt srv clt_echo srv_echo clt.o:clt.c gcc -c clt.c + +clt_echo.o:clt_echo.c + gcc -c clt_echo.c + + clt: clt.o gcc -o clt clt.o + +clt_echo: clt_echo.o + gcc -o clt_echo clt_echo.o + + srv.o : srv.c gcc -c srv.c + +srv_echo.o : srv_echo.c + gcc -c srv.c + + srv : srv.o gcc -o srv srv.c +srv_echo : srv_echo.o + gcc -o srv_echo srv_echo.c + + diff --git a/td_tp/tp3/src/reseau/clt_echo.c b/td_tp/tp3/src/reseau/clt_echo.c index 75d9d96..e922963 100644 --- a/td_tp/tp3/src/reseau/clt_echo.c +++ b/td_tp/tp3/src/reseau/clt_echo.c @@ -20,8 +20,8 @@ int main(int argc, char * argv[]) { struct sockaddr_in server_addr; int addrlen; - if (argc != 4) { - printf("Usage: %s <IP-address> <port number> <file to send>\n",argv[0]); + if (argc != 3) { + printf("Usage: %s <IP-address> <port number>\n",argv[0]); exit(1); }