11 lines
428 B
Makefile
11 lines
428 B
Makefile
all: client server
|
|
@sed -e '1s/^/[\'$$'\n''/' -e '$$s/,$$/\'$$'\n'']/' *.o.json > compile_commands.json
|
|
|
|
client: src/client.c src/client.h src/common.c src/common.h
|
|
clang -MJ client.o.json -o client src/client.c src/common.c -pthread
|
|
|
|
server: src/server.c src/server.h src/common.c src/common.h
|
|
clang -MJ server.o.json -o server src/server.c src/common.c -lpthread
|
|
|
|
clean:
|
|
rm -f server client *.o.json compile_commands.json
|