| 1 | LIBSCOPTIMIZESOURCES = \
 | 
|---|
| 2 |         math/optimize/conv.cc \
 | 
|---|
| 3 |         math/optimize/dfp.cc \
 | 
|---|
| 4 |         math/optimize/diis.cc \
 | 
|---|
| 5 |         math/optimize/efc.cc \
 | 
|---|
| 6 |         math/optimize/function.cc \
 | 
|---|
| 7 |         math/optimize/gdiis.cc \
 | 
|---|
| 8 |         math/optimize/mcsearch.cc \
 | 
|---|
| 9 |         math/optimize/newton.cc \
 | 
|---|
| 10 |         math/optimize/opt.cc \
 | 
|---|
| 11 |         math/optimize/powell.cc \
 | 
|---|
| 12 |         math/optimize/qnewton.cc \
 | 
|---|
| 13 |         math/optimize/scextrap.cc \
 | 
|---|
| 14 |         math/optimize/scextrapmat.cc \
 | 
|---|
| 15 |         math/optimize/steep.cc \
 | 
|---|
| 16 |         math/optimize/transform.cc \
 | 
|---|
| 17 |         math/optimize/update.cc
 | 
|---|
| 18 | 
 | 
|---|
| 19 | 
 | 
|---|
| 20 | LIBSCOPTIMIZEHEADERS = \
 | 
|---|
| 21 |         math/optimize/conv.h \
 | 
|---|
| 22 |         math/optimize/diis.h \
 | 
|---|
| 23 |         math/optimize/efc.h \
 | 
|---|
| 24 |         math/optimize/function.h \
 | 
|---|
| 25 |         math/optimize/gdiis.h \
 | 
|---|
| 26 |         math/optimize/linkage.h \
 | 
|---|
| 27 |         math/optimize/mcsearch.h \
 | 
|---|
| 28 |         math/optimize/newton.h \
 | 
|---|
| 29 |         math/optimize/opt.h \
 | 
|---|
| 30 |         math/optimize/qnewton.h \
 | 
|---|
| 31 |         math/optimize/scextrap.h \
 | 
|---|
| 32 |         math/optimize/scextrapmat.h \
 | 
|---|
| 33 |         math/optimize/steep.h \
 | 
|---|
| 34 |         math/optimize/transform.h \
 | 
|---|
| 35 |         math/optimize/update.h
 | 
|---|
| 36 | 
 | 
|---|
| 37 | 
 | 
|---|
| 38 | lib_LTLIBRARIES +=
 | 
|---|
| 39 | noinst_LTLIBRARIES += libSCoptimize.la
 | 
|---|
| 40 | libSCoptimize_la_includedir = $(includedir)/math/optimize
 | 
|---|
| 41 | libSCoptimize_la_CPPFLAGS = $(AM_CPPFLAGS)
 | 
|---|
| 42 | libSCoptimize_la_LDFLAGS = $(AM_LDFLAGS)
 | 
|---|
| 43 | libSCoptimize_la_LIBADD =
 | 
|---|
| 44 | 
 | 
|---|
| 45 | nobase_libSCoptimize_la_include_HEADERS = ${LIBSCOPTIMIZEHEADERS}
 | 
|---|
| 46 | 
 | 
|---|
| 47 | ## Define the source file list for the "libexample-@MPQC_API_VERSION@.la"
 | 
|---|
| 48 | ## target.  Note that @MPQC_API_VERSION@ is not interpreted by Automake and
 | 
|---|
| 49 | ## will therefore be treated as if it were literally part of the target name,
 | 
|---|
| 50 | ## and the variable name derived from that.
 | 
|---|
| 51 | ## The file extension .cc is recognized by Automake, and makes it produce
 | 
|---|
| 52 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
 | 
|---|
| 53 | ## from each source file.  Note that it is not necessary to list header files
 | 
|---|
| 54 | ## which are already listed elsewhere in a _HEADERS variable assignment.
 | 
|---|
| 55 | libSCoptimize_la_SOURCES = ${LIBSCOPTIMIZESOURCES}
 | 
|---|
| 56 | 
 | 
|---|
| 57 | ## Instruct libtool to include ABI version information in the generated shared
 | 
|---|
| 58 | ## library file (.so).  The library ABI version is defined in configure.ac, so
 | 
|---|
| 59 | ## that all version information is kept in one place.
 | 
