This repository has been archived by the owner on Dec 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (53 loc) · 2.18 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
all:
$(CCC) $(CCFLAGS) $(GCC_FLAGS) main.cpp -o main $(CCLNFLAGS)
######################### NÃO ALTERAR ABAIXO ###########################
GCC_FLAGS=-O3 -lpthread -lstdc++
#GCC_FLAGS=-g -O0 -lpthread
clean:
rm -f main
rm -f *.o
SYSTEM = x86-64_linux
LIBFORMAT = static_pic
#------------------------------------------------------------
#
# When you adapt this makefile to compile your CPLEX programs
# please copy this makefile and set CPLEXDIR and CONCERTDIR to
# the directories where CPLEX and CONCERT are installed.
#
#------------------------------------------------------------
CPLEXDIR = /opt/ibm/ILOG/CPLEX_Studio201/cplex
CONCERTDIR = /opt/ibm/ILOG/CPLEX_Studio201/concert
# ---------------------------------------------------------------------
# Compiler selection
# ---------------------------------------------------------------------
CCC = g++
CC = gcc
JAVAC = javac
# ---------------------------------------------------------------------
# Compiler options
# ---------------------------------------------------------------------
# -DDEBUG
CCOPT = -m64 -fPIC -fexceptions -DIL_STD -g -O0 -w
COPT = -m64 -fPIC -w
JOPT = -classpath $(CPLEXDIR)/lib/cplex.jar -O
# ---------------------------------------------------------------------
# Link options and libraries
# ---------------------------------------------------------------------
CPLEXBINDIR = $(CPLEXDIR)/bin/$(BINDIST)
CPLEXJARDIR = $(CPLEXDIR)/lib/cplex.jar
CPLEXLIBDIR = $(CPLEXDIR)/lib/$(SYSTEM)/$(LIBFORMAT)
CONCERTLIBDIR = $(CONCERTDIR)/lib/$(SYSTEM)/$(LIBFORMAT)
CCLNFLAGS = -L$(CPLEXLIBDIR) -lilocplex -lcplex -L$(CONCERTLIBDIR) -lconcert -m64 -lm -pthread -ldl
CLNFLAGS = -L$(CPLEXLIBDIR) -lcplex -m64 -lm -pthread -ldl
JAVA = java -Djava.library.path=$(CPLEXDIR)/bin/x86-64_sles10_4.1 -classpath $(CPLEXJARDIR):
CONCERTINCDIR = $(CONCERTDIR)/include
CPLEXINCDIR = $(CPLEXDIR)/include
EXDIR = $(CPLEXDIR)/examples
EXINC = $(EXDIR)/include
EXDATA = $(EXDIR)/data
EXSRCC = $(EXDIR)/src/c
EXSRCCPP = $(EXDIR)/src/cpp
EXSRCJAVA = $(EXDIR)/src/java
CFLAGS = $(COPT) -I$(CPLEXINCDIR)
CCFLAGS = $(CCOPT) -I$(CPLEXINCDIR) -I$(CONCERTINCDIR) -lstdc++
JCFLAGS = $(JOPT)