27 lines
391 B
Makefile
27 lines
391 B
Makefile
CC=-Werror -g -pthread
|
|
|
|
|
|
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
|
|
gcc $(CC) -o server lib.o server.o
|
|
|
|
client: lib.o client.o
|
|
gcc $(CC) -o client lib.o client.o
|
|
|
|
|
|
|
|
|
|
all: client server
|
|
|
|
clean:
|
|
rm -rf ./*.o
|
|
rm client server
|