SYSTEM = x86_rhel4.0_3.4
LIBFORMAT = static_pic

CCC = g++-4.1

SRC = main.cpp
OBJ = main.o
INCDIR = ./include
LIBDIR = ./lib

# System/lib-format specific compile/link flags
CSYSFLAGS  = -fPIC -DIL_STD 
LDSYSFLAGS = 

# Compilation and linking flags enabling Multi-threading
CMTFLAGS = -DILOUSEMT -D_REENTRANT
LDMTFLAGS = -lpthread

# Code optimization/debugging options
OPT = -O3 -fomit-frame-pointer -fno-strict-aliasing -DNDEBUG
DEBUG = -g -DDEBUG

# JDK environment
JDK = /usr/java/jdk1.5.0_03
JDKOPTIONS = -d64
JDKINCLUDE = linux

#------------------------------------------------------------
#
# When you adapt this makefile to compile your SOLVER programs
# please copy this makefile and set SOLVERDIR to the directory
# where SOLVER was installed. Please do the same for the CONCERTDIR directory
#
#------------------------------------------------------------

SUFFIX=cpp
SOLVERDIR=/com/ilog/solver64.lintel
CONCERTDIR=$(SOLVERDIR)/../concert24

EXDIR=$(SOLVERDIR)/examples
EXSRC=$(EXDIR)/src
EXINC=$(EXDIR)/include
EXDATA=$(EXDIR)/data

SOLVERIncDir=$(SOLVERDIR)/include
CONCERTIncDir=$(CONCERTDIR)/include

DEMODIR=$(SOLVERDIR)/examples
DEMOSRCDIR=$(DEMODIR)/src

CFLAGS=$(CSYSFLAGS) $(OPT) $(OPTIONS) -I$(SOLVERIncDir) -I$(CONCERTIncDir) -I$(EXINC) -I$(INCDIR) $(CMTFLAGS) 
LDFLAGS=-L$(SOLVERDIR)/lib/$(SYSTEM)/$(LIBFORMAT) -lsolver -lsolverfloat -L$(CONCERTDIR)/lib/$(SYSTEM)/$(LIBFORMAT) -lconcert $(LDSYSFLAGS) $(LDMTFLAGS) $(LIBS) -L$(LIBDIR) -lSSSB

include /com/ilog/solver64.lintel/examples/UserMake.iim
include /com/ilog/solver64.lintel/examples/makefile.debugger

#---------------------------------------------------------
# FILES
#---------------------------------------------------------
TEST =    main

execute: $(TEST)
	./main

build: $(TEST)

clean:
	/bin/rm -rf *.o
	/bin/rm -rf $(TEST)
	touch out.out
	/bin/rm -rf *.out

main.o: $(SRC)
	$(CCC) $(CFLAGS) $(SRC) -c
main: $(OBJ) 
	$(CCC) $(CFLAGS) $(SRC) -o main $(LDFLAGS)
