1 ## Process this file with automake to produce Makefile.in
3 #AUTOMAKE_OPTIONS = foreign
5 #ACLOCAL_M4 = $(top_srcdir)/config/aclocal.m4
6 #AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
7 fontsdir = $(datadir)/rrdtool/fonts
8 fonts_DATA = DejaVuSansMono-Roman.ttf
11 AM_LDFLAGS = -all-static
14 RRD_DEFAULT_FONT=@RRD_DEFAULT_FONT@
15 AM_CPPFLAGS = -DRRD_DEFAULT_FONT=\"$(RRD_DEFAULT_FONT)\" -DNUMVERS=@NUMVERS@
52 rrd_getopt.h parsetime.h \
53 rrd_format.h rrd_tool.h rrd_xport.h rrd.h rrd_hw.h rrd_rpncalc.h \
54 rrd_nan_inf.h fnv.h rrd_graph.h \
57 noinst_LTLIBRARIES = librrdupd.la
59 lib_LTLIBRARIES = librrd.la
61 lib_LTLIBRARIES += librrd_th.la
64 librrdupd_la_SOURCES = $(UPD_C_FILES) rrd_not_thread_safe.c
65 librrdupd_la_LIBADD = $(CORE_LIBS)
67 librrd_la_SOURCES = $(RRD_C_FILES)
68 librrd_la_LIBADD = librrdupd.la $(ALL_LIBS)
70 # This flag accepts an argument of the form current[:revision[:age]]. So,
71 # passing -version-info 3:12:1 sets current to 3, revision to 12, and age to 1.
73 # If either revision or age are omitted, they default to 0. Also note that
74 # age must be less than or equal to the current interface number.
76 # Here are a set of rules to help you update your library version information:
78 # 1. Start with version information of 0:0:0 for each libtool library.
80 # 2. Update the version information only immediately before a public
81 # release of your software. More frequent updates are unnecessary, and
82 # only guarantee that the current interface number gets larger faster.
84 # 3. If the library source code has changed at all since the last update,
85 # then increment revision (c:r:a becomes c:r+1:a).
87 # 4. If any interfaces have been added, removed, or changed since the last
88 # update, increment current, and set revision to 0.
90 # 5. If any interfaces have been added since the last public release, then
93 # 6. If any interfaces have been removed since the last public release,
96 # Never try to set the interface numbers so that they correspond to the
97 # release number of your package. This is an abuse that only fosters
98 # misunderstanding of the purpose of library versions. Instead, use the
99 # -release flag (see Release numbers), but be warned that every release of
100 # your package will not be binary compatible with any other release.
102 # see http://www.gnu.org/software/libtool/manual.html#SEC32 for explanation
103 librrd_la_LDFLAGS = -version-info 2:99:0
105 librrd_th_la_SOURCES = $(UPD_C_FILES) $(RRD_C_FILES) rrd_thread_safe.c
106 librrd_th_la_CFLAGS = $(MULTITHREAD_CFLAGS)
107 librrd_th_la_LDFLAGS = $(MULTITHREAD_LDFLAGS) -version-info 2:99:0
108 librrd_th_la_LIBADD = $(ALL_LIBS)
110 include_HEADERS = rrd.h
112 bin_PROGRAMS = rrdtool rrdupdate
115 bin_PROGRAMS += rrdcgi
118 rrdcgi_SOURCES = rrd_cgi.c
119 rrdcgi_LDADD = librrd.la
121 rrdupdate_SOURCES = rrdupdate.c
122 rrdupdate_LDADD = librrdupd.la
125 rrdtool_DEPENDENCIES = rrd_tool.o librrd.la
126 rrdtool_LDADD = librrd.la
128 # strftime is here because we do not usually need it. unices have propper
130 EXTRA_DIST= strftime.c strftime.h $(fonts_DATA) \
131 win32comp.c rrd_thread_safe_nt.c get_ver.awk