Configuration of BES Modules: Difference between revisions
From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
mNo edit summary |
mNo edit summary |
||
Line 7: | Line 7: | ||
* Add it to modules/Makefile.am | * Add it to modules/Makefile.am | ||
* Hack the module's Makefile.ac so that CPPFLAGS and LIBADD reference the correct places given that the code will build w/o bes first being installed | * Hack the module's Makefile.ac so that CPPFLAGS and LIBADD reference the correct places given that the code will build w/o bes first being installed | ||
<source lang=" | <source lang="bash"> | ||
if DAP_MODULES | if DAP_MODULES | ||
AM_CPPFLAGS = -I$(top_srcdir)/dispatch -I$(top_srcdir)/dap $(DAP_CFLAGS) | AM_CPPFLAGS = -I$(top_srcdir)/dispatch -I$(top_srcdir)/dap $(DAP_CFLAGS) | ||
Line 17: | Line 17: | ||
</source> | </source> | ||
then | then | ||
<source lang=" | <source lang="bash"> | ||
# comment this out to force use of AM_CPPFLAGS libcsv_module_la_CPPFLAGS = ... | # comment this out to force use of AM_CPPFLAGS libcsv_module_la_CPPFLAGS = ... | ||
libcsv_module_la_LIBADD = $(LIBADD) | libcsv_module_la_LIBADD = $(LIBADD) | ||
</source> | </source> |
Revision as of 21:13, 20 November 2014
Under construction 11/20/14
Use the 'modules' branch of 'bes'
For each module to be added:
- check it out in the bes/modules dir using "submodule add <github repo>"
- Add it to modules/Makefile.am
- Hack the module's Makefile.ac so that CPPFLAGS and LIBADD reference the correct places given that the code will build w/o bes first being installed
if DAP_MODULES
AM_CPPFLAGS = -I$(top_srcdir)/dispatch -I$(top_srcdir)/dap $(DAP_CFLAGS)
LIBADD = $(DAP_SERVER_LIBS) $(DAP_CLIENT_LIBS)
else
AM_CPPFLAGS = $(BES_CPPFLAGS) # or wahtever was set here or in ..._CPPFLAGS
LIBADD = $(BES_DAP_LIBS) # and ..._LIBADD
endif
then
# comment this out to force use of AM_CPPFLAGS libcsv_module_la_CPPFLAGS = ...
libcsv_module_la_LIBADD = $(LIBADD)