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