-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (43 loc) · 1.27 KB
/
Makefile
File metadata and controls
56 lines (43 loc) · 1.27 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# ANA, MATHEUS, LEVINDO E FELIPE - UFRGS - 2018.1
CC = g++
INCLUDE = -I./util
FLAGS = -g -Wall -pthread -std=gnu++11
CFLAGS = $(FLAGS) $(INCLUDE)
UTILS_C = utils/src/ui.o \
utils/src/data.o \
utils/src/udpUtils.o \
utils/src/dropboxUtils.o \
utils/src/parUtils.o \
utils/fileSystem/src/file.o \
utils/fileSystem/src/folder.o \
utils/src/process.o
UTILS_S = utils/src/ui.o \
utils/src/data.o \
utils/src/udpUtils.o \
utils/src/dropboxUtils.o \
utils/src/parUtils.o \
utils/fileSystem/src/file.o \
utils/fileSystem/src/folder.o \
utils/src/process.o
CLIENT_O = client/src/dropboxClient.o \
client/src/clientCommunication.o
SERVER_O = server/src/dropboxServer.o \
server/src/serverCommunication.o \
server/src/multiserver.o \
server/src/serverUser.o
.PHONY: all clean
all: dropboxServer dropboxClient removeObjects
dropboxServer: $(UTILS_S) $(SERVER_O)
$(CC) $(CFLAGS) -o $@ $^
dropboxClient: $(UTILS_C) $(CLIENT_O)
$(CC) $(CFLAGS) -o $@ $^
%.o: %.cpp
$(CC) $(CFLAGS) -c -o $@ $<
clean: removeObjects
rm -f dropboxClient dropboxServer
removeObjects:
rm -f $(UTILS_S) $(UTILS_C) $(SERVER_O) $(CLIENT_O)
run-client:
./dropboxClient testuser localhost 8080
run-server:
./dropboxServer 8080