2017-02-14 08:33:48 +00:00
|
|
|
CC=-Werror -g -pthread
|
2017-02-01 18:11:53 +00:00
|
|
|
|
2017-02-22 11:35:41 +00:00
|
|
|
calculs.o: calculs.c calculs.h
|
|
|
|
gcc $(CC) -c -o calculs.o calculs.c
|
|
|
|
|
2017-02-01 18:11:53 +00:00
|
|
|
client.o: client.h client.c
|
|
|
|
gcc $(CC) -c -o client.o client.c
|
|
|
|
|
2017-02-02 10:18:34 +00:00
|
|
|
server.o: lib.h server.h server.c
|
2017-02-01 18:11:53 +00:00
|
|
|
gcc $(CC) -c -o server.o server.c
|
|
|
|
|
|
|
|
lib.o: lib.h lib.c
|
|
|
|
gcc $(CC) -c -o lib.o lib.c
|
|
|
|
|
2017-02-22 11:35:41 +00:00
|
|
|
server: lib.o server.o serverRPC.o calculs.o
|
|
|
|
gcc $(CC) -o server lib.o server.o serverRPC.o calculs.o
|
2017-02-01 18:11:53 +00:00
|
|
|
|
|
|
|
client: lib.o client.o
|
|
|
|
gcc $(CC) -o client lib.o client.o
|
|
|
|
|
2017-02-14 08:31:49 +00:00
|
|
|
clientRPC.o: calculs.h RPC/client.c
|
|
|
|
gcc $(CC) -c -o clientRPC.o RPC/client.c
|
|
|
|
|
2017-02-22 11:35:41 +00:00
|
|
|
serverRPC.o: RPC/server.c RPC/server.h
|
|
|
|
gcc $(CC) -c -o serverRPC.o RPC/server.c
|
|
|
|
|
2017-02-01 18:11:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
all: client server
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf ./*.o
|
|
|
|
rm client server
|