2022-09-13 15:43:49 +02:00
|
|
|
all: client server
|
2022-11-01 16:47:13 +01:00
|
|
|
@sed -e '1s/^/[\'$$'\n''/' -e '$$s/,$$/\'$$'\n'']/' *.o.json > compile_commands.json
|
2022-09-13 15:43:49 +02:00
|
|
|
|
2022-10-24 22:47:10 +02:00
|
|
|
client: src/client.c src/client.h src/common.c src/common.h
|
2022-11-01 16:47:13 +01:00
|
|
|
clang -MJ client.o.json -o client src/client.c src/common.c -pthread
|
2022-09-13 15:43:49 +02:00
|
|
|
|
2022-10-24 22:47:10 +02:00
|
|
|
server: src/server.c src/server.h src/common.c src/common.h
|
2022-11-01 16:47:13 +01:00
|
|
|
clang -MJ server.o.json -o server src/server.c src/common.c -lpthread
|
2022-09-13 15:43:49 +02:00
|
|
|
|
|
|
|
clean:
|
2022-11-01 17:49:45 +01:00
|
|
|
rm -f server client *.o.json compile_commands.json
|