#-----------------------------------------------------------------------
#
# Modsparpat, makefile
#
#-----------------------------------------------------------------------

# Compiler
CC = g++
CFLAGS = -g
LIBS = -lm -lstdc++

# Definitions for ADOL-C
# CHANGE THIS TO YOUR ADOL-C BASE DIRECTORY
ADPATH = $(HOME)/AD/ADOL-C/adolc_base_coin/include/adolc
ADLIBDIR = $(HOME)/AD/ADOL-C/adolc_base_coin/lib
ADCFLAGS = -I$(ADPATH) -I$(ADPATH) -I.
ADLIBS = -Wl,--rpath -Wl,$(ADLIBDIR) -L$(ADLIBDIR) -ladolc $(HOME)/AD/ADOL-C/adolc_base_coin/lib/libColPack.a

all: exam_condassign


#**************************************************************************
#                                                              MODSPARPAT *

exam_condassign : exam_condassign.o
	$(CC) -o exam_condassign $(CFLAGS) $(ADCFLAGS) \
               exam_condassign.o  $(LIBS) $(ADLIBS)

exam_condassign.o : exam_condassign.cpp 
	$(CC) -c $(CFLAG) $(ADCFLAGS) exam_condassign.cpp

#**************************************************************************
#                                                                         *
clean:
	rm *.o; rm exam_condassign;




