73a312de5a7c807d86f181af36519052317d74b4
1 ## Process this file with automake to produce Makefile.in
3 #AUTOMAKE_OPTIONS = foreign
4 #
5 #ACLOCAL_M4 = $(top_srcdir)/config/aclocal.m4
6 #AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
8 if STATIC_PROGRAMS
9 AM_LDFLAGS = -all-static
10 endif
12 RRD_DEFAULT_FONT=@RRD_DEFAULT_FONT@
13 AM_CPPFLAGS = -DRRD_DEFAULT_FONT=\"$(RRD_DEFAULT_FONT)\" -DNUMVERS=@NUMVERS@
15 UPD_C_FILES = \
16 rrd_getopt.c \
17 rrd_getopt1.c \
18 parsetime.c \
19 rrd_hw.c \
20 rrd_hw_math.c \
21 rrd_hw_update.c \
22 rrd_diff.c \
23 rrd_format.c \
24 rrd_info.c \
25 rrd_error.c \
26 rrd_open.c \
27 rrd_nan_inf.c \
28 rrd_rpncalc.c \
29 rrd_update.c
31 RRD_C_FILES = \
32 hash_32.c \
33 pngsize.c \
34 rrd_create.c \
35 rrd_graph.c \
36 rrd_graph_helper.c \
37 rrd_version.c \
38 rrd_last.c \
39 rrd_lastupdate.c \
40 rrd_first.c \
41 rrd_restore.c \
42 rrd_xport.c \
43 rrd_gfx.c \
44 rrd_dump.c \
45 rrd_fetch.c \
46 rrd_tool.c \
47 rrd_resize.c \
48 rrd_tune.c
50 noinst_HEADERS = \
51 unused.h \
52 rrd_getopt.h parsetime.h \
53 rrd_format.h rrd_tool.h rrd_xport.h rrd.h rrd_rpncalc.h \
54 rrd_hw.h rrd_hw_math.h rrd_hw_update.h \
55 fnv.h rrd_graph.h \
56 rrd_is_thread_safe.h
58 noinst_LTLIBRARIES = librrdupd.la
60 lib_LTLIBRARIES = librrd.la
61 if BUILD_MULTITHREAD
62 lib_LTLIBRARIES += librrd_th.la
63 endif
65 librrdupd_la_SOURCES = $(UPD_C_FILES) rrd_not_thread_safe.c
66 librrdupd_la_LIBADD = $(CORE_LIBS)
68 librrd_la_SOURCES = $(RRD_C_FILES)
69 librrd_la_LIBADD = librrdupd.la $(ALL_LIBS)
71 # This flag accepts an argument of the form current[:revision[:age]]. So,
72 # passing -version-info 3:12:1 sets current to 3, revision to 12, and age to 1.
73 #
74 # If either revision or age are omitted, they default to 0. Also note that
75 # age must be less than or equal to the current interface number.
76 #
77 # Here are a set of rules to help you update your library version information:
78 #
79 # 1. Start with version information of 0:0:0 for each libtool library.
80 #
81 # 2. Update the version information only immediately before a public
82 # release of your software. More frequent updates are unnecessary, and
83 # only guarantee that the current interface number gets larger faster.
84 #
85 # 3. If the library source code has changed at all since the last update,
86 # then increment revision (c:r:a becomes c:r+1:a).
87 #
88 # 4. If any interfaces have been added, removed, or changed since the last
89 # update, increment current, and set revision to 0.
90 #
91 # 5. If any interfaces have been added since the last public release, then
92 # increment age.
93 #
94 # 6. If any interfaces have been removed since the last public release,
95 # then set age to 0.
96 #
97 # Never try to set the interface numbers so that they correspond to the
98 # release number of your package. This is an abuse that only fosters
99 # misunderstanding of the purpose of library versions. Instead, use the
100 # -release flag (see Release numbers), but be warned that every release of
101 # your package will not be binary compatible with any other release.
102 #
103 # see http://www.gnu.org/software/libtool/manual.html#SEC32 for explanation
104 librrd_la_LDFLAGS = -version-info 2:10:0
106 librrd_th_la_SOURCES = $(UPD_C_FILES) $(RRD_C_FILES) rrd_thread_safe.c
107 librrd_th_la_CFLAGS = $(MULTITHREAD_CFLAGS)
108 librrd_th_la_LDFLAGS = $(MULTITHREAD_LDFLAGS) -version-info 2:10:0
109 librrd_th_la_LIBADD = $(ALL_LIBS)
111 include_HEADERS = rrd.h
113 bin_PROGRAMS = rrdtool rrdupdate
115 if BUILD_RRDCGI
116 bin_PROGRAMS += rrdcgi
117 endif
119 rrdcgi_SOURCES = rrd_cgi.c
120 rrdcgi_LDADD = librrd.la
122 rrdupdate_SOURCES = rrdupdate.c
123 rrdupdate_LDADD = librrdupd.la
125 rrdtool_SOURCES =
126 rrdtool_DEPENDENCIES = rrd_tool.o librrd.la
127 rrdtool_LDADD = librrd.la
129 # strftime is here because we do not usually need it. unices have propper
130 # iso date support
131 EXTRA_DIST= strftime.c strftime.h \
132 win32comp.c rrd_thread_safe_nt.c get_ver.awk