>>> On 7/8/2008 at 3:03 AM, in message
<[EMAIL PROTECTED] 
, <[EMAIL PROTECTED]> wrote:

> 
> 
> 
> 
> I'm now trying to integrate a new module with the build system, so that
> it builds when the other modules are built.
> 
> I've implemented for Linux and Solaris.  I've put the OS-specific code
> in files names io_helper_linux.c and io_helper_solaris.c respectively.
> 
> I wanted to use something like this as my Makefile.am, but I'm not sure
> how to make @OS@ work the way it does for libmetric:
> 
> ------------------------------------------------------------------------
> ---
> 
> AM_CFLAGS  = -D_LARGEFILE64_SOURCE -I$(top_builddir)/include
> -I$(top_builddir)/libmetrics -I$(top_builddir)/lib 
> 
> if STATIC_BUILD
> noinst_LTLIBRARIES      = libmodio.la
> libmodio_la_SOURCES     = mod_io.c [EMAIL PROTECTED]@.c 
> libmodio_la_LDFLAGS     = -export-all-symbols
> else
> pkglib_LTLIBRARIES    = modio.la
> modio_la_SOURCES = mod_io.c [EMAIL PROTECTED]@.c 
> modio_la_LDFLAGS = -module -avoid-version
> modio_la_LIBADD = $(top_builddir)/libmetrics/libmetrics.la
> endif
> 
> INCLUDES = @APR_INCLUDES@
> 
> 
> ------------------------------------------------------------------------
> ---
> 
> 
> Also, are there any recommendations/examples for building C modules
> outside the Ganglia source tree so that they can be built without the
> presence of the Ganglia source?
> 

I've done it with mod_example by just including the ganglia public headers.  
Other than that, there isn't much to it.  Why are you including libmetrics and 
lib headers?

Brad


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to