-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 949 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 949 Bytes
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
CC=g++
INCLUDE=-I./util -I./fac
FLAGS=-O2 -Wall -pthread -std=gnu++11 -Wl,--no-as-needed
CFLAGS=$(FLAGS) $(INCLUDE)
SSL=-lssl -lcrypto
UTIL=util/timestamp.o util/file.o util/foldermanager.o util/folderdiff.o\
util/communication.o util/activeprocess.o util/passiveprocess.o util/device.o\
util/action.o util/actionqueue.o util/serverinfo.o util/serverlist.o
FILE_AC=fac/fileaccesscontrol.o fac/filesmanager.o
.PHONY: all clean
all: dropboxClient dropboxServer
dropboxServer: $(UTIL) $(FILE_AC) server/database.o server/serveruser.o server/loggedusers.o\
server/servercomm.o server/backupservers.o client/clientcomm.o client/clientuser.o\
server/backup.o server/dropboxserver.o
$(CC) $(CFLAGS) -o $@ $^ $(SSL)
dropboxClient: $(UTIL) client/clientuser.o client/dropboxclient.o client/clientcomm.o
$(CC) $(CFLAGS) -o $@ $^ $(SSL)
%.o: %.cpp
$(CC) $(CFLAGS) -c -o $@ $< $(SSL)
clean:
rm -f *~ *.bak *. ./*/*.o dropboxClient dropboxServer