# This feature computational code is based on  Nudelman's code 
# Some bugs about bid graph related features have been fixed 
# If you have any question, please contace xulin730@cs.ubc.ca
#  Lin Xu, 9/22/2008

SYSTEM     = x86_RHEL3.0_3.2
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      = /.autofs/binaries/cslocalgeneric/lib/pkg/ilog/cplex91
CONCERTDIR    = /.autofs/binaries/cslocalgeneric/lib/pkg/ilog/concert21
CONCERTINCDIR = $(CONCERTDIR)/include
CPLEXINCDIR   = $(CPLEXDIR)/include/
CPLEXLIBDIR   = $(CPLEXDIR)/lib/$(SYSTEM)/$(LIBFORMAT)
CONCERTLIBDIR = $(CONCERTDIR)/lib/$(SYSTEM)/$(LIBFORMAT)
CCLNFLAGS = -L$(CPLEXLIBDIR) -lilocplex -lcplex -L$(CONCERTLIBDIR) -lconcert -lm -lpthread

LIB = -lilocplex -lcplex -lconcert -lm -lpthread

LIBDIRS = -L$(CPLEXLIBDIR) -L$(CONCERTLIBDIR) 

OBJ =  main.o BidSet.o Legacy.o stopwatch.o bid.o Param.o normal.o

HFILE = main.h BidSet.h Legacy.h stopwatch.h bid.h Param.h normal.h
 
EXECNAME = MDPfeature

INCLUDE =

RELEASEFLAGS =  -g -O0 
# -O5 -DNDEBUG

.cpp.o:
	g++ -g -Wall -c $< -I$(CPLEXINCDIR)


all: $(OBJ)
	g++ -o $(EXECNAME) $(OBJ) $(CCLNFLAGS) -I$(CPLEXINCDIR) -I$(CONCERTINCDIR) ${RELEASEFLAGS}


clean:
	rm *.o $(EXECNAME)

