-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (16 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: server provided-client client
all: provided-client server
client: client/client.h client/message.h client/thread.h client/thread.c client/log.h client/log.c
gcc client/client.c client/thread.c client/log.c -Wall -pthread -o test/c
provided-client: provided-client/client.c provided-client/common.h
gcc provided-client/client.c provided-client/common.h -Wall -pthread -o test/c
server: server/serverMain.c server/serverMain.h server/serverConsumer.c server/serverConsumer.h server/serverProducer.c server/serverProducer.h server/log.c server/log.h server/delay.c server/delay.h server/lib.c server/lib.h server/queue.c server/queue.h
gcc server/serverMain.c server/serverConsumer.c server/serverProducer.c server/log.c server/delay.c server/lib.c server/queue.c -Wall -pthread -DDELAY=100 -o test/s
cpplint:
cpplint --filter=-whitespace,-legal/copyright,-readability/check,-readability/casting,-build/header_guard,-build/include --recursive server
valgrind:
valgrind $(CMD)
infer:
infer run -- make
clean:
rm -f test/c test/s