-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
64 lines (43 loc) · 1.79 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
PARAMS=-g -c -Wall -std=c++11
# -fopenmp
all: app
app: fish.o population.o main.o fish_school_search.o fish_school_search_2.o problem.o scenario.o ackley.o griewank.o rastring.o rosembrock.o schwefel.o sphere.o moving_peaks.o
g++ fish.o population.o main.o fish_school_search.o fish_school_search_2.o problem.o scenario.o ackley.o griewank.o rastring.o rosembrock.o schwefel.o sphere.o moving_peaks.o -o app
main.o: main.cpp
g++ $(PARAMS) main.cpp
fish.o: fish.cpp
g++ $(PARAMS) fish.cpp
fish_school_search.o: algorithms/fish_school_search.cpp
g++ $(PARAMS) algorithms/fish_school_search.cpp
fish_school_search_2.o: algorithms/fish_school_search_2.cpp
g++ $(PARAMS) algorithms/fish_school_search_2.cpp
population.o: population.cpp
g++ $(PARAMS) population.cpp
problem.o: benchmarcks/problem.cpp
g++ $(PARAMS) benchmarcks/problem.cpp
ackley.o: benchmarcks/statics/ackley.cpp
g++ $(PARAMS) benchmarcks/statics/ackley.cpp
griewank.o: benchmarcks/statics/griewank.cpp
g++ $(PARAMS) benchmarcks/statics/griewank.cpp
rastring.o: benchmarcks/statics/rastring.cpp
g++ $(PARAMS) benchmarcks/statics/rastring.cpp
rosembrock.o: benchmarcks/statics/rosembrock.cpp
g++ $(PARAMS) benchmarcks/statics/rosembrock.cpp
schwefel.o: benchmarcks/statics/schwefel.cpp
g++ $(PARAMS) benchmarcks/statics/schwefel.cpp
sphere.o: benchmarcks/statics/sphere.cpp
g++ $(PARAMS) benchmarcks/statics/sphere.cpp
moving_peaks.o: benchmarcks/dynamics/moving_peaks.cpp
g++ $(PARAMS) benchmarcks/dynamics/moving_peaks.cpp
scenario.o: benchmarcks/scenario.cpp
g++ $(PARAMS) benchmarcks/scenario.cpp
clean:
rm *~ *.o *.eps *.dataset *.output app; clear;
god:
make clean; make; ./app
try:
make clean; make
# plot:
# gnuplot -e "file='saida.csv'" plot.plg
# to compile
# g++ -o test main.cpp population.cpp fish.cpp fish_school_search.cpp