-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 1.06 KB
/
Makefile
File metadata and controls
32 lines (24 loc) · 1.06 KB
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
CLIENT_SRCS = clientserver/client.cpp \
clientserver/commands.cpp \
clientserver/tcp.cpp \
clientserver/message.cpp
SERVER_SRCS = clientserver/server.cpp \
clientserver/commands.cpp \
clientserver/tcp.cpp \
gitapp/git_app.cpp \
clientserver/message.cpp
VIEWSERVER_SRCS = clientserver/viewserver.cpp \
clientserver/commands.cpp \
clientserver/tcp.cpp \
clientserver/message.cpp
all: client server viewserver
client: $(CLIENT_SRCS)
g++ -std=c++20 -Wall -Iinclude $(CLIENT_SRCS) -o gitd
server: $(SERVER_SRCS)
g++ -std=c++20 -Wall -Iinclude $(SERVER_SRCS) -o server
viewserver: $(VIEWSERVER_SRCS)
g++ -std=c++20 -Wall -Iinclude $(VIEWSERVER_SRCS) -o viewserver
test: serialization_tests.cpp clientserver/tcp.cpp clientserver/messages.cpp
g++ -std=c++20 -Wall -Iinclude serialization_tests.cpp clientserver/tcp.cpp clientserver/commands.cpp -o serialization_tests
clean:
rm -f gitd server viewserver serialization_tests