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