35 lines
665 B
Makefile
35 lines
665 B
Makefile
CC=-Werror -g -pthread
|
|
|
|
calculs.o: calculs.c calculs.h
|
|
gcc $(CC) -c -o calculs.o calculs.c
|
|
|
|
client.o: client.h client.c
|
|
gcc $(CC) -c -o client.o client.c
|
|
|
|
server.o: lib.h server.h server.c
|
|
gcc $(CC) -c -o server.o server.c
|
|
|
|
lib.o: lib.h lib.c
|
|
gcc $(CC) -c -o lib.o lib.c
|
|
|
|
server: lib.o server.o serverRPC.o calculs.o
|
|
gcc $(CC) -o server lib.o server.o serverRPC.o calculs.o
|
|
|
|
client: lib.o client.o
|
|
gcc $(CC) -o client lib.o client.o
|
|
|
|
clientRPC.o: calculs.h RPC/client.c
|
|
gcc $(CC) -c -o clientRPC.o RPC/client.c
|
|
|
|
serverRPC.o: RPC/server.c RPC/server.h
|
|
gcc $(CC) -c -o serverRPC.o RPC/server.c
|
|
|
|
|
|
|
|
|
|
all: client server
|
|
|
|
clean:
|
|
rm -rf ./*.o
|
|
rm client server
|