X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2FMakefile.am;h=e547fa4b543dc873b94b420218303279d3d373ea;hp=c3eb8cda89f651b74919474a90891ff72f15d70d;hb=ddb7ffc175e49abfa69c82777b88d73e1f1103fb;hpb=7201fdaa25c85da9321591694901a5f0dfaa04a6 diff --git a/src/Makefile.am b/src/Makefile.am index c3eb8cd..e547fa4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -6,13 +6,12 @@ AM_CPPFLAGS += -DSYSCONFDIR='"${sysconfdir}"' AM_CPPFLAGS += -DLOCALSTATEDIR='"${localstatedir}"' AM_CPPFLAGS += -DPKGLIBDIR='"${pkglibdir}"' -BUILT_SOURCES = include/sysdb.h +BUILT_SOURCES = include/client/sysdb.h 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/store.h \ @@ -20,11 +19,13 @@ pkgcoreinclude_HEADERS = \ pkgfeincludedir = $(pkgincludedir)/frontend pkgfeinclude_HEADERS = \ include/frontend/connection.h \ + include/frontend/proto.h \ include/frontend/sock.h pkgutilsincludedir = $(pkgincludedir)/utils pkgutilsinclude_HEADERS = \ include/utils/channel.h \ include/utils/dbi.h \ + include/utils/error.h \ include/utils/llist.h \ include/utils/proto.h \ include/utils/strbuf.h \ @@ -32,12 +33,17 @@ pkgutilsinclude_HEADERS = \ pkgclientincludedir = $(pkgincludedir)/client pkgclientinclude_HEADERS = \ - include/client/sock.h + include/client/sock.h \ + include/client/sysdb.h lib_LTLIBRARIES = libsysdbclient.la libsysdb.la libsysdbclient_la_SOURCES = \ - client/sock.c include/client/sock.h + client/client.c include/client/sysdb.h \ + client/sock.c include/client/sock.h \ + utils/error.c include/utils/error.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 @@ -49,13 +55,13 @@ libsysdb_la_SOURCES = \ core/plugin.c include/core/plugin.h \ 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/error.c include/utils/error.h \ utils/llist.c include/utils/llist.h \ utils/proto.c include/utils/proto.h \ utils/strbuf.c include/utils/strbuf.h \ @@ -73,7 +79,11 @@ libsysdb_la_SOURCES += \ libsysdb_la_LIBADD += -ldbi endif -bin_PROGRAMS = sysdbd +bin_PROGRAMS = sysdb sysdbd + +sysdb_SOURCES = client/sysdb.c include/client/sysdb.h +sysdb_CFLAGS = $(AM_CFLAGS) -DBUILD_DATE="\"$$( date --utc '+%F %T' ) (UTC)\"" +sysdb_LDADD = libsysdbclient.la sysdbd_SOURCES = daemon/sysdbd.c include/sysdb.h \ daemon/config.c include/daemon/config.h @@ -135,6 +145,15 @@ libsysdb_la_LIBADD += -dlopen plugins/cname/dns.la libsysdb_la_DEPENDENCIES += plugins/cname/dns.la endif +include/client/sysdb.h: include/client/sysdb.h.in ../version + source ../version; sed \ + -e "s/@SDB_VERSION_MAJOR@/$$VERSION_MAJOR/g" \ + -e "s/@SDB_VERSION_MINOR@/$$VERSION_MINOR/g" \ + -e "s/@SDB_VERSION_PATCH@/$$VERSION_PATCH/g" \ + -e "s/@SDB_VERSION_EXTRA@/$$VERSION_EXTRA/g" \ + -e "s/@SDB_VERSION_STRING@/$$VERSION_STRING/g" \ + include/client/sysdb.h.in > include/client/sysdb.h + include/sysdb.h: include/sysdb.h.in ../version source ../version; sed \ -e "s/@SDB_VERSION_MAJOR@/$$VERSION_MAJOR/g" \