-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (54 loc) · 1.8 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
61
62
UNAME := $(shell uname)
UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
CC = clang++
endif
ifeq ($(UNAME), Linux)
CC = g++
endif
TROBJS = Utils.o Requests.o travelMonitorClient.o BloomSet.o Files.o BloomFilter.o Hash.o Countries.o travelMonitor.o Monitor.o Date.o Viruses.o Persons.o SkipList.o VaccinationInfo.o monitorUtils.o pathBuffer.o
MONITOROBJS = Utils.o Requests.o travelMonitor.o Countries.o BloomFilter.o Files.o SkipList.o Persons.o VaccinationInfo.o Hash.o Monitor.o monitorUtils.o Date.o Viruses.o BloomSet.o pathBuffer.o
CFLAGS = -g -c -std="c++11"
OUT = travelMonitorClient
$(OUT): clean $(TROBJS) $(MONITOROBJS)
$(CC) -g -std="c++11" $(MONITOROBJS) -o monitorServer monitorServer.cpp -lpthread
$(CC) -g -std="c++11" $(TROBJS) -o $(OUT) -lpthread
travelMonitorClient.o:
$(CC) $(CFLAGS) travelMonitorClient.cpp
Utils.o:
$(CC) $(CFLAGS) Utils/Utils.cpp
monitorUtils.o:
$(CC) $(CFLAGS) Utils/monitorUtils.cpp
Countries.o:
$(CC) $(CFLAGS) Countries/Countries.cpp
Persons.o:
$(CC) $(CFLAGS) Persons/Persons.cpp
BloomFilter.o:
$(CC) $(CFLAGS) DataStructures/BloomFilter.cpp
BloomSet.o:
$(CC) $(CFLAGS) DataStructures/BloomSet.cpp
SkipList.o:
$(CC) $(CFLAGS) DataStructures/SkipList.cpp
Hash.o:
$(CC) $(CFLAGS) Utils/Hash.cpp
VaccinationInfo.o:
$(CC) $(CFLAGS) VaccinationInfo/VaccinationInfo.cpp
Viruses.o:
$(CC) $(CFLAGS) Viruses/Viruses.cpp
travelMonitor.o:
$(CC) $(CFLAGS) travelMonitor/travelMonitor.cpp
Monitor.o:
$(CC) $(CFLAGS) Monitor/Monitor.cpp
Date.o:
$(CC) $(CFLAGS) DataStructures/Date.cpp
Files.o:
$(CC) $(CFLAGS) DataStructures/Files.cpp
Requests.o:
$(CC) $(CFLAGS) Requests/Requests.cpp
pathBuffer.o:
$(CC) $(CFLAGS) PathBuffer/pathBuffer.cpp
.PHONY: clean
clean:
rm -rf travelMonitorClient monitorServer $(TROBJS) $(MONITOROBJS) logs/*
clean2:
rm -rf logs/*