AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir} this_includedir=${includedir}/${subdir} this_include_HEADERS = \ all.hpp \ abcd.hpp \ blackconstantvol.hpp \ blackvariancecurve.hpp \ blackvariancesurface.hpp \ capflatvolvector.hpp \ capletconstantvol.hpp \ capletvariancecurve.hpp \ capletvolatilitiesstructures.hpp \ capstripper.hpp \ cmsmarket.hpp \ impliedvoltermstructure.hpp \ interpolatedsmilesection.hpp \ localconstantvol.hpp \ localvolcurve.hpp \ localvolsurface.hpp \ sabr.hpp \ sabrinterpolatedsmilesection.hpp \ smilesection.hpp \ swaptionconstantvol.hpp \ swaptionvolcube.hpp \ swaptionvolcube1.hpp \ swaptionvolcube2.hpp \ swaptionvoldiscrete.hpp \ swaptionvolmatrix.hpp libVolatilities_la_SOURCES = \ abcd.cpp \ blackvariancecurve.cpp \ blackvariancesurface.cpp \ capletvolatilitiesstructures.cpp \ capstripper.cpp \ cmsmarket.cpp \ localvolsurface.cpp \ sabr.cpp \ sabrinterpolatedsmilesection.cpp \ smilesection.cpp \ swaptionconstantvol.cpp \ swaptionvolcube.cpp \ swaptionvolcube1.cpp \ swaptionvolcube2.cpp \ swaptionvoldiscrete.cpp \ swaptionvolmatrix.cpp noinst_LTLIBRARIES = libVolatilities.la all.hpp: Makefile.am echo "/* This file is automatically generated; do not edit. */" > $@ echo "/* Add the files to be included into Makefile.am instead. */" >> $@ echo >> $@ for i in $(filter-out all.hpp, $(this_include_HEADERS)); do \ echo "#include <${subdir}/$$i>" >> $@; \ done echo >> $@ subdirs='$(SUBDIRS)'; for i in $$subdirs; do \ echo "#include <${subdir}/$$i/all.hpp>" >> $@; \ done