X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2FMakefile.am;h=35ed960ee23386b31baf4baf2ddd812f0c57e885;hp=088de0d80ac004a8a7d1f7ba1a0efc9873199fff;hb=591bd42a2c2ef80a7e1753e00001ea0633978660;hpb=8fafd09727d58545c1229ca84b94f0082af6a528 diff --git a/src/Makefile.am b/src/Makefile.am index 088de0d..35ed960 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,11 +12,11 @@ endif INCLUDES = -DLOCALEDIR="\"$(datadir)/locale\"" RRD_DEFAULT_FONT=@RRD_DEFAULT_FONT@ AM_CPPFLAGS = -DRRD_DEFAULT_FONT=\"$(RRD_DEFAULT_FONT)\" -DNUMVERS=@NUMVERS@ +AM_CFLAGS = @CFLAGS@ +## no including this by default @WERROR@ UPD_C_FILES = \ - rrd_getopt.c \ - rrd_getopt1.c \ - parsetime.c \ + rrd_parsetime.c \ rrd_hw.c \ rrd_hw_math.c \ rrd_hw_update.c \ @@ -25,6 +25,7 @@ UPD_C_FILES = \ rrd_info.c \ rrd_error.c \ rrd_open.c \ + rrd_client.c \ rrd_nan_inf.c \ rrd_rpncalc.c \ rrd_update.c @@ -43,20 +44,29 @@ RRD_C_FILES = \ rrd_xport.c \ rrd_gfx.c \ rrd_dump.c \ + rrd_flush.c \ rrd_fetch.c \ - rrd_tool.c \ rrd_resize.c \ rrd_tune.c noinst_HEADERS = \ unused.h \ - rrd_getopt.h parsetime.h \ - rrd_i18n.h \ + rrd_getopt.h rrd_parsetime.h \ + rrd_config_bottom.h rrd_i18n.h \ rrd_format.h rrd_tool.h rrd_xport.h rrd.h rrd_rpncalc.h \ rrd_hw.h rrd_hw_math.h rrd_hw_update.h \ fnv.h rrd_graph.h \ rrd_is_thread_safe.h +if BUILD_LIBDBI +RRD_C_FILES += rrd_fetch_libdbi.c +endif + +if BUILD_GETOPT +noinst_HEADERS += rrd_getopt.h +UPD_C_FILES += rrd_getopt.c rrd_getopt1.c +endif + noinst_LTLIBRARIES = librrdupd.la lib_LTLIBRARIES = librrd.la @@ -65,54 +75,24 @@ lib_LTLIBRARIES += librrd_th.la endif librrdupd_la_SOURCES = $(UPD_C_FILES) rrd_not_thread_safe.c -librrdupd_la_LIBADD = $(CORE_LIBS) +librrdupd_la_LIBADD = $(CORE_LIBS) @LIB_LIBINTL@ librrd_la_SOURCES = $(RRD_C_FILES) +librrd_la_DEPENDENCIES = librrdupd.la librrd.sym librrd_la_LIBADD = librrdupd.la $(ALL_LIBS) - -# This flag accepts an argument of the form current[:revision[:age]]. So, -# passing -version-info 3:12:1 sets current to 3, revision to 12, and age to 1. -# -# If either revision or age are omitted, they default to 0. Also note that -# age must be less than or equal to the current interface number. -# -# Here are a set of rules to help you update your library version information: -# -# 1. Start with version information of 0:0:0 for each libtool library. -# -# 2. Update the version information only immediately before a public -# release of your software. More frequent updates are unnecessary, and -# only guarantee that the current interface number gets larger faster. -# -# 3. If the library source code has changed at all since the last update, -# then increment revision (c:r:a becomes c:r+1:a). -# -# 4. If any interfaces have been added, removed, or changed since the last -# update, increment current, and set revision to 0. -# -# 5. If any interfaces have been added since the last public release, then -# increment age. -# -# 6. If any interfaces have been removed since the last public release, -# then set age to 0. -# -# Never try to set the interface numbers so that they correspond to the -# release number of your package. This is an abuse that only fosters -# misunderstanding of the purpose of library versions. Instead, use the -# -release flag (see Release numbers), but be warned that every release of -# your package will not be binary compatible with any other release. -# -# see http://www.gnu.org/software/libtool/manual.html#SEC32 for explanation -librrd_la_LDFLAGS = -version-info 2:10:0 +librrd_la_LDFLAGS = -version-info @LIBVERS@ +librrd_la_LDFLAGS += -export-symbols librrd.sym librrd_th_la_SOURCES = $(UPD_C_FILES) $(RRD_C_FILES) rrd_thread_safe.c -librrd_th_la_CFLAGS = $(MULTITHREAD_CFLAGS) -librrd_th_la_LDFLAGS = $(MULTITHREAD_LDFLAGS) -version-info 2:10:0 +librrd_th_la_DEPENDENCIES = librrd.sym +librrd_th_la_CFLAGS = $(AM_CFLAGS) $(MULTITHREAD_CFLAGS) +librrd_th_la_LDFLAGS = $(MULTITHREAD_LDFLAGS) -version-info @LIBVERS@ +librrd_th_la_LDFLAGS += -export-symbols librrd.sym librrd_th_la_LIBADD = $(ALL_LIBS) -include_HEADERS = rrd.h +include_HEADERS = rrd.h rrd_format.h rrd_client.h -bin_PROGRAMS = rrdtool rrdupdate +bin_PROGRAMS = rrdtool rrdupdate rrdcached if BUILD_RRDCGI bin_PROGRAMS += rrdcgi @@ -124,12 +104,23 @@ rrdcgi_LDADD = librrd.la rrdupdate_SOURCES = rrdupdate.c rrdupdate_LDADD = librrdupd.la -rrdtool_SOURCES = -rrdtool_DEPENDENCIES = rrd_tool.o librrd.la +rrdtool_SOURCES = rrd_tool.c +rrdtool_DEPENDENCIES = librrd.la rrdtool_LDADD = librrd.la +rrdcached_SOURCES = rrd_daemon.c +rrdcached_DEPENDENCIES = librrd_th.la +rrdcached_CPPFLAGS = -DVERSION='"$(VERSION)"' -DLOCALSTATEDIR='"$(localstatedir)"' +rrdcached_LDADD = librrd_th.la + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = librrd.pc + # strftime is here because we do not usually need it. unices have propper # iso date support -EXTRA_DIST= strftime.c strftime.h \ - win32comp.c rrd_thread_safe_nt.c get_ver.awk +EXTRA_DIST= librrd.pc.in strftime.c strftime.h rrd_getopt.c rrd_getopt1.c rrd_getopt.h \ + win32comp.c rrd_thread_safe_nt.c get_ver.awk librrd.sym.in.in plbasename.c plbasename.h + +librrd.sym: librrd.sym.in + grep -v LIBC_HAS_GETOPT_LONG librrd.sym.in >$@