1 2AM_CPPFLAGS = -I${top_builddir} -I${top_srcdir} 3 4this_includedir=${includedir}/${subdir} 5this_include_HEADERS = \ 6 all.hpp \ 7 analyticamericanmargrabeengine.hpp \ 8 analyticcomplexchooserengine.hpp \ 9 analyticcompoundoptionengine.hpp \ 10 analyticeuropeanmargrabeengine.hpp \ 11 analyticholderextensibleoptionengine.hpp \ 12 analyticpartialtimebarrieroptionengine.hpp \ 13 analyticpdfhestonengine.hpp \ 14 analyticsimplechooserengine.hpp \ 15 analytictwoassetbarrierengine.hpp \ 16 analytictwoassetcorrelationengine.hpp \ 17 analyticwriterextensibleoptionengine.hpp \ 18 complexchooseroption.hpp \ 19 compoundoption.hpp \ 20 continuousarithmeticasianlevyengine.hpp \ 21 continuousarithmeticasianvecerengine.hpp \ 22 everestoption.hpp \ 23 himalayaoption.hpp \ 24 holderextensibleoption.hpp \ 25 kirkspreadoptionengine.hpp \ 26 margrabeoption.hpp \ 27 mceverestengine.hpp \ 28 mchimalayaengine.hpp \ 29 mcpagodaengine.hpp \ 30 pagodaoption.hpp \ 31 partialtimebarrieroption.hpp \ 32 simplechooseroption.hpp \ 33 spreadoption.hpp \ 34 twoassetbarrieroption.hpp \ 35 twoassetcorrelationoption.hpp \ 36 writerextensibleoption.hpp 37 38cpp_files = \ 39 analyticamericanmargrabeengine.cpp \ 40 analyticcomplexchooserengine.cpp \ 41 analyticcompoundoptionengine.cpp \ 42 analyticeuropeanmargrabeengine.cpp \ 43 analyticholderextensibleoptionengine.cpp \ 44 analyticpartialtimebarrieroptionengine.cpp \ 45 analyticpdfhestonengine.cpp \ 46 analyticsimplechooserengine.cpp \ 47 analytictwoassetbarrierengine.cpp \ 48 analytictwoassetcorrelationengine.cpp \ 49 analyticwriterextensibleoptionengine.cpp \ 50 complexchooseroption.cpp \ 51 compoundoption.cpp \ 52 continuousarithmeticasianlevyengine.cpp \ 53 continuousarithmeticasianvecerengine.cpp \ 54 everestoption.cpp \ 55 himalayaoption.cpp \ 56 holderextensibleoption.cpp \ 57 kirkspreadoptionengine.cpp \ 58 margrabeoption.cpp \ 59 mceverestengine.cpp \ 60 mchimalayaengine.cpp \ 61 mcpagodaengine.cpp \ 62 pagodaoption.cpp \ 63 partialtimebarrieroption.cpp \ 64 simplechooseroption.cpp \ 65 twoassetbarrieroption.cpp \ 66 twoassetcorrelationoption.cpp \ 67 writerextensibleoption.cpp 68 69if UNITY_BUILD 70 71nodist_libExoticOptions_la_SOURCES = unity.cpp 72 73unity.cpp: Makefile.am 74 echo "/* This file is automatically generated; do not edit. */" > $@ 75 echo "/* Add the files to be included into Makefile.am instead. */" >> $@ 76 echo >> $@ 77 for i in $(cpp_files); do \ 78 echo "#include \"${subdir}/$$i\"" >> $@; \ 79 done 80 81EXTRA_DIST = $(cpp_files) 82 83else 84 85libExoticOptions_la_SOURCES = $(cpp_files) 86 87endif 88 89noinst_LTLIBRARIES = libExoticOptions.la 90 91all.hpp: Makefile.am 92 echo "/* This file is automatically generated; do not edit. */" > ${srcdir}/$@ 93 echo "/* Add the files to be included into Makefile.am instead. */" >> ${srcdir}/$@ 94 echo >> ${srcdir}/$@ 95 for i in $(filter-out all.hpp, $(this_include_HEADERS)); do \ 96 echo "#include <${subdir}/$$i>" >> ${srcdir}/$@; \ 97 done 98 echo >> ${srcdir}/$@ 99 subdirs='$(SUBDIRS)'; for i in $$subdirs; do \ 100 echo "#include <${subdir}/$$i/all.hpp>" >> ${srcdir}/$@; \ 101 done 102 103