SYSTEM = ultrasparc32_8_6.2 #SYSTEM - ultrasparc_5_5.0 LIBFORMAT = static_pic_mt #------------------------------------------------------------ # # 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/cplex90 CONCERTDIR = /opt/concert20 # --------------------------------------------------------------------- # Compiler selection # --------------------------------------------------------------------- CCC = CC CC = cc # --------------------------------------------------------------------- # Compiler options # --------------------------------------------------------------------- CCOPT = -xtarget=ultra -xarch=v8plus -KPIC -DNDEBUG -pto COPT = -xtarget=ultra -xarch=v8plus -KPIC # --------------------------------------------------------------------- # Link options and libraries # --------------------------------------------------------------------- CPLEXBINDIR = $(CPLEXDIR)/bin/$(BINDIST) CPLEXLIBDIR = $(CPLEXDIR)/lib/$(SYSTEM)/$(LIBFORMAT) CONCERTLIBDIR = $(CONCERTDIR)/lib/$(SYSTEM)/$(LIBFORMAT) CCLNFLAGS = -L$(CPLEXLIBDIR) -lilocplex -lcplex -L$(CONCERTLIBDIR) -lconcert -mt -lm -xarch=v8plus -lsocket -lnsl CLNFLAGS = -L$(CPLEXLIBDIR) -lcplex -mt -lm -xarch=v8plus -lsocket -lnsl CONCERTINCDIR = $(CONCERTDIR)/include CPLEXINCDIR = $(CPLEXDIR)/include CFLAGS = $(COPT) -I$(CPLEXINCDIR) CCFLAGS = $(CCOPT) -I$(CPLEXINCDIR) -I$(CONCERTINCDIR) #------------------------------------------------------------ # make all : to compile the examples. #------------------------------------------------------------ CPP_EX = lagrangian benders all_cpp: $(CPP_EX) execute_cpp: $(CPP_EX) # ------------------------------------------------------------ # # The applications # lagrangian: lagrangian.o $(CCC) $(CCFLAGS) lagrangian.o -o lagrangian $(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