src/rrd_flush.c: Add the `flush' command to the `rrdtool' application.
[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         rrd_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_client.c    \
29         rrd_nan_inf.c   \
30         rrd_rpncalc.c   \
31         rrd_update.c
32
33 RRD_C_FILES =           \
34         hash_32.c       \
35         pngsize.c       \
36         rrd_create.c    \
37         rrd_graph.c     \
38         rrd_graph_helper.c      \
39         rrd_version.c   \
40         rrd_last.c      \
41         rrd_lastupdate.c        \
42         rrd_first.c     \
43         rrd_restore.c   \
44         rrd_xport.c     \
45         rrd_gfx.c \
46         rrd_dump.c      \
47         rrd_flush.c     \
48         rrd_fetch.c     \
49         rrd_resize.c \
50         rrd_tune.c
51
52 noinst_HEADERS = \
53         unused.h \
54         rrd_getopt.h rrd_parsetime.h \
55         rrd_i18n.h \
56         rrd_format.h rrd_tool.h rrd_xport.h rrd.h rrd_rpncalc.h \
57         rrd_hw.h rrd_hw_math.h rrd_hw_update.h \
58         fnv.h rrd_graph.h \
59         rrd_is_thread_safe.h
60
61 noinst_LTLIBRARIES        = librrdupd.la
62
63 lib_LTLIBRARIES           = librrd.la 
64 if BUILD_MULTITHREAD
65 lib_LTLIBRARIES           += librrd_th.la
66 endif
67
68 librrdupd_la_SOURCES      = $(UPD_C_FILES) rrd_not_thread_safe.c
69 librrdupd_la_LIBADD       = $(CORE_LIBS) @LIB_LIBINTL@
70
71 librrd_la_SOURCES         = $(RRD_C_FILES)
72 librrd_la_DEPENDENCIES    = librrdupd.la librrd.sym
73 librrd_la_LIBADD          = librrdupd.la $(ALL_LIBS)
74 librrd_la_LDFLAGS         = -version-info @LIBVERS@
75 librrd_la_LDFLAGS         += -export-symbols librrd.sym
76
77 librrd_th_la_SOURCES         = $(UPD_C_FILES) $(RRD_C_FILES) rrd_thread_safe.c
78 librrd_th_la_DEPENDENCIES    = librrd.sym
79 librrd_th_la_CFLAGS          = $(MULTITHREAD_CFLAGS)
80 librrd_th_la_LDFLAGS         = $(MULTITHREAD_LDFLAGS) -version-info @LIBVERS@
81 librrd_th_la_LDFLAGS         += -export-symbols librrd.sym
82 librrd_th_la_LIBADD          = $(ALL_LIBS)
83
84 include_HEADERS = rrd.h rrd_format.h rrd_client.h
85
86 bin_PROGRAMS    = rrdtool rrdupdate rrdcached
87
88 if BUILD_RRDCGI
89 bin_PROGRAMS += rrdcgi
90 endif
91
92 rrdcgi_SOURCES  = rrd_cgi.c
93 rrdcgi_LDADD    = librrd.la
94
95 rrdupdate_SOURCES = rrdupdate.c
96 rrdupdate_LDADD   = librrdupd.la
97
98 rrdtool_SOURCES = rrd_tool.c
99 rrdtool_DEPENDENCIES = librrd.la
100 rrdtool_LDADD   = librrd.la
101
102 rrdcached_SOURCES = rrd_daemon.c
103 rrdcached_DEPENDENCIES = librrd.la
104 rrdcached_CPPFLAGS = -DVERSION='"$(VERSION)"' -DLOCALSTATEDIR='"$(localstatedir)"'
105 rrdcached_LDADD = librrd.la
106
107 # strftime is here because we do not usually need it. unices have propper
108 # iso date support
109 EXTRA_DIST= strftime.c strftime.h \
110         win32comp.c  rrd_thread_safe_nt.c get_ver.awk librrd.sym
111