sbin_PROGRAMS = cgconfigparser cgclear
+lib_LTLIBRARIES = libcgset.la
+
cgexec_SOURCES = cgexec.c tools-common.c tools-common.h
cgexec_LIBS = $(CODE_COVERAGE_LIBS)
cgexec_CFLAGS = $(CODE_COVERAGE_CFLAGS)
cgcreate_LIBS = $(CODE_COVERAGE_LIBS)
cgcreate_CFLAGS = $(CODE_COVERAGE_CFLAGS)
+libcgset_la_SOURCES = cgset.c tools-common.c tools-common.h
+libcgset_la_LIBADD = $(CODE_COVERAGE_LIBS)
+libcgset_la_CFLAGS = $(CODE_COVERAGE_CFLAGS) -DSTATIC= -DUNIT_TEST
+
cgset_SOURCES = cgset.c tools-common.c tools-common.h
cgset_LIBS = $(CODE_COVERAGE_LIBS)
-cgset_CFLAGS = $(CODE_COVERAGE_CFLAGS)
+cgset_CFLAGS = $(CODE_COVERAGE_CFLAGS) -DSTATIC=static
cgget_SOURCES = cgget.c tools-common.c tools-common.h
cgget_LIBS = $(CODE_COVERAGE_LIBS)
#define __TOOLS_COMMON
+__BEGIN_DECLS
#include "config.h"
#include <libcgroup.h>
#include "../libcgroup-internal.h"
int parse_uid_gid(char *string, uid_t *uid, gid_t *gid,
const char *program_name);
+/**
+ * Functions that are defined as STATIC can be placed within the UNIT_TEST
+ * ifdef. This will allow them to be included in the unit tests while
+ * remaining static in a normal libcgroup build.
+ */
+#ifdef UNIT_TEST
+#endif /* UNIT_TEST */
+
+__END_DECLS
+
#endif /* TOOLS_COMMON */