#----------------------------------------------------------------------------
#                                DFO                                      
#----------------------------------------------------------------------------
# This file will compile all the DFO modules in order to make the Unix
# library libdfo.a.
#
# The following variables are used:
#
# COMPILER - set to use the gcc compiler
# OBJS     - list of object files in libdfo.a
# OPTS - compiler options
#
# Modify the COMPILER and OPTS variables as needed.

   
COMPILER = gcc
OPTS = -g -O -I../CLAPACK -I../LIBF2C 

OBJ = dfo.o dfosolv.o ptinit.o nbuild.o evalnp.o mintr_cfsqp.o\
		mbuild.o fd.o gterms.o zero.o funobj.o mvalue.o \
		 impmod.o xgnew.o getnp.o ptrepl.o ptexch.o nextnp.o ranlux.o
		 
SRC = dfo.c dfosolv.c ptinit.c nbuild.c evalnp.c mintr_cfsqp.c\
		mbuild.c fd.c gterms.c zero.c funobj.c mvalue.c \
		 impmod.c xgnew.c getnp.c ptrepl.c ptexch.c nextnp.c ranlux.c

lib ./libdfo.a: $(OBJ)
	(ar rcv ./libdfo.a $(OBJ); ranlib ./libdfo.a)

$(OBJ):
	$(COMPILER) $(OPTS) -c $(SRC)

clean:
	rm *.o


