-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·67 lines (45 loc) · 1.88 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
PARAMS=-c -Wall -std=c++11 -O2 -pg -g
# -fopenmp
all: app
app: individual.o population.o main.o particle_swarm.o clan_particle_swarm.o util.o problem.o scenario.o ackley.o griewank.o rastring.o rosembrock.o schwefel.o sphere.o moving_peaks.o
g++ individual.o population.o main.o particle_swarm.o clan_particle_swarm.o util.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
particle_swarm.o: algorithms/particle_swarm.cpp
g++ $(PARAMS) algorithms/particle_swarm.cpp
clan_particle_swarm.o: algorithms/clan_particle_swarm.cpp
g++ $(PARAMS) algorithms/clan_particle_swarm.cpp
util.o: util.cpp
g++ $(PARAMS) util.cpp
individual.o: individual.cpp
g++ $(PARAMS) individual.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 *.csv *.png 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 individual.cpp particle_swarm.cpp