1
2AM_CPPFLAGS = -I${top_builddir} -I${top_srcdir}
3
4this_includedir=${includedir}/${subdir}
5this_include_HEADERS = \
6    all.hpp \
7    claytoncopularng.hpp \
8    convolvedstudentt.hpp \
9    expm.hpp \
10    farliegumbelmorgensterncopularng.hpp \
11    fireflyalgorithm.hpp \
12    frankcopularng.hpp \
13    gaussiancopulapolicy.hpp \
14    gaussiannoncentralchisquaredpolynomial.hpp \
15    hybridsimulatedannealing.hpp \
16    hybridsimulatedannealingfunctors.hpp \
17    isotropicrandomwalk.hpp \
18    laplaceinterpolation.hpp \
19    latentmodel.hpp \
20    levyflightdistribution.hpp \
21    moorepenroseinverse.hpp \
22    multidimintegrator.hpp \
23    multidimquadrature.hpp \
24    particleswarmoptimization.hpp \
25    piecewisefunction.hpp \
26    piecewiseintegral.hpp \
27    polarstudenttrng.hpp \
28    tcopulapolicy.hpp \
29    zigguratrng.hpp
30
31cpp_files = \
32    convolvedstudentt.cpp \
33    expm.cpp \
34    fireflyalgorithm.cpp \
35    gaussiancopulapolicy.cpp \
36    gaussiannoncentralchisquaredpolynomial.cpp \
37    multidimintegrator.cpp \
38    multidimquadrature.cpp \
39    particleswarmoptimization.cpp \
40    piecewiseintegral.cpp \
41    tcopulapolicy.cpp \
42    zigguratrng.cpp
43
44if UNITY_BUILD
45
46nodist_libMath_la_SOURCES = unity.cpp
47
48unity.cpp: Makefile.am
49	echo "/* This file is automatically generated; do not edit.     */" > $@
50	echo "/* Add the files to be included into Makefile.am instead. */" >> $@
51	echo >> $@
52	for i in $(cpp_files); do \
53		echo "#include \"${subdir}/$$i\"" >> $@; \
54	done
55
56EXTRA_DIST = $(cpp_files)
57
58else
59
60libMath_la_SOURCES = $(cpp_files)
61
62endif
63
64noinst_LTLIBRARIES = libMath.la
65
66all.hpp: Makefile.am
67	echo "/* This file is automatically generated; do not edit.     */" > ${srcdir}/$@
68	echo "/* Add the files to be included into Makefile.am instead. */" >> ${srcdir}/$@
69	echo >> ${srcdir}/$@
70	for i in $(filter-out all.hpp, $(this_include_HEADERS)); do \
71		echo "#include <${subdir}/$$i>" >> ${srcdir}/$@; \
72	done
73	echo >> ${srcdir}/$@
74	subdirs='$(SUBDIRS)'; for i in $$subdirs; do \
75		echo "#include <${subdir}/$$i/all.hpp>" >> ${srcdir}/$@; \
76	done
77
78