-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
57 lines (44 loc) · 2.14 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
####################################################
###################### MAKE ########################
####################################################
EXECUTAVEL = hypAG
PATHEXEC = ./bin
PATHSRC= ./src
PATHTEMP = ./.temp
all:
mkdir -p $(PATHEXEC)
mkdir -p $(PATHTEMP)
make $(EXECUTAVEL)
#Juntando todos os objetos e gerando o programa
$(EXECUTAVEL): $(PATHTEMP)/path_relinking.o $(PATHTEMP)/random_walk.o $(PATHTEMP)/ES.o $(PATHTEMP)/SampleDecoder.o $(PATHTEMP)/FWChrono.o $(PATHTEMP)/solution.o $(PATHTEMP)/main.o
$(CPP) $(CCFLAGS) $(PATHTEMP)/path_relinking.o $(PATHTEMP)/random_walk.o $(PATHTEMP)/ES.o $(PATHTEMP)/SampleDecoder.o $(PATHTEMP)/FWChrono.o $(PATHTEMP)/solution.o $(PATHTEMP)/main.o -o $(PATHEXEC)/$(EXECUTAVEL)
$(PATHTEMP)/main.o: $(PATHSRC)/main.cpp
$(CPP) $(CCFLAGS) -c $(PATHSRC)/main.cpp -o $(PATHTEMP)/main.o
$(PATHTEMP)/solution.o: $(PATHSRC)/solution.cpp
$(CPP) -std=c++11 $(CCFLAGS) -c $(PATHSRC)/solution.cpp -o $(PATHTEMP)/solution.o
$(PATHTEMP)/FWChrono.o: $(PATHSRC)/FWChrono.cpp
$(CPP) $(CCFLAGS) -c $(PATHSRC)/FWChrono.cpp -o $(PATHTEMP)/FWChrono.o
$(PATHTEMP)/SampleDecoder.o: $(PATHSRC)/BRKGA/SampleDecoder.cpp
$(CPP) $(CCFLAGS) -c $(PATHSRC)/BRKGA/SampleDecoder.cpp -o $(PATHTEMP)/SampleDecoder.o
$(PATHTEMP)/ES.o: $(PATHSRC)/ES.cpp
$(CPP) $(CCFLAGS) -c $(PATHSRC)/ES.cpp -o $(PATHTEMP)/ES.o
$(PATHTEMP)/random_walk.o: $(PATHSRC)/random_walk.cpp
$(CPP) $(CCFLAGS) -c $(PATHSRC)/random_walk.cpp -o $(PATHTEMP)/random_walk.o
$(PATHTEMP)/path_relinking.o: $(PATHSRC)/path_relinking.cpp
$(CPP) $(CCFLAGS) -c $(PATHSRC)/path_relinking.cpp -o $(PATHTEMP)/path_relinking.o
####################################################
###################### CLEAN #######################
####################################################
clean:
rm -rf $(PATHEXEC)
rm -rf $(PATHTEMP)
####################################################
##################### COMPILER #####################
####################################################
##### COMPILER CONFIGURATION's
# Compiler
CPP = g++
# Compilation parameters
CCOPT = -std=c++11 -m64 -O3 -g -fPIC -fexceptions -DIL_STD -pthread #-DDEBUG
# Header's include path
CCFLAGS = $(CCOPT)