Prerelease code will only be used if configure is executed with the
--enable-prerelease option. In that case,
-DWITH_PRERELEASEis added to
WITH_PRERELEASEis added to the
PREDEFINEDvariable in Doxyfile),
BUILD_PRERELEASEis true for automake/autoconf Makefile generation.
There are two steps to adding prerelease code.
In other words, the code should be surrounded by a
WITH_PRERELEASE ifdef as follows.
#ifdef WITH_PRERELEASE // Insert All Code Here #endif
For example, the following modifications were made to
nox/src/Makefile.am to add NOX_Direction_QuasiNewton as prerelease code in the libnox.a library.
if BUILD_PRERELEASE nodist_pkginclude_HEADERS = \ $(srcdir)/NOX_Direction_QuasiNewton.H nodist_libnox_a_SOURCES = \ $(srcdir)/NOX_Direction_QuasiNewton.C endif
Remember to run configure with the