-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
executable file
·42 lines (29 loc) · 1.24 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
all: server cli td kd
# make rule per il server
server: server.o libs/logger.o libs/device_utils.o libs/common_utils.o libs/database.o
gcc -Wall -g server.o libs/logger.o libs/device_utils.o libs/common_utils.o libs/database.o -o server
# make rule per i client
cli: cli.o libs/logger.o libs/common_utils.o libs/database.o
gcc -Wall -g cli.o libs/logger.o libs/common_utils.o libs/database.o -o cli
td: td.o libs/logger.o libs/common_utils.o libs/database.o
gcc -Wall -g td.o libs/logger.o libs/common_utils.o libs/database.o -o td
kd: kd.o libs/logger.o libs/common_utils.o libs/database.o
gcc -Wall -g kd.o libs/logger.o libs/common_utils.o libs/database.o -o kd
server.o: server.c
gcc -Wall -g -c server.c -o server.o
cli.o: cli.c
gcc -Wall -g -c cli.c -o cli.o
td.o: td.c
gcc -Wall -g -c td.c -o td.o
kd.o: kd.c
gcc -Wall -g -c kd.c -o kd.o
libs/logger.o: libs/logger.c
gcc -Wall -g -c libs/logger.c -o libs/logger.o
libs/device_utils.o: libs/device_utils.c
gcc -Wall -g -c libs/device_utils.c -o libs/device_utils.o
libs/common_utils.o: libs/common_utils.c
gcc -Wall -g -c libs/common_utils.c -o libs/common_utils.o
libs/database.o: libs/database.c
gcc -Wall -g -c libs/database.c -o libs/database.o
clean:
rm *o server cli td kd libs/*.o