X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2FMakefile.am;h=1e809cab4dd9f76aae48e60da39a54c5e093695f;hb=e2d94a3eba924a4fd3c79d1ed99a57ae8bfb9282;hp=09b81b72727d33e625dad9cd65fc4ed30cb7dfbb;hpb=6138090532ecfc07b00b10287f835dfe5a0bef3b;p=sysdb.git diff --git a/src/Makefile.am b/src/Makefile.am index 09b81b7..1e809ca 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,9 @@ SUBDIRS = liboconfig -AM_CFLAGS = @STRICT_CFLAGS@ -Iinclude -AM_CPPFLAGS = -DSYSCONFDIR='"${sysconfdir}"' +AM_CFLAGS = @STRICT_CFLAGS@ +AM_CPPFLAGS = -Iinclude +AM_CPPFLAGS += -DSYSCONFDIR='"${sysconfdir}"' +AM_CPPFLAGS += -DLOCALSTATEDIR='"${localstatedir}"' AM_CPPFLAGS += -DPKGLIBDIR='"${pkglibdir}"' BUILT_SOURCES = include/sysdb.h @@ -9,11 +11,23 @@ BUILT_SOURCES = include/sysdb.h pkginclude_HEADERS = include/sysdb.h pkgcoreincludedir = $(pkgincludedir)/core pkgcoreinclude_HEADERS = \ + include/core/data.h \ + include/core/error.h \ include/core/object.h \ - include/core/plugin.h + include/core/plugin.h \ + include/core/store.h \ + include/core/time.h +pkgfeincludedir = $(pkgincludedir)/frontend +pkgfeinclude_HEADERS = \ + include/frontend/connection.h \ + include/frontend/sock.h pkgutilsincludedir = $(pkgincludedir)/utils pkgutilsinclude_HEADERS = \ - include/utils/llist.h + include/utils/channel.h \ + include/utils/dbi.h \ + include/utils/llist.h \ + include/utils/strbuf.h \ + include/utils/unixsock.h lib_LTLIBRARIES = libsysdb.la @@ -24,6 +38,11 @@ libsysdb_la_SOURCES = \ core/store.c include/core/store.h \ include/core/data.h \ core/error.c include/core/error.h \ + frontend/connection.c include/frontend/connection.h \ + include/frontend/connection-private.h \ + frontend/sock.c include/frontend/sock.h \ + frontend/session.c \ + utils/channel.c include/utils/channel.h \ utils/llist.c include/utils/llist.h \ utils/strbuf.c include/utils/strbuf.h \ core/time.c include/core/time.h \ @@ -54,11 +73,13 @@ dist_sdbconf_DATA = daemon/sysdbd.conf.sample pkgbackendlibdir = $(pkglibdir)/backend pkgbackendcollectdlibdir = $(pkgbackendlibdir)/collectd pkgbackendpuppetlibdir = $(pkgbackendlibdir)/puppet +pkgcnamelibdir = $(pkglibdir)/cname pkglib_LTLIBRARIES = pkgbackendlib_LTLIBRARIES = pkgbackendcollectdlib_LTLIBRARIES = pkgbackendpuppetlib_LTLIBRARIES = +pkgcnamelib_LTLIBRARIES = if BUILD_PLUGIN_COLLECTD pkgbackendcollectdlib_LTLIBRARIES += backend/collectd/unixsock.la @@ -92,6 +113,14 @@ libsysdb_la_LIBADD += -dlopen plugins/syslog.la libsysdb_la_DEPENDENCIES += plugins/syslog.la endif +if BUILD_PLUGIN_CNAMEDNS +pkgcnamelib_LTLIBRARIES += plugins/cname/dns.la +plugins_cname_dns_la_SOURCE = plugins/cname/dns.c +plugins_cname_dns_la_LDFLAGS = -module -avoid-version +libsysdb_la_LIBADD += -dlopen plugins/cname/dns.la +libsysdb_la_DEPENDENCIES += plugins/cname/dns.la +endif + include/sysdb.h: include/sysdb.h.in ../version source ../version; sed \ -e "s/@SDB_VERSION_MAJOR@/$$VERSION_MAJOR/g" \