Code

utils dbi: Added initial version.
[sysdb.git] / src / Makefile.am
index b2816ebeebde632d506aef92971329e007fde181..4544b5d66412f0f8b7fba0601136c84edcfba5f5 100644 (file)
@@ -33,6 +33,12 @@ libsyscollector_la_LDFLAGS = -version-info 0:0:0 -pthread
 libsyscollector_la_LIBADD = $(LIBLTDL) -lrt liboconfig/liboconfig.la
 libsyscollector_la_DEPENDENCIES = liboconfig/liboconfig.la
 
 libsyscollector_la_LIBADD = $(LIBLTDL) -lrt liboconfig/liboconfig.la
 libsyscollector_la_DEPENDENCIES = liboconfig/liboconfig.la
 
+if BUILD_WITH_LIBDBI
+libsyscollector_la_SOURCES += \
+               utils/dbi.c include/utils/dbi.h
+libsyscollector_la_LIBADD += -ldbi
+endif
+
 bin_PROGRAMS = syscollectord
 
 syscollectord_SOURCES = daemon/syscollectord.c include/syscollector.h \
 bin_PROGRAMS = syscollectord
 
 syscollectord_SOURCES = daemon/syscollectord.c include/syscollector.h \