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