-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.save
49 lines (38 loc) · 1.64 KB
/
Makefile.save
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
####################################################
###################### 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)/SampleDecoder.o $(PATHTEMP)/FWChrono.o $(PATHTEMP)/solution.o $(PATHTEMP)/main.o
$(CPP) $(CCFLAGS) $(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
####################################################
###################### 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)