-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (29 loc) · 1.07 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
52
53
54
55
56
57
58
59
60
CC = gcc
CFLAGS = -Wall -g
LDFLAGS = -lcrypto
all: client server honeychecker
# Create executables
client: client.o communication.o utilities.o
$(CC) client.o communication.o utilities.o -o client
server: server.o crypt.o communication.o file_operations.o utilities.o
$(CC) server.o crypt.o communication.o file_operations.o utilities.o -o server $(LDFLAGS)
honeychecker: honeychecker.o file_operations.o communication.o utilities.o
$(CC) honeychecker.o file_operations.o communication.o utilities.o -o honeychecker
# Create object files
client.o: client.c
$(CC) $(CFLAGS) -c client.c
server.o: server.c
$(CC) $(CFLAGS) -c server.c
honeychecker.o: honeychecker.c
$(CC) $(CFLAGS) -c honeychecker.c
crypt.o: crypt.c
$(CC) $(CFLAGS) -c crypt.c
communication.o: communication.c
$(CC) $(CFLAGS) -c communication.c
file_operations.o: file_operations.c
$(CC) $(CFLAGS) -c file_operations.c
utilities.o: utilities.c
$(CC) $(CFLAGS) -c utilities.c
# Delete the object files, executables
clean:
rm -f a.out *.o client server honeychecker