Skip to content

CAIDA/cc-common

Repository files navigation

cc-common

A collection of helper code for C projects.

This code should not be distributed by itself. It is designed to be integrated into a larger project which itself contains autoconf and automake scripts to drive the build process.

Usage

cc-common is designed to be included in projects as a git submodule.

To use cc-common, loosely do the following:

  1. Add cc-common as a git submodule
  1. Update the AC_CONFIG_FILES macro in configure.ac to include: common/Makefile, common/libpatricia/Makefile, and common/libcsv/Makefile. For example:

     AC_CONFIG_FILES([Makefile lib/Makefile
                      tools/Makefile
                      common/Makefile
                      common/libpatricia/Makefile
                      common/libcsv/Makefile
                     ])
    
  2. In the main Makefile.am file for your library (usually /lib/Makefile.am), add $(top_builddir)/common/libcccommon.la to the LIBADD variable. For example:

     libsomething_la_LIBADD = $(top_builddir)/common/libcccommon.la
    
  3. To include header files directly, you may need to add to the AM_CPPFLAGS variable in the appropriate Makefile.am. For example:

     AM_CPPFLAGS = -I$(top_srcdir) \
                   -I$(top_srcdir)/common/ \
                   -I$(top_srcdir)/common/libpatricia \
                   -I$(top_srcdir)/common/libcsv
    
  4. Run autoreconf and configure and you should be all set.

Copyright

All code has been written by Alistair King [email protected] and is released under a BSD license, except:

About

A collection of helper code for C projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published