File: make.local

package info (click to toggle)
mccs 1:1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 708 kB
  • ctags: 948
  • sloc: ansic: 6,051; yacc: 652; makefile: 148; lex: 129; sh: 26
file content (113 lines) | stat: -rw-r--r-- 2,626 bytes parent folder | download | duplicates (4)
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

#======================================================
# GLPK settings (required)
# see http://www.gnu.org/software/glpk/
#======================================================

# if you want to use cplex uncomment next line (or use USEGLPK=1 as make parameter) 
#USEGLPK=1


ifeq ($(USEGLPK),1)

# Path to GLPK main dir
GLPKDIR=$(PWD)/../glpk

# Path to the GPLK include files
GLPKINC=$(GLPKDIR)/include/

# GPLK library path and options
GLPKLD=-L${GLPKDIR}/lib -lglpk -Wl,-rpath,${GLPKDIR}/lib

endif


#======================================================
# LPSOLVE settings (required)
# see http://lpsolve.sourceforge.net/
#======================================================

# if you want to use cplex uncomment next line (or use USELPSOLVE=1 as make parameter) 
USELPSOLVE=1


ifeq ($(USELPSOLVE),1)

# Path to the LPSOLVE main dir
LPSOLVEDIR=/usr/lib

# Path to the LPSOLVE include files
LPSOLVEINC=/usr/include/lpsolve

# LPSOLVE library path and options
LPSOLVELD=-L${LPSOLVEDIR} -llpsolve55 -ldl -lcolamd

endif


#======================================================
# CPLEX settings (optional)
# see http://www-01.ibm.com/software/integration/optimization/cplex/
#======================================================

# if you want to use cplex uncomment next line (or use USECPLEX=1 as make parameter) 
#USECPLEX=1


ifeq ($(USECPLEX),1)

# Path to the CPLEX main dir
CPXDIR=/usr/local/ilog_academic/cplex_studio_12.2

# path to cplex include directory
CPXINC=$(CPXDIR)/cplex/include/

# path to cplex library
CPXLIB=$(CPXDIR)/cplex/lib/x86-64_sles10_4.1/static_pic

# cplex ld flags
CPXLD=-L$(CPXLIB) -lcplex -lm -lpthread

endif


#======================================================
# Gurobi settings (optional)
# see http://www.gurobi.com
#======================================================

# if you want to use gurobi uncomment next line (or use USEGUROBI=1 as make parameter) 
#USEGUROBI=1


ifeq ($(USEGUROBI),1)

# Path to the main GUROBI dir
GUROBIDIR=/usr/local/gurobi/gurobi451/linux64

# path to gurobi include directory
GUROBIINC=$(GUROBIDIR)/include/ 

# path to gurobi library
GUROBILIB=$(GUROBIDIR)/lib/

# gurobi ld flags
GUROBILD=-L$(GUROBILIB) -lgurobi45 -lpthread -lm -Wl,-rpath,$(GUROBILIB)

endif


#####################################################################
# compiler setting (must be compiled using a C++ compiler (only tested with g++))
#####################################################################

SRCLIB=libsrcs
SRCDIR=sources
OBJDIR=objs

INC=-I$(OBJDIR) -I$(SRCDIR) -I$(SRCLIB)
#CCCOPT=-g -Wall
CCCOPT=-Wall -O6
CCC=g++ $(CCCOPT) $(LDFLAGS)