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