-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
51 lines (39 loc) · 1.17 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
all: compile
compile:
clear
@echo "\033[92m*** Compiling code - Client ***\033[0m"
gcc Client.c -o ./Client
@echo "\033[92m*** Compiling code - Server ***\033[0m"
gcc Server.c -o ./Server
@echo "\033[92m*** Compiling finished ***\033[0m"
commitCompile:
clear
@echo "\033[92m*** Compiling code - Client ***\033[0m"
gcc -g -Wunused-variable Client.c -o ./Client
@echo "\033[92m*** Compiling code - Server ***\033[0m"
gcc -g -Wunused-variable Server.c -o ./Server
@echo "\033[92m*** Compiling finished ***\033[0m"
runClient:
clear
./Client 127.0.0.1 1234 list_of_filenames.txt 5
runServer:
clear
./Server 1234 server_files/ outputFile.txt
memCheckClient:
clear
valgrind --leak-check=full --show-leak-kinds=all ./Client 127.0.0.1 1234 list_of_filenames.txt 5
memCheckClientSmall:
clear
valgrind ./Client 127.0.0.1 1234 list_of_filenames.txt 5
memCheckServer:
clear
valgrind --leak-check=full --show-leak-kinds=all ./Server 1234 server_files/ outputFile.txt
memCheckServerSmall:
clear
valgrind ./Server 1234 server_files/ outputFile.txt
clean:
rm ./Client
rm ./Server
rm ./outputFile.txt
tar:
tar -czvf 15430.tgz .