From: Aki Tuomi Date: Wed, 20 Jan 2021 08:07:56 +0000 (+0200) Subject: config: Extract sources to libconfig.la X-Git-Tag: 2.3.14.rc1~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=686c1f22a0e948a02cc0a5819b3711ce9708137e;p=thirdparty%2Fdovecot%2Fcore.git config: Extract sources to libconfig.la Makes unit testing possible --- diff --git a/src/config/Makefile.am b/src/config/Makefile.am index ba39c146ac..e38fac1b6a 100644 --- a/src/config/Makefile.am +++ b/src/config/Makefile.am @@ -20,24 +20,27 @@ AM_CPPFLAGS = \ -DSYSCONFDIR=\""$(pkgsysconfdir)"\" \ $(BINARY_CFLAGS) +noinst_LTLIBRARIES = libconfig.la + config_LDADD = \ + $(noinst_LTLIBRARIES) \ $(LIBDOVECOT) \ $(RAND_LIBS) \ $(BINARY_LDFLAGS) \ -lm -config_DEPENDENCIES = $(LIBDOVECOT_DEPS) +config_DEPENDENCIES = $(LIBDOVECOT_DEPS) $(noinst_LTLIBRARIES) doveconf_LDADD = \ + $(noinst_LTLIBRARIES) \ $(LIBDOVECOT) \ $(RAND_LIBS) \ $(BINARY_LDFLAGS) \ -lm -doveconf_DEPENDENCIES = $(LIBDOVECOT_DEPS) +doveconf_DEPENDENCIES = $(LIBDOVECOT_DEPS) $(noinst_LTLIBRARIES) common = \ - all-settings.c \ config-connection.c \ config-filter.c \ config-parser.c \ @@ -45,13 +48,15 @@ common = \ old-set-parser.c \ sysinfo-get.c +libconfig_la_SOURCES = $(common) + config_SOURCES = \ - main.c \ - $(common) + all-settings.c \ + main.c doveconf_SOURCES = \ - doveconf.c \ - $(common) + all-settings.c \ + doveconf.c noinst_HEADERS = \ all-settings.h \