forked from dubovsky14/sars_cov2_slovakia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
107 lines (85 loc) · 3.44 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
MACHINE = $(shell uname -s)
LINUX = Linux
MAC = Darwin
BASEDIR = .
DEBUG=-g -Wall -ggdb -O3 -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0
INCDIR=$(PWD)
INCFLAGS=$(DEBUG) -I$(INCDIR)
all: bin/main
bin/Logging.o:src/Logging.cxx sars_cov2_sk/Logging.h
@echo "**"
@echo "** Compiling C++ Source: Logging.cxx Logging.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/Person.o:src/Person.cxx sars_cov2_sk/Person.h
@echo "**"
@echo "** Compiling C++ Source: Person.cxx Person.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/Household.o:src/Household.cxx sars_cov2_sk/Household.h
@echo "**"
@echo "** Compiling C++ Source: Household.cxx Household.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/PopulationCenter.o:src/PopulationCenter.cxx sars_cov2_sk/PopulationCenter.h
@echo "**"
@echo "** Compiling C++ Source: PopulationCenter.cxx PopulationCenter.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/HelperFunctions.o:src/HelperFunctions.cxx sars_cov2_sk/HelperFunctions.h
@echo "**"
@echo "** Compiling C++ Source: HelperFunctions.cxx HelperFunctions.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/InputData.o:src/InputData.cxx sars_cov2_sk/InputData.h
@echo "**"
@echo "** Compiling C++ Source: InputData.cxx InputData.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/RandomGenerators.o:src/RandomGenerators.cxx sars_cov2_sk/RandomGenerators.h
@echo "**"
@echo "** Compiling C++ Source: RandomGenerators.cxx RandomGenerators.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/ConfigParser.o:src/ConfigParser.cxx sars_cov2_sk/ConfigParser.h
@echo "**"
@echo "** Compiling C++ Source: ConfigParser.cxx ConfigParser.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/Simulation.o:src/Simulation.cxx sars_cov2_sk/Simulation.h
@echo "**"
@echo "** Compiling C++ Source: Simulation.cxx Simulation.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/CovidTest.o:src/CovidTest.cxx sars_cov2_sk/CovidTest.h
@echo "**"
@echo "** Compiling C++ Source: CovidTest.cxx CovidTest.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/NetworkBase.o:src/NetworkBase.cxx sars_cov2_sk/NetworkBase.h
@echo "**"
@echo "** Compiling C++ Source: NetworkBase.cxx NetworkBase.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/ROutToReffConvertor.o:src/ROutToReffConvertor.cxx sars_cov2_sk/ROutToReffConvertor.h
@echo "**"
@echo "** Compiling C++ Source: ROutToReffConvertor.cxx ROutToReffConvertor.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/Restrictions.o:src/Restrictions.cxx sars_cov2_sk/Restrictions.h
@echo "**"
@echo "** Compiling C++ Source: Restrictions.cxx Restrictions.h"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/main.o:src/main.cxx
@echo "**"
@echo "** Compiling C++ Source"
@echo "**"
g++ $(DEBUG) $(INCFLAGS) -g -c -o $@ $<
bin/main:bin/main.o bin/Person.o bin/Household.o bin/PopulationCenter.o bin/HelperFunctions.o bin/InputData.o bin/RandomGenerators.o bin/Logging.o bin/ConfigParser.o bin/Simulation.o bin/CovidTest.o bin/NetworkBase.o bin/ROutToReffConvertor.o bin/Restrictions.o
@echo "**"
@echo "** Linking"
@echo "**"
g++ $(DEBUG) -o $@ bin/main.o bin/Person.o bin/Household.o bin/PopulationCenter.o bin/HelperFunctions.o bin/InputData.o bin/RandomGenerators.o bin/Logging.o bin/ConfigParser.o bin/Simulation.o bin/CovidTest.o bin/NetworkBase.o bin/ROutToReffConvertor.o bin/Restrictions.o
clean:
rm -rf bin/*.o main