-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (35 loc) · 1.06 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
SOURCES = src/main.c \
./src/bnb.c \
./src/construction.c \
./src/expand.c \
./src/load.c \
./src/localsearch.c \
./src/localsearch_resende.c \
./src/localsearch_whitaker.c \
./src/output.c \
./src/problem.c \
./src/redstrategy.c \
./src/reduction.c \
./src/reduction_diversity.c \
./src/reduction_rank.c \
./src/reduction_vr.c \
./src/rundata.c \
./src/runinfo.c \
./src/runprecomp.c \
./src/shuffle.c \
./src/solution.c \
./src/utils.c
SOURCES_OPT_CHECKER = src/main_opt_checker.c \
src/redstrategy.c \
src/utils.c \
src/load.c \
src/problem.c \
src/solution.c
compile:
rm -rf bin || true
mkdir bin
gcc -g -O4 -march=native -flto -Wall $(SOURCES) -lpthread -lm -o bin/dc
gcc -g -O2 -Wall $(SOURCES) -lpthread -lm -o bin/dc_O2
gcc -g -pg -O4 -march=native -flto -Wall $(SOURCES) -lpthread -lm -o bin/dc_prof
gcc -g -pedantic -Wall $(SOURCES) -lpthread -lm -D DEBUG -o bin/dc_debug
gcc -g -O4 -march=native -flto -Wall $(SOURCES_OPT_CHECKER) -lpthread -lm -o bin/opt_checker