#include <xerion.rules>
#include <xerion.cf>

 LIB = minimize
HDRS = minimize.h checkgrad.h
OBJS = checkgrad.o   datalog.o     direction.o fixedstep.o \
	initialstep.o linesearch.o  minimize.o  newstep.o  \
	raysearch.o   rudisearch.o  tapsearch.o wobbly.o
SRCS = $(OBJS:.o=.c)

/* make the library */
NormalLibraryTarget($(LIB)$(LIBEXT),$(OBJS))
BuildLibrary(all,$(LIB)$(LIBEXT),..,./$(LIB))

/* install library and headers */
InstallLibrary($(LIB)$(LIBEXT),$(LIB_DEST))
InstallMultipleDestFlags(install,$(HDRS),$(INC_DEST)/xerion,-m 0644) 

/* includes necessary for the build, (softlinked somewhere) */
BuildIncludes($(HDRS),xerion,..)

DependTarget()
