X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2FMakefile.am;h=34470aec61badf497f21a50aef3f7279160365c1;hb=1b1353218a7e432afc2c6a8da92966578a700734;hp=09b81b72727d33e625dad9cd65fc4ed30cb7dfbb;hpb=6138090532ecfc07b00b10287f835dfe5a0bef3b;p=sysdb.git diff --git a/src/Makefile.am b/src/Makefile.am index 09b81b7..34470ae 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,13 +11,39 @@ 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 - -lib_LTLIBRARIES = libsysdb.la + include/utils/channel.h \ + include/utils/dbi.h \ + include/utils/llist.h \ + include/utils/proto.h \ + include/utils/strbuf.h \ + include/utils/unixsock.h + +pkgclientincludedir = $(pkgincludedir)/client +pkgclientinclude_HEADERS = \ + include/client/sock.h + +lib_LTLIBRARIES = libsysdbclient.la libsysdb.la + +libsysdbclient_la_SOURCES = \ + client/sock.c include/client/sock.h \ + utils/proto.c include/utils/proto.h \ + utils/strbuf.c include/utils/strbuf.h +libsysdbclient_la_CFLAGS = $(AM_CFLAGS) +libsysdbclient_la_CPPFLAGS = $(AM_CPPFLAGS) $(LTDLINCL) +libsysdbclient_la_LDFLAGS = -version-info 0:0:0 -pthread +libsysdbclient_la_LIBADD = $(LIBLTDL) libsysdb_la_SOURCES = \ sysdb.c include/sysdb.h \ @@ -24,7 +52,14 @@ 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 \ + frontend/query.c \ + utils/channel.c include/utils/channel.h \ utils/llist.c include/utils/llist.h \ + utils/proto.c include/utils/proto.h \ utils/strbuf.c include/utils/strbuf.h \ core/time.c include/core/time.h \ utils/unixsock.c include/utils/unixsock.h @@ -54,11 +89,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 +129,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" \