-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
130 lines (94 loc) · 3.97 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#Makefile for Epic
GAINC_DIR = ./spea2/src
GALIB_DIR = ./spea2/lib
GASRC_DIR = ./spea2/src
CC = gcc
CXX = g++
# Misc stuff for mpi environment support
# if you want, adapt it and export EPIC_MPI=1 before compiling
ifdef EPIC_MPI
MPICC = mpicxx
CFLAGS += -DEPIC_MPI -DMPICH_IGNORE_CXX_SEEK
#CFLAGS += -DEPIC_MPI -DMPICH_IGNORE_CXX_SEEK -DNDEBUG -Minform=severe Ktrap=fp
else
MPICC = ${CXX}
CFLAGS += -DNDEBUG
#CFLAGS += -DTEST -DNDEBUG
#CFLAGS += -O2 -DNDEBUG
CFLAGS += -g
endif
#<aa> added by [email protected]
# If it is defined, a lot of redundant and overabundant checks will be performed to
# check for inconsistent states or data. This can be useful when you edit the code to be
# sure that the modifications do not produce those inconcistencies</aa>
CFLAGS += -DSEVERE_DEBUG
#</aa>
all: epic
epic: ${GALIB_DIR}/libspea2.a compiler.o explorer.o alg_dep.o alg_random.o alg_sensivity.o alg_genetic.o \
estimator.o area.o time.o processor.o mem_hierarchy.o \
main.o user_interface.o trimaran_interface.o \
parameter.o common.o simulate_space.o \
FuzzyApprox.o RuleList.o FuzzyWrapper.o alg_paramspace.o
${MPICC} compiler.o explorer.o simulate_space.o alg_dep.o alg_random.o alg_sensivity.o alg_genetic.o \
user_interface.o trimaran_interface.o estimator.o area.o time.o \
processor.o mem_hierarchy.o main.o parameter.o common.o \
FuzzyApprox.o RuleList.o FuzzyWrapper.o alg_paramspace.o \
-L${GALIB_DIR} -lspea2 -o epic
compiler.o: compiler.cpp compiler.h parameter.h
${CXX} -I${GAINC_DIR} ${CFLAGS} -c compiler.cpp
estimator.o: estimator.cpp estimator.h processor.h mem_hierarchy.h \
power_densities.h cacti_area_interface.h
${CXX} ${CFLAGS} -c estimator.cpp
explorer.o: explorer.cpp explorer.h processor.h trimaran_interface.h \
mem_hierarchy.h estimator.h parameter.h common.h \
FunctionApprox.h FuzzyApprox.h FannApprox.h
${MPICC} -I${GAINC_DIR} ${CFLAGS} -c explorer.cpp
simulate_space.o: simulate_space.cpp explorer.h
${MPICC} -I${GAINC_DIR} ${CFLAGS} -c simulate_space.cpp
alg_dep.o: alg_dep.cpp explorer.h common.h
${MPICC} -I${GAINC_DIR} ${CFLAGS} -c alg_dep.cpp
alg_sensivity.o: alg_sensivity.cpp explorer.h common.h
${MPICC} -I${GAINC_DIR} ${CFLAGS} -c alg_sensivity.cpp
alg_random.o: alg_random.cpp explorer.h common.h
${MPICC} -I${GAINC_DIR} ${CFLAGS} -c alg_random.cpp
alg_genetic.o: alg_genetic.cpp explorer.h common.h
${MPICC} -I${GAINC_DIR} ${CFLAGS} -c alg_genetic.cpp
alg_paramspace.o: alg_paramspace.cpp paramspace.h
${MPICC} -I${GAINC_DIR} ${CFLAGS} -c alg_paramspace.cpp
processor.o: processor.cpp processor.h parameter.h
${CXX} ${CFLAGS} -c processor.cpp
mem_hierarchy.o: mem_hierarchy.cpp mem_hierarchy.h parameter.h
${CXX} ${CFLAGS} -c mem_hierarchy.cpp
main.o: main.cpp user_interface.h
${MPICC} -I${GAINC_DIR} ${CFLAGS} -c main.cpp
user_interface.o: user_interface.cpp user_interface.h \
explorer.h estimator.h trimaran_interface.h processor.h \
mem_hierarchy.h environment.h version.h
${MPICC} -I${GAINC_DIR} ${CFLAGS} -c user_interface.cpp
trimaran_interface.o: trimaran_interface.cpp trimaran_interface.h processor.h
${MPICC} ${CFLAGS} -c trimaran_interface.cpp
area.o: cacti.h area.c
${CC} ${CFLAGS} -c area.c
time.o: cacti.h time.c
${CC} ${CFLAGS} -c time.c
parameter.o: parameter.cpp parameter.h
${CXX} ${CFLAGS} -c parameter.cpp
common.o: common.cpp common.h
${MPICC} ${CFLAGS} -c common.cpp
FuzzyApprox.o: FuzzyApprox.cpp FuzzyApprox.h common.h RuleList.h FunctionApprox.h
${CXX} ${CFLAGS} -c FuzzyApprox.cpp
# ${CXX} ${CFLAGS} -funroll-loops -ffast-math -c FuzzyApprox.cpp
RuleList.o: RuleList.cpp RuleList.h common.h
${CXX} ${CFLAGS} -c RuleList.cpp
# ${CXX} ${CFLAGS} -funroll-loops -ffast-math -c RuleList.cpp
FuzzyWrapper.o: FuzzyWrapper.cpp FuzzyApprox.h
${CXX} ${CFLAGS} -c FuzzyWrapper.cpp
.PHONY: spea2 clean cleanall
spea2: ${GALIB_DIR}/libspea2.a
${GALIB_DIR}/libspea2.a: ${GASRC_DIR}/*.cpp ${GASRC_DIR}/*.h
${MAKE} -C ${GASRC_DIR}
clean:
rm -f *.o epic *~ core
cleanall: clean
${MAKE} -C ${GASRC_DIR} clean
# DO NOT DELETE