SYSTEM = x86_rhel4.0_3.4 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 = /usr/local/cplex110 CONCERTDIR = /usr/local/concert25 # --------------------------------------------------------------------- # Compiler selection # --------------------------------------------------------------------- CCC = g++ CC = gcc JAVAC = javac # --------------------------------------------------------------------- # Compiler options # --------------------------------------------------------------------- CCOPT = -O -fPIC -fexceptions -DNDEBUG -DIL_STD -ggdb2 COPT = -fPIC -ggdb2 # --------------------------------------------------------------------- # 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 -lm -lpthread CLNFLAGS = -L$(CPLEXLIBDIR) -lcplex -lm -lpthread CONCERTINCDIR = $(CONCERTDIR)/include CPLEXINCDIR = $(CPLEXDIR)/include EXDIR = $(CPLEXDIR)/examples EXSRC = $(EXDIR)/src EXINC = $(EXDIR)/include EXDATA = $(EXDIR)/data CFLAGS = $(COPT) -I$(CPLEXINCDIR) CCFLAGS = $(CCOPT) -I$(CPLEXINCDIR) -I$(CONCERTINCDIR) JCFLAGS = $(JOPT) #------------------------------------------------------------ # make all : to compile the examples. # make execute : to compile and execute the examples. #------------------------------------------------------------ CPP_EX = prelim1-11 prelim1 prelim3 lotsizing ag test # ------------------------------------------------------------ # # The examples # lagrangian: lagrangian.o $(CCC) $(CCFLAGS) lagrangian.o -o lag $(CCLNFLAGS) lagrangian.o: lagrangian.cpp $(CCC) -c $(CCFLAGS) lagrangian.cpp -o lagrangian.o benders: benders.o $(CCC) $(CCFLAGS) benders.o -o benders $(CCLNFLAGS) benders.o: benders.cpp $(CCC) -c $(CCFLAGS) benders.cpp -o benders.o lotsizing: lotsizing.o $(CCC) $(CCFLAGS) lotsizing.o -o lotsizing $(CCLNFLAGS) lotsizing.o: lotsizing.cpp $(CCC) -c $(CCFLAGS) lotsizing.cpp -o lotsizing.o