33AM_CFLAGS = -I$(top_srcdir ) /include
44
55noinst_LTLIBRARIES = libparseconf.la libcommon.la libcommonclient.la
6+ libparseconf_la_SOURCES = parseconf.c
7+
8+ # do not hard depend on '../include/nut_version.h', since it blocks
9+ # 'dist', and is only required for actual build, in which case
10+ # BUILT_SOURCES (in ../include) will ensure nut_version.h will
11+ # be built before anything else
12+ libcommon_la_SOURCES = common.c state.c str.c upsconf.c
13+ libcommonclient_la_SOURCES = common.c state.c str.c
14+ # ensure inclusion of local implementation of missing systems functions
15+ # using LTLIBOBJS. Refer to configure.in -> AC_REPLACE_FUNCS
16+ libcommon_la_LIBADD = libparseconf.la @LTLIBOBJS@
17+ libcommonclient_la_LIBADD = libparseconf.la @LTLIBOBJS@
18+
619if WITH_NEON
720if WITH_SNMP
821# Naming may be clumsy, but the current intention is that DMF technique
@@ -16,18 +29,6 @@ if WITH_SNMP
1629 libnutdmfsnmp_la_CFLAGS = $(AM_CFLAGS ) -I$(top_srcdir ) /drivers \
1730 -I$(top_srcdir ) /tools/nut-scanner \
1831 $(LIBNETSNMP_CFLAGS ) $(LIBNEON_CFLAGS )
19- libnutdmfsnmp_la_LIBADD = $(LIBNETSNMP_LIBS ) $(LIBNEON_LIBS )
32+ libnutdmfsnmp_la_LIBADD = $(LIBNETSNMP_LIBS ) $(LIBNEON_LIBS ) libcommon.la
2033endif
2134endif
22- libparseconf_la_SOURCES = parseconf.c
23-
24- # do not hard depend on '../include/nut_version.h', since it blocks
25- # 'dist', and is only required for actual build, in which case
26- # BUILT_SOURCES (in ../include) will ensure nut_version.h will
27- # be built before anything else
28- libcommon_la_SOURCES = common.c state.c str.c upsconf.c
29- libcommonclient_la_SOURCES = common.c state.c str.c
30- # ensure inclusion of local implementation of missing systems functions
31- # using LTLIBOBJS. Refer to configure.in -> AC_REPLACE_FUNCS
32- libcommon_la_LIBADD = libparseconf.la @LTLIBOBJS@
33- libcommonclient_la_LIBADD = libparseconf.la @LTLIBOBJS@
0 commit comments