|---|
| 60 | #libSCoptimize_la_LDFLAGS += $(AM_LDFLAGS) -version-info $(MPQC_SO_VERSION)
 | 
|---|
| 61 | 
 | 
|---|
| 62 | ## The generated configuration header is installed in its own subdirectory of
 | 
|---|
| 63 | ## $(libdir).  The reason for this is that the configuration information put
 | 
|---|
| 64 | ## into this header file describes the target platform the installed library
 | 
|---|
| 65 | ## has been built for.  Thus the file must not be installed into a location
 | 
|---|
| 66 | ## intended for architecture-independent files, as defined by the Filesystem
 | 
|---|
| 67 | ## Hierarchy Standard (FHS).
 | 
|---|
| 68 | ## The nodist_ prefix instructs Automake to not generate rules for including
 | 
|---|
| 69 | ## the listed files in the distribution on 'make dist'.  Files that are listed
 | 
|---|
| 70 | ## in _HEADERS variables are normally included in the distribution, but the
 | 
|---|
| 71 | ## configuration header file is generated at configure time and should not be
 | 
|---|
| 72 | ## shipped with the source tarball.
 | 
|---|
| 73 | #libSCoptimize_libincludedir = $(libdir)/math/optimize/include
 | 
|---|
| 74 | #nodist_libSCoptimize_libinclude_HEADERS = $(top_builddir)/src/lib/scconfig.h
 | 
|---|
| 75 | 
 | 
|---|
| 76 | 
 | 
|---|
| 77 | OPTIMIZETESTS = \
 | 
|---|
| 78 |         opttest \
 | 
|---|
| 79 |         scextest_optimize \
 | 
|---|
| 80 |         kvopt
 | 
|---|
| 81 | 
 | 
|---|
| 82 | # ?opttest crashes with mpi (also in original implementation)
 | 
|---|
| 83 | # ?scextest_optimize crashes with mpi (also in original implementation)
 | 
|---|
| 84 | 
 | 
|---|
| 85 | # kvopt requires argument
 | 
|---|
| 86 | XFAIL_TESTS += \
 | 
|---|
| 87 |         kvopt
 | 
|---|
| 88 | 
 | 
|---|
| 89 | TESTS += $(OPTIMIZETESTS)
 | 
|---|
| 90 | check_PROGRAMS += $(OPTIMIZETESTS)
 | 
|---|
| 91 | noinst_PROGRAMS += $(OPTIMIZETESTS)
 | 
|---|
| 92 | 
 | 
|---|
| 93 | OPTIMIZELIBS = \
 | 
|---|
| 94 |         libSCoptimize.la libSCscmat.la libSCgroup.la libSCmisc.la libSCstate.la libSCkeyval.la libSCclass.la libSCcontainer.la libSCref.la
 | 
|---|
| 95 | 
 | 
|---|
| 96 | opttest_SOURCES = \
 | 
|---|
| 97 |         math/optimize/opttest.cc
 | 
|---|
| 98 | opttest_CPPFLAGS = $(AM_CPPFLAGS) -DSRCDIR=\"$(srcdir)/math/optimize\"
 | 
|---|
| 99 | opttest_LDADD = \
 | 
|---|
| 100 |         $(OPTIMIZELIBS)
 | 
|---|
| 101 | 
 | 
|---|
| 102 | scextest_optimize_SOURCES = \
 | 
|---|
| 103 |         math/optimize/scextest.cc
 | 
|---|
| 104 | scextest_optimize_CPPFLAGS = $(AM_CPPFLAGS) -DSRCDIR=\"$(srcdir)/math/optimize\"
 | 
|---|
| 105 | scextest_optimize_LDADD = \
 | 
|---|
| 106 |         $(OPTIMIZELIBS)
 | 
|---|
| 107 | 
 | 
|---|
| 108 | kvopt_SOURCES = \
 | 
|---|
| 109 |         math/optimize/kvopt.cc
 | 
|---|
| 110 | kvopt_LDADD = \
 | 
|---|
| 111 |         $(OPTIMIZELIBS)
 | 
|---|
| 112 | 
 | 
|---|
| 113 | EXTRA_DIST += ./math/optimize/opttest.in
 | 
|---|
| 114 | EXTRA_DIST += ./math/optimize/scextest.in
 | 
|---|
| 115 | 
 | 
|---|
| 116 | DISTCLEANFILES += \
 | 
|---|
| 117 |         scextest.ckpt
 | 
|---